Fixed bugs with sprite rotation updating.

This commit is contained in:
Nick Winter 2014-03-12 09:31:45 -07:00
parent d9b8375744
commit f83fe6ce14
3 changed files with 12 additions and 10 deletions

View file

@ -171,15 +171,15 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
# Gets the sprite to reflect what the current state of the thangs and surface are
return if @stillLoading
@updatePosition()
return unless frameChanged
@updateScale()
@updateAlpha()
@updateRotation()
@updateAction()
@updateStats()
if frameChanged
@updateScale()
@updateAlpha()
@updateRotation()
@updateAction()
@updateStats()
@updateGold()
@updateMarks()
@updateLabels()
@updateGold()
cache: ->
bounds = @imageObject.getBounds()
@ -252,7 +252,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
return unless @currentAction
return if _.string.endsWith(@currentAction.name, 'back')
return if _.string.endsWith(@currentAction.name, 'fore')
@imageObject.scaleX *= -1 if Math.abs(rotation) >= 90
imageObject.scaleX *= -1 if Math.abs(rotation) >= 90
##################################################
updateAction: ->

View file

@ -19,4 +19,6 @@ module.exports = class ArtisanView extends ContributeClassView
{name: "Axandre Oge", avatar: "axandre"}
{name: "Katharine Chan", avatar: "katharine"}
{name: "Derek Wong", avatar: "derek"}
{name: "Alexandru Caciulescu", avatar: ""}
{name: "Prabh Simran Singh Baweja", avatar: ""}
]

View file

@ -166,9 +166,9 @@ module.exports = class PlayView extends View
difficulty: 1
id: 'sword-loop'
image: '/file/db/level/525dc5589a0765e496000006/drink_me_icon.png'
description: 'Kill the ogres and save the peasants and their cattle'
description: 'Kill the ogres and save the peasants and their cattle. - by Prabh Simran Singh Baweja'
}
{
name: 'Enemy Artillery'
difficulty: 1