physics_demo.tscn 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. [gd_scene load_steps=3 format=3 uid="uid://dtj3anpduro3e"]
  2. [ext_resource type="PackedScene" uid="uid://dpbr2u8co4824" path="res://slides/204/physics_demo/Bar.tscn" id="1_mm234"]
  3. [ext_resource type="Script" uid="uid://cqv2vfpwp78h2" path="res://slides/204/physics_demo/Spawner.gd" id="2_tlo74"]
  4. [node name="Demo" type="Node2D"]
  5. [node name="Bar1" parent="." instance=ExtResource("1_mm234")]
  6. position = Vector2(948, 473)
  7. rotation = 0.785397
  8. [node name="Bar2" parent="." instance=ExtResource("1_mm234")]
  9. position = Vector2(1128, 954)
  10. [node name="Bar3" parent="." instance=ExtResource("1_mm234")]
  11. position = Vector2(421, 911)
  12. rotation = 0.261799
  13. [node name="Bar4" parent="." instance=ExtResource("1_mm234")]
  14. position = Vector2(1258, 634)
  15. rotation = -0.785397
  16. [node name="Bar5" parent="." instance=ExtResource("1_mm234")]
  17. position = Vector2(760, 728)
  18. [node name="Spawner" type="Marker2D" parent="."]
  19. position = Vector2(906, 239)
  20. script = ExtResource("2_tlo74")
  21. dispersion_scale = Vector2(80, 40)
  22. [node name="SpawnInterval" type="Timer" parent="."]
  23. process_callback = 0
  24. wait_time = 0.3
  25. autostart = true
  26. [connection signal="timeout" from="SpawnInterval" to="Spawner" method="_on_delay_time_out"]