Skip to content

Instantly share code, notes, and snippets.

@Fishrock123
Created June 25, 2014 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Fishrock123/0ee0bd4cdec69f0822aa to your computer and use it in GitHub Desktop.
Save Fishrock123/0ee0bd4cdec69f0822aa to your computer and use it in GitHub Desktop.
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