Skip to content

Commit

Permalink
further cleanup of timelord options
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcneilly committed Feb 25, 2014
1 parent f9bf96b commit e1af963
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions scripts/coffee/TimeLord.coffee
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
module.exports = class TimeLord
constructor: (game, cursors, opts = {}) ->
# reference to main game object
@game = game
# Has movement history, controlled by computer
@pastControlled = false
@cursors = cursors

# Has yet to spawn
@futureControlled = true

# Currently controlled by player
@playerControlled = false
# Movement Data
@velocity = opts.velocity ? 150
@spawnPosition = opts.spawnPosition ? {x: 32, y: 450}
@movementHistory = []
@currentMove = 0
@sprite = null
@cursors = cursors
@velocity = 150
@spawnPosition = opts.spawnPosition ? {x: 32, y: 450}
@id = null

# States
@pastControlled = opts.pastControlled ? false
@futureControlled = opts.futureControlled ? true
@playerControlled = opts.playerControlled ? false

@create()

create: ->
Expand Down

0 comments on commit e1af963

Please sign in to comment.