shape update

This commit is contained in:
Ultrablob 2024-05-06 14:09:14 -04:00
parent 11a54f2b94
commit 2046fbff71
18 changed files with 467 additions and 46 deletions

View file

@ -1,5 +1,16 @@
extends "res://player.gd"
const idle_anim = preload("res://player_idle.gif")
const moving_anim = preload("res://player_moving.gif")
func update_animation():
if moving:
$AnimatedSprite2D.sprite_frames = moving_anim
else:
$AnimatedSprite2D.sprite_frames = idle_anim
$AnimatedSprite2D.play("gif")
func _ready():
update_display()
update_animation()