Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / effect / Hit.tscn
@小李xl 小李xl on 24 Aug 2022 965 bytes 架构调整
  1. [gd_scene load_steps=8 format=2]
  2.  
  3. [ext_resource path="res://resource/sprite/effect/hit/hit2.png" type="Texture" id=1]
  4. [ext_resource path="res://resource/sprite/effect/hit/hit1.png" type="Texture" id=2]
  5. [ext_resource path="res://resource/sprite/effect/hit/hit4.png" type="Texture" id=3]
  6. [ext_resource path="res://resource/sprite/effect/hit/hit0.png" type="Texture" id=4]
  7. [ext_resource path="res://resource/sprite/effect/hit/hit3.png" type="Texture" id=5]
  8. [ext_resource path="res://src/game/effect/Hit.cs" type="Script" id=6]
  9.  
  10.  
  11. [sub_resource type="SpriteFrames" id=1]
  12. animations = [ {
  13. "frames": [ ExtResource( 4 ), ExtResource( 2 ), ExtResource( 1 ), ExtResource( 5 ), ExtResource( 3 ) ],
  14. "loop": true,
  15. "name": "Hit",
  16. "speed": 20.0
  17. } ]
  18.  
  19. [node name="Hit" type="AnimatedSprite"]
  20. frames = SubResource( 1 )
  21. animation = "Hit"
  22. offset = Vector2( 1, 11 )
  23. script = ExtResource( 6 )
  24.  
  25. [connection signal="animation_finished" from="." to="." method="_on_Hit_animation_finished"]