mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-31 07:12:49 -04:00
Fixed bugs with sprite rotation updating.
This commit is contained in:
parent
d9b8375744
commit
f83fe6ce14
3 changed files with 12 additions and 10 deletions
app
|
@ -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: ->
|
||||
|
|
|
@ -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: ""}
|
||||
]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue