node_2d.tscn 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. [gd_scene load_steps=12 format=3 uid="uid://b1l4qrtp1up3c"]
  2. [ext_resource type="Script" path="res://Tiles.gd" id="1_f1d3x"]
  3. [ext_resource type="Texture2D" uid="uid://b80gqocq2dmyj" path="res://mapblue.png" id="1_hrdss"]
  4. [ext_resource type="Texture2D" uid="uid://c26f6tr8s5hsr" path="res://pacman3.png" id="1_j8bih"]
  5. [ext_resource type="Texture2D" uid="uid://bejhe0q3wej2c" path="res://pacman1.png" id="1_vj3uw"]
  6. [ext_resource type="Script" path="res://Game.gd" id="1_wpwwn"]
  7. [ext_resource type="Texture2D" uid="uid://cpx55pmw537of" path="res://pacman2.png" id="2_hpcdu"]
  8. [ext_resource type="Script" path="res://Pacman.gd" id="2_sodj4"]
  9. [ext_resource type="FontFile" uid="uid://c5sox0jlcecck" path="res://Emulogic-zrEw.ttf" id="7_827na"]
  10. [sub_resource type="SpriteFrames" id="SpriteFrames_vpncm"]
  11. animations = [{
  12. "frames": [{
  13. "duration": 1.0,
  14. "texture": ExtResource("1_j8bih")
  15. }, {
  16. "duration": 1.0,
  17. "texture": ExtResource("2_hpcdu")
  18. }, {
  19. "duration": 1.0,
  20. "texture": ExtResource("1_vj3uw")
  21. }],
  22. "loop": true,
  23. "name": &"default",
  24. "speed": 16.0
  25. }]
  26. [sub_resource type="LabelSettings" id="LabelSettings_j0yqc"]
  27. font = ExtResource("7_827na")
  28. font_size = 8
  29. font_color = Color(1, 0, 0, 1)
  30. [sub_resource type="LabelSettings" id="LabelSettings_dx4lk"]
  31. font = ExtResource("7_827na")
  32. font_size = 8
  33. font_color = Color(1, 1, 0, 1)
  34. [node name="Node2D" type="Node2D"]
  35. script = ExtResource("1_wpwwn")
  36. [node name="Pac Man" type="AnimatedSprite2D" parent="." node_paths=PackedStringArray("tileset")]
  37. z_index = 1
  38. position = Vector2(114, 188)
  39. sprite_frames = SubResource("SpriteFrames_vpncm")
  40. frame_progress = 0.0210249
  41. script = ExtResource("2_sodj4")
  42. tileset = NodePath("../Tiles")
  43. [node name="Sprite2D" type="Sprite2D" parent="."]
  44. z_index = -1
  45. position = Vector2(112, 124)
  46. texture = ExtResource("1_hrdss")
  47. [node name="Tiles" type="Node2D" parent="."]
  48. position = Vector2(4, 4)
  49. script = ExtResource("1_f1d3x")
  50. [node name="Game" type="Label" parent="."]
  51. visible = false
  52. offset_left = 71.0
  53. offset_top = 135.0
  54. offset_right = 111.0
  55. offset_bottom = 145.0
  56. text = "Game"
  57. label_settings = SubResource("LabelSettings_j0yqc")
  58. [node name="Over" type="Label" parent="."]
  59. visible = false
  60. offset_left = 120.0
  61. offset_top = 135.0
  62. offset_right = 160.0
  63. offset_bottom = 145.0
  64. text = "Over"
  65. label_settings = SubResource("LabelSettings_j0yqc")
  66. [node name="Ready" type="Label" parent="."]
  67. visible = false
  68. offset_left = 89.0
  69. offset_top = 135.0
  70. offset_right = 137.0
  71. offset_bottom = 145.0
  72. text = "Ready!"
  73. label_settings = SubResource("LabelSettings_dx4lk")