Ajout de la cinématique de début et refonte du système audio

Et toujours un peu de correction de bug par ci par là
This commit is contained in:
2026-02-11 21:11:32 +01:00
parent 4b8e59ee56
commit c992950789
54 changed files with 1186 additions and 882 deletions

View File

@@ -41,9 +41,11 @@ func card_info() -> CardInfo:
return item.card_info()
func interact(player : Player) -> bool:
player.pick_item(item)
await pickup_animation(player)
pickup_animation(player)
queue_free()
player.pick_item(item)
return true
@@ -51,14 +53,10 @@ func pickup_animation(player : Player):
available = false
var tween : Tween = get_tree().create_tween()
tween.tween_property(self, "position", player.position, 0.2)
tween.tween_callback(
func():
Pointer.stop_inspect(self)
queue_free()
)
if object_sprite:
object_sprite.pickup_animation()
await tween.tween_property(self, "position", player.position, 0.2).finished
Pointer.stop_inspect(self)
func generate_sprite() -> ItemObjectSprite:
var sprite_node = SPRITE_SCENE.instantiate() as ItemObjectSprite