Skip to content

Commit

Permalink
Figured out coffeescript's fat arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
imbstack committed Jan 20, 2012
1 parent 5b0c018 commit c0dcb47
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/client/states/play.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,12 @@ class PlayState


draw: ->
planets = @planets
team0 = @team0
team1 = @team1
rockets = @rockets
splosions = @splosions
@parallax.draw()
@viewport.apply( ->
planets.draw()
team0.draw()
team1.draw()
rockets.draw()
splosions.draw()
@viewport.apply( =>
@planets.draw()
@team0.draw()
@team1.draw()
@splosions.draw()
)


Expand Down

0 comments on commit c0dcb47

Please sign in to comment.