Candle.tscn 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. [gd_scene load_steps=6 format=2]
  2. [ext_resource path="res://script/Candle.gd" type="Script" id=1]
  3. [ext_resource path="res://asset/candle_sheet.png" type="Texture" id=2]
  4. [ext_resource path="res://asset/candle_n.png" type="Texture" id=3]
  5. [ext_resource path="res://sfx/fire.ogg" type="AudioStream" id=4]
  6. [ext_resource path="res://asset/radial.png" type="Texture" id=5]
  7. [node name="Candle" type="KinematicBody2D"]
  8. collision_layer = 3
  9. collision/safe_margin = 0.1
  10. script = ExtResource( 1 )
  11. [node name="Body" type="Sprite" parent="."]
  12. texture = ExtResource( 2 )
  13. normal_map = ExtResource( 3 )
  14. region_enabled = true
  15. region_rect = Rect2( 0, 0, 32, 48 )
  16. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
  17. polygon = PoolVector2Array( 5, 2, 12, 2, 11, 4, 5, 5, 3, 9, 7, 14, 7, 19, 5, 20, 6, 21, 9.2, 23.9, -8, 24, -5, 21, -4, 20, -6, 19, -6, 14, -2, 9, -4, 5, -10, 4, -11, 2, -4, 2, -4, -5, 5, -5 )
  18. [node name="RespawnPoint" type="Node2D" parent="."]
  19. [node name="Timer" type="Timer" parent="."]
  20. wait_time = 0.5
  21. [node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
  22. stream = ExtResource( 4 )
  23. max_distance = 1000.0
  24. attenuation = 12.1257
  25. [node name="Light2D" type="Light2D" parent="."]
  26. texture = ExtResource( 5 )
  27. color = Color( 1, 0.866667, 0, 1 )
  28. [connection signal="timeout" from="Timer" to="." method="next_frame"]