39 lines
1.5 KiB
Text
39 lines
1.5 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://cfculwiy7mtdc"]
|
|
|
|
[ext_resource type="Script" uid="uid://cvoco1axom40" path="res://scenes/main/main.gd" id="1_kdt4m"]
|
|
[ext_resource type="PackedScene" uid="uid://bmc2exqutt6vu" path="res://scenes/spaceShip/player/player.tscn" id="2_ia3nl"]
|
|
[ext_resource type="PackedScene" uid="uid://dm0rd88xd5m7k" path="res://scenes/bullet/bulletPool.tscn" id="3_2s0fe"]
|
|
[ext_resource type="Texture2D" uid="uid://cfwyw1sr6x2np" path="res://icon.svg" id="4_r8qeh"]
|
|
|
|
[node name="main" type="Node2D"]
|
|
script = ExtResource("1_kdt4m")
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="."]
|
|
modulate = Color(0.605274, 0.605274, 0.605274, 1)
|
|
offset_left = -11272.0
|
|
offset_top = -6736.0
|
|
offset_right = 12152.0
|
|
offset_bottom = 7008.0
|
|
texture = ExtResource("4_r8qeh")
|
|
stretch_mode = 1
|
|
|
|
[node name="Player" parent="." instance=ExtResource("2_ia3nl")]
|
|
spawnDistance = 1000
|
|
|
|
[node name="bulletPool" parent="." instance=ExtResource("3_2s0fe")]
|
|
|
|
[node name="obstaclePool" type="Node2D" parent="."]
|
|
|
|
[node name="enemyPool" type="Node2D" parent="."]
|
|
|
|
[node name="spawnTimer" type="Node" parent="."]
|
|
|
|
[node name="enemySpawnTimer" type="Timer" parent="spawnTimer"]
|
|
wait_time = 10.0
|
|
autostart = true
|
|
|
|
[node name="obstaclesSpawnTimer" type="Timer" parent="spawnTimer"]
|
|
autostart = true
|
|
|
|
[connection signal="timeout" from="spawnTimer/enemySpawnTimer" to="." method="_on_enemy_spawn_timer_timeout"]
|
|
[connection signal="timeout" from="spawnTimer/obstaclesSpawnTimer" to="." method="_on_obstacles_spawn_timer_timeout"]
|