No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pickup.tscn 1.2KB

12345678910111213141516171819202122232425262728293031323334
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://mini-game/ressources/sprites/obstacle/barrel.png" type="Texture" id=1]
  3. [ext_resource path="res://mini-game/scenes/spawner/pickup.gd" type="Script" id=2]
  4. [sub_resource type="RectangleShape2D" id=1]
  5. extents = Vector2( 28.3542, 36.1379 )
  6. [node name="pickup" type="Node2D"]
  7. script = ExtResource( 2 )
  8. sprite_texture = ExtResource( 1 )
  9. type = "malus"
  10. [node name="Sprite" type="Sprite" parent="."]
  11. scale = Vector2( 0.202437, 0.202437 )
  12. [node name="Area2D" type="Area2D" parent="."]
  13. [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
  14. shape = SubResource( 1 )
  15. [node name="notifier" type="VisibilityNotifier2D" parent="."]
  16. position = Vector2( 100, 0 )
  17. [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
  18. [node name="Timer" type="Timer" parent="."]
  19. wait_time = 3.0
  20. one_shot = true
  21. [connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]
  22. [connection signal="screen_exited" from="notifier" to="." method="_on_notifier_screen_exited"]
  23. [connection signal="finished" from="AudioStreamPlayer" to="." method="_on_AudioStreamPlayer_finished"]
  24. [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]