ajout des particules de roche et changement de l'écran de chargement
This commit is contained in:
@@ -99,25 +99,23 @@ func calculate_direction():
|
||||
func turn_animate(input_direction):
|
||||
if input_direction.x > TURN_ANIMATION_MINIMUM_THRESHOLD:
|
||||
if input_direction.y > TURN_ANIMATION_MINIMUM_THRESHOLD:
|
||||
%Sprite.play("front_right")
|
||||
%PlayerSprite.wanted_orientation = PlayerSprite.ROrient.FRONT_RIGHT
|
||||
elif input_direction.y < -TURN_ANIMATION_MINIMUM_THRESHOLD:
|
||||
%Sprite.play("back_right")
|
||||
%PlayerSprite.wanted_orientation = PlayerSprite.ROrient.BACK_RIGHT
|
||||
else:
|
||||
%Sprite.play("right")
|
||||
%PlayerSprite.wanted_orientation = PlayerSprite.ROrient.RIGHT
|
||||
elif input_direction.x < -TURN_ANIMATION_MINIMUM_THRESHOLD:
|
||||
if input_direction.y > TURN_ANIMATION_MINIMUM_THRESHOLD:
|
||||
%Sprite.play("front_left")
|
||||
%PlayerSprite.wanted_orientation = PlayerSprite.ROrient.FRONT_LEFT
|
||||
elif input_direction.y < -TURN_ANIMATION_MINIMUM_THRESHOLD:
|
||||
%Sprite.play("back_left")
|
||||
%PlayerSprite.wanted_orientation = PlayerSprite.ROrient.BACK_LEFT
|
||||
else:
|
||||
%Sprite.play("left")
|
||||
%PlayerSprite.wanted_orientation = PlayerSprite.ROrient.LEFT
|
||||
else:
|
||||
if input_direction.y > TURN_ANIMATION_MINIMUM_THRESHOLD:
|
||||
%Sprite.play("front")
|
||||
%PlayerSprite.wanted_orientation = PlayerSprite.ROrient.FRONT
|
||||
elif input_direction.y < -TURN_ANIMATION_MINIMUM_THRESHOLD:
|
||||
%Sprite.play("back")
|
||||
else:
|
||||
%Sprite.play("front")
|
||||
%PlayerSprite.wanted_orientation = PlayerSprite.ROrient.BACK
|
||||
|
||||
func can_interact(interactable : Interactable):
|
||||
return interactable.can_interact(self)
|
||||
|
||||
Reference in New Issue
Block a user