shower.tscn 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [gd_scene load_steps=7 format=3 uid="uid://c78by7hc4fmwx"]
  2. [ext_resource type="Script" path="res://bullets.gd" id="2"]
  3. [ext_resource type="Texture2D" uid="uid://d3u7k0742d5ug" path="res://face_happy.png" id="3"]
  4. [ext_resource type="Texture2D" uid="uid://8j32onnr4qo3" path="res://face_sad.png" id="4"]
  5. [ext_resource type="Script" path="res://player.gd" id="5"]
  6. [sub_resource type="SpriteFrames" id="1"]
  7. animations = [{
  8. "frames": [{
  9. "duration": 1.0,
  10. "texture": ExtResource("3")
  11. }, {
  12. "duration": 1.0,
  13. "texture": ExtResource("4")
  14. }],
  15. "loop": true,
  16. "name": &"default",
  17. "speed": 5.0
  18. }]
  19. [sub_resource type="CircleShape2D" id="2"]
  20. radius = 27.0
  21. [node name="Shower" type="Node2D"]
  22. [node name="Bullets" type="Node2D" parent="."]
  23. script = ExtResource("2")
  24. [node name="Player" type="Area2D" parent="."]
  25. script = ExtResource("5")
  26. [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Player"]
  27. sprite_frames = SubResource("1")
  28. [node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
  29. shape = SubResource("2")
  30. [connection signal="body_shape_entered" from="Player" to="Player" method="_on_body_shape_entered"]
  31. [connection signal="body_shape_exited" from="Player" to="Player" method="_on_body_shape_exited"]