Player.tscn 832 B

1234567891011121314151617181920212223242526272829
  1. [gd_scene load_steps=6 format=2]
  2. [ext_resource path="res://dodge_assets/art/playerGrey_walk1.png" type="Texture" id=1]
  3. [ext_resource path="res://dodge_assets/art/playerGrey_walk2.png" type="Texture" id=2]
  4. [ext_resource path="res://dodge_assets/art/playerGrey_up1.png" type="Texture" id=3]
  5. [ext_resource path="res://dodge_assets/art/playerGrey_up2.png" type="Texture" id=4]
  6. [sub_resource type="SpriteFrames" id=1]
  7. animations = [ {
  8. "frames": [ ExtResource( 1 ), ExtResource( 2 ) ],
  9. "loop": true,
  10. "name": "right",
  11. "speed": 5.0
  12. }, {
  13. "frames": [ ExtResource( 3 ), ExtResource( 4 ) ],
  14. "loop": true,
  15. "name": "up",
  16. "speed": 5.0
  17. } ]
  18. [node name="Player" type="Area2D"]
  19. __meta__ = {
  20. "_edit_group_": true
  21. }
  22. [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
  23. scale = Vector2( 0.5, 0.5 )
  24. frames = SubResource( 1 )
  25. animation = "up"