Animation defenition moved to player_sprite.gd

This commit is contained in:
2026-02-03 00:00:51 +03:00
parent 63710b691b
commit 67c5f8e4d5
16 changed files with 116 additions and 53 deletions
+24
View File
@@ -0,0 +1,24 @@
class_name PlayerSprite
extends AnimatedSprite2D
const ANIMATION_IDLE = "idle"
const ANIMATION_LOOK_AROUND = "look_around"
const ANIMATION_LOOK_AROUND_1 = "look_around_1"
const ANIMATION_LOOK_AROUND_2 = "look_around_2"
const ANIMATION_FALL = "fall"
const ANIMATION_FALL_LEFT = "fall_left"
const ANIMATION_FALL_RIGHT = "fall_right"
const ANIMATION_JUMP = "jump"
const ANIMATION_JUMP_LEFT = "jump_left"
const ANIMATION_JUMP_RIGHT = "jump_right"
const ANIMATION_WALK_LEFT = "walk_left"
const ANIMATION_WALK_RIGHT = "walk_right"
const ANIMATION_DEATH = "death"