Skip to content

Commit

Permalink
Allow vertical grounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Applegate committed Dec 1, 2012
1 parent 985ab0c commit 9ee3516
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/coffee/models/GroundEntity.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ define ['cs!models/StaticEntity', 'image!/img/level-asset-ground.png'], (StaticE
@template.spriteWidth = @overrides.width * @world.scale() * .95
@template.imageOffsetX = -1 * @overrides.width * .25

register: =>
super()
if @entity.$orientation is 'horizontal' then @entity.rotation 90
@

return GroundEntity

0 comments on commit 9ee3516

Please sign in to comment.