Skip to content

Instantly share code, notes, and snippets.

@drhayes
Created November 15, 2012 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drhayes/4076723 to your computer and use it in GitHub Desktop.
Save drhayes/4076723 to your computer and use it in GitHub Desktop.
Snippet from the player entity.
update: function() {
this.behave('update');
this.handleAnimation();
this.parent();
},
handleMovementTrace: function(res) {
this.behave('handleMovementTrace', res);
this.parent(res);
},
check: function(other) {
this.parent(other);
this.behave('check', other);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment