-
-
Save Fishrock123/0ee0bd4cdec69f0822aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var inherits = require('./shared/inherits') | |
, p2 = require('../vendor/p2') | |
function Entity(options) { | |
p2.Body.call(this, options) | |
this.mass = 1 | |
this.motionState = p2.Body.DYNAMIC | |
this.game = options.game | |
this.exists = false | |
this.lifespan = 0 | |
}; inherits(Entity, p2.Body) | |
Entity.prototype.tick = function(delta, game) {} | |
module.exports = Entity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment