mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 05:58:30 +00:00
PathFollower concept
This commit is contained in:
parent
a534629980
commit
8861464ec1
1 changed files with 30 additions and 0 deletions
30
v3/src/paths/PathFollower.js
Normal file
30
v3/src/paths/PathFollower.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
var Class = require('../utils/Class');
|
||||
var Vector2 = require('../math/Vector2');
|
||||
|
||||
var PathFollower = new Class({
|
||||
|
||||
initialize:
|
||||
|
||||
function PathFollower (path, gameObject, t)
|
||||
{
|
||||
if (t === undefined) { t = 0; }
|
||||
|
||||
this.path = path;
|
||||
|
||||
this.gameObject = gameObject;
|
||||
|
||||
this.t = t;
|
||||
|
||||
//
|
||||
|
||||
// this.useFrames = false;
|
||||
},
|
||||
|
||||
update: function (time, delta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
module.exports = PathFollower;
|
Loading…
Add table
Reference in a new issue