mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-13 14:02:23 +02:00
Added Gameplay Animations and Functionality
- Added clap animation for bear trap - Added cards in menu bar - Replaced old bear_trap icon with new one
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
extends Node2D
|
||||
|
||||
func _on_Hurtbox_area_entered(area):
|
||||
queue_free()
|
||||
$AnimatedSprite.play("clap")
|
||||
|
||||
|
||||
func _ready():
|
||||
$AnimatedSprite.play("place")
|
||||
|
||||
|
||||
func _on_AnimatedSprite_animation_finished():
|
||||
if $AnimatedSprite.get_animation() == "place":
|
||||
$AnimatedSprite.play("still")
|
||||
elif $AnimatedSprite.get_animation() == "clap":
|
||||
queue_free()
|
||||
|
||||
Reference in New Issue
Block a user