rock.tscn 1.4 KB

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