rock.tscn 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://rock.gd" type="Script" id=1]
  3. [ext_resource path="res://brickfloor.png" type="Texture" id=2]
  4. [sub_resource type="RectangleShape2D" id=1]
  5. extents = Vector2( 24, 24 )
  6. [sub_resource type="Animation" id=2]
  7. resource_name = "explode"
  8. tracks/0/type = "method"
  9. tracks/0/path = NodePath(".")
  10. tracks/0/interp = 1
  11. tracks/0/loop_wrap = true
  12. tracks/0/imported = false
  13. tracks/0/enabled = true
  14. tracks/0/keys = {
  15. "times": PoolRealArray( 1 ),
  16. "transitions": PoolRealArray( 1 ),
  17. "values": [ {
  18. "args": [ ],
  19. "method": "queue_free"
  20. } ]
  21. }
  22. tracks/1/type = "value"
  23. tracks/1/path = NodePath("Sprite:visible")
  24. tracks/1/interp = 1
  25. tracks/1/loop_wrap = true
  26. tracks/1/imported = false
  27. tracks/1/enabled = true
  28. tracks/1/keys = {
  29. "times": PoolRealArray( 0 ),
  30. "transitions": PoolRealArray( 1 ),
  31. "update": 1,
  32. "values": [ false ]
  33. }
  34. [node name="Rock" type="KinematicBody2D"]
  35. script = ExtResource( 1 )
  36. [node name="Sprite" type="Sprite" parent="."]
  37. texture = ExtResource( 2 )
  38. region_enabled = true
  39. region_rect = Rect2( 96, 0, 48, 48 )
  40. [node name="Shape" type="CollisionShape2D" parent="."]
  41. shape = SubResource( 1 )
  42. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  43. anims/explode = SubResource( 2 )