forked from annas2727/Mental-Maze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tscn
65 lines (48 loc) · 2.54 KB
/
main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[gd_scene load_steps=7 format=3 uid="uid://bgnsoqns6ribq"]
[ext_resource type="Script" path="res://Main.gd" id="1_bgkpj"]
[ext_resource type="PackedScene" uid="uid://byka7bkmtud12" path="res://player.tscn" id="3_86i4l"]
[ext_resource type="Script" path="res://MobSpawner.gd" id="4_i0ydt"]
[ext_resource type="PackedScene" uid="uid://cvo70qd07iu1" path="res://tile_map.tscn" id="5_sm4wp"]
[ext_resource type="PackedScene" uid="uid://be7o15367excn" path="res://hud.tscn" id="6_h688j"]
[ext_resource type="PackedScene" uid="uid://sswoy5ioju3j" path="res://popups.tscn" id="7_fpen2"]
[node name="Main" type="Node"]
script = ExtResource("1_bgkpj")
[node name="ColorRect" type="ColorRect" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -9044.0
offset_top = -6087.0
offset_right = 10752.0
offset_bottom = 6852.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.74902, 0.639216, 1, 1)
[node name="TileMap" parent="." instance=ExtResource("5_sm4wp")]
[node name="Player" parent="." instance=ExtResource("3_86i4l")]
[node name="MobSpawns" type="Node" parent="."]
[node name="MobSpawn1" type="Marker2D" parent="MobSpawns" groups=["spawn"]]
position = Vector2(471, 432)
[node name="MobSpawn2" type="Marker2D" parent="MobSpawns" groups=["spawn"]]
position = Vector2(226, 809)
[node name="MobSpawn3" type="Marker2D" parent="MobSpawns" groups=["spawn"]]
position = Vector2(892, 511)
[node name="ModSpawn4" type="Marker2D" parent="MobSpawns" groups=["spawn"]]
position = Vector2(360, 590)
[node name="MobSpawner" type="Node2D" parent="."]
script = ExtResource("4_i0ydt")
[node name="SpawnTimer" type="Timer" parent="MobSpawner"]
wait_time = 5.0
[node name="HUD" parent="." instance=ExtResource("6_h688j")]
[node name="popups" parent="." instance=ExtResource("7_fpen2")]
[node name="StartPosition" type="Marker2D" parent="."]
position = Vector2(900, 951)
[node name="ScoreTimer" type="Timer" parent="."]
[connection signal="show_screen" from="." to="." method="show_character"]
[connection signal="show_screen" from="." to="TileMap" method="_show_maze"]
[connection signal="show_screen" from="." to="MobSpawner" method="_on_spawn_timer_timeout"]
[connection signal="hit" from="Player" to="." method="lose_life"]
[connection signal="timeout" from="MobSpawner/SpawnTimer" to="MobSpawner" method="_on_spawn_timer_timeout"]
[connection signal="start_game" from="HUD" to="." method="check_start"]
[connection signal="finished_read" from="popups" to="." method="check_levels"]
[connection signal="timeout" from="ScoreTimer" to="." method="_on_score_timer_timeout"]