MCPcopy Create free account
hub / github.com/phaserjs/phaser / createMockTween

Function createMockTween

tests/gameobjects/components/PathFollower.test.js:5–16  ·  view source on GitHub ↗
(playing, paused)

Source from the content-addressed store, hash-verified

3var Vector2 = require('../../../src/math/Vector2');
4
5function createMockTween (playing, paused)
6{
7 return {
8 isPlaying: function () { return playing || false; },
9 isPaused: function () { return paused || false; },
10 stop: vi.fn(),
11 pause: vi.fn(),
12 resume: vi.fn(),
13 data: null,
14 getValue: function () { return 0; }
15 };
16}
17
18function createMockPath (startX, startY)
19{

Callers 2

createFollowerFunction · 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…