MCPcopy Index your code
hub / github.com/phaserjs/phaser / createItem

Function createItem

tests/actions/GridAlign.test.js:48–58  ·  view source on GitHub ↗

* Creates a minimal mock item compatible with Phaser's bounds functions. * With width=0, height=0 and originX=0, originY=0, TOP_LEFT alignment * places the item exactly at tempZone.x, tempZone.y.

()

Source from the content-addressed store, hash-verified

46 * places the item exactly at tempZone.x, tempZone.y.
47 */
48function createItem ()
49{
50 return {
51 x: 0,
52 y: 0,
53 width: 0,
54 height: 0,
55 originX: 0,
56 originY: 0
57 };
58}
59
60function createItems (count)
61{

Callers 1

createItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…