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

Function createMockWorld

tests/physics/arcade/StaticBody.test.js:4–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2var CONST = require('../../../src/physics/arcade/const');
3
4function createMockWorld ()
5{
6 return {
7 defaults: {
8 debugShowStaticBody: true,
9 staticBodyDebugColor: 0x00ff00
10 },
11 staticTree: {
12 remove: function () {},
13 insert: function () {}
14 },
15 pendingDestroy: {
16 add: function () {}
17 },
18 disable: function () {}
19 };
20}
21
22function createMockGameObject (x, y, width, height)
23{

Callers 1

StaticBody.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…