Skip to content

Instantly share code, notes, and snippets.

@taybenlor
Created August 10, 2011 06:54
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 taybenlor/1136269 to your computer and use it in GitHub Desktop.
Save taybenlor/1136269 to your computer and use it in GitHub Desktop.
Too Many Pixies Enemy Model
class Enemy extends Model
constructor: (tile, type, health) ->
this.attr "health", {default: health}
this.attr "type", {default: type}
this.attr "attacking", {default: false}
this.attr "hit", {default: false}
this.attr "converting", {default: false}
this.attr "tile", {default: tile}
this.attr "destroyed", {default: false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment