aboutsummaryrefslogtreecommitdiffstats
path: root/Main.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'Main.tscn')
-rw-r--r--Main.tscn36
1 files changed, 36 insertions, 0 deletions
diff --git a/Main.tscn b/Main.tscn
new file mode 100644
index 0000000..b665c9f
--- /dev/null
+++ b/Main.tscn
@@ -0,0 +1,36 @@
+[gd_scene load_steps=7 format=2]
+
+[ext_resource path="res://Main.gd" type="Script" id=1]
+[ext_resource path="res://HUD.tscn" type="PackedScene" id=2]
+[ext_resource path="res://Player.tscn" type="PackedScene" id=3]
+[ext_resource path="res://Enemy.tscn" type="PackedScene" id=4]
+[ext_resource path="res://assets/maps/map2.jpg" type="Texture" id=5]
+
+[sub_resource type="Curve2D" id=1]
+_data = {
+"points": PoolVector2Array( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1280, 0, 0, 0, 0, 0, 1280, 720, 0, 0, 0, 0, 0, 720, 0, 0, 0, 0, 0, 0 )
+}
+
+[node name="Main" type="Node2D"]
+script = ExtResource( 1 )
+enemy_scene = ExtResource( 4 )
+
+[node name="Sprite" type="Sprite" parent="."]
+scale = Vector2( 0.64, 0.64 )
+texture = ExtResource( 5 )
+centered = false
+
+[node name="Player" parent="." instance=ExtResource( 3 )]
+position = Vector2( 544, 216 )
+
+[node name="HUD" parent="." instance=ExtResource( 2 )]
+
+[node name="EnemySpawn" type="Path2D" parent="."]
+curve = SubResource( 1 )
+
+[node name="EnemySpawnLocation" type="PathFollow2D" parent="EnemySpawn"]
+
+[node name="EnemySpawnTimer" type="Timer" parent="."]
+wait_time = 0.476
+
+[connection signal="timeout" from="EnemySpawnTimer" to="." method="_on_EnemySpawnTimer_timeout"]