game.tscn 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. [gd_scene load_steps=9 format=3 uid="uid://c483fkssc36s"]
  2. [ext_resource type="Script" path="res://screens/game.gd" id="1_4dd0q"]
  3. [ext_resource type="Texture2D" uid="uid://djifkreeh0nb4" path="res://assets/textures/game_background.jpg" id="2_qk61j"]
  4. [ext_resource type="PackedScene" path="res://assets/scenes/health_bar.tscn" id="2_x77og"]
  5. [ext_resource type="Texture2D" uid="uid://r2ph4fobqo17" path="res://assets/textures/Light_Overlay.png" id="3_86s7d"]
  6. [ext_resource type="PackedScene" uid="uid://ce8cu4romympf" path="res://assets/scenes/transition.tscn" id="4_yc6k4"]
  7. [ext_resource type="AudioStream" uid="uid://c8e6a4uxb6qql" path="res://assets/audio/explosionCrunch_000.ogg" id="6_ufcvu"]
  8. [sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_yhw6y"]
  9. blend_mode = 1
  10. light_mode = 1
  11. [sub_resource type="RectangleShape2D" id="RectangleShape2D_p2163"]
  12. size = Vector2(472, 288)
  13. [node name="Game" type="Node2D"]
  14. script = ExtResource("1_4dd0q")
  15. [node name="Background" type="Sprite2D" parent="."]
  16. z_index = -10
  17. position = Vector2(640, 360)
  18. scale = Vector2(0.5, 0.5)
  19. texture = ExtResource("2_qk61j")
  20. [node name="Light-Overlay" type="Sprite2D" parent="."]
  21. material = SubResource("CanvasItemMaterial_yhw6y")
  22. position = Vector2(640, 360)
  23. scale = Vector2(0.5, 0.5)
  24. texture = ExtResource("3_86s7d")
  25. [node name="HealthBar" parent="." instance=ExtResource("2_x77og")]
  26. position = Vector2(640, 58)
  27. [node name="Timer" type="Timer" parent="."]
  28. wait_time = 3.5
  29. autostart = true
  30. [node name="Overlay" type="CanvasLayer" parent="."]
  31. layer = 10
  32. [node name="Transition" parent="Overlay" instance=ExtResource("4_yc6k4")]
  33. [node name="Base" type="Area2D" parent="." groups=["base"]]
  34. collision_mask = 12
  35. [node name="CollisionShape2D" type="CollisionShape2D" parent="Base"]
  36. position = Vector2(639, 509)
  37. shape = SubResource("RectangleShape2D_p2163")
  38. [node name="EnemySpawn_1" type="Marker2D" parent="." groups=["spawner"]]
  39. position = Vector2(63, 424)
  40. [node name="EnemySpawn_2" type="Marker2D" parent="." groups=["spawner"]]
  41. position = Vector2(1222, 424)
  42. [node name="EnemySpawn_3" type="Marker2D" parent="." groups=["spawner"]]
  43. position = Vector2(641, 144)
  44. [node name="BaseHitSound" type="AudioStreamPlayer" parent="."]
  45. stream = ExtResource("6_ufcvu")
  46. [connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
  47. [connection signal="area_entered" from="Base" to="." method="_on_base_area_entered"]