-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainScene.tscn
105 lines (79 loc) · 4.6 KB
/
MainScene.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[gd_scene load_steps=13 format=3 uid="uid://benm3k1818qmn"]
[ext_resource type="Script" path="res://Singleton/SunFallingFromSky.gd" id="2_cifyb"]
[ext_resource type="Script" path="res://GridMap.gd" id="3_ywu53"]
[ext_resource type="Texture2D" uid="uid://bya01jwlnel2v" path="res://PC Computer - Plants vs Zombies - Day.png" id="4_fk0de"]
[ext_resource type="PackedScene" uid="uid://x7vw613v3na3" path="res://Plants/Sunflower/Sunflower.tscn" id="6_nuwny"]
[ext_resource type="Script" path="res://Singleton/SunManager.gd" id="9_dn3v0"]
[ext_resource type="PackedScene" uid="uid://ct22ucg1wwkec" path="res://UI/PlantSelectionTray.tscn" id="9_slshq"]
[ext_resource type="Script" path="res://ZombieSpawner.gd" id="10_h67cu"]
[ext_resource type="Script" path="res://PlantFactory.gd" id="10_isia7"]
[ext_resource type="PackedScene" uid="uid://bi4x0dwx8ubbm" path="res://Plants/Peashooter/Peashooter.tscn" id="10_jgts7"]
[ext_resource type="PackedScene" uid="uid://cfr08rm4t77vh" path="res://Zombies/regular_zombie.tscn" id="11_gru8n"]
[ext_resource type="Script" path="res://CardManager.gd" id="11_kalk7"]
[sub_resource type="SegmentShape2D" id="SegmentShape2D_lckkt"]
a = Vector2(-450.287, 14)
b = Vector2(717.928, 13)
[node name="Node2D" type="Node2D"]
[node name="PcComputer-PlantsVsZombies-Day" type="Sprite2D" parent="."]
scale = Vector2(0.969, 1)
texture = ExtResource("4_fk0de")
script = ExtResource("2_cifyb")
[node name="AnimationPlayer" type="AnimationPlayer" parent="PcComputer-PlantsVsZombies-Day"]
[node name="GridMap" type="Area2D" parent="PcComputer-PlantsVsZombies-Day"]
collision_layer = 32
collision_mask = 64
script = ExtResource("3_ywu53")
[node name="Peashooter" parent="PcComputer-PlantsVsZombies-Day" instance=ExtResource("10_jgts7")]
position = Vector2(-321.981, -79)
scale = Vector2(1.03199, 1)
[node name="Peashooter2" parent="PcComputer-PlantsVsZombies-Day" instance=ExtResource("10_jgts7")]
position = Vector2(-318.885, 19)
scale = Vector2(1.03199, 1)
[node name="RegularZombie" parent="PcComputer-PlantsVsZombies-Day" instance=ExtResource("11_gru8n")]
position = Vector2(207.43, -91)
scale = Vector2(1.03199, 1)
[node name="RegularZombie2" parent="PcComputer-PlantsVsZombies-Day" instance=ExtResource("11_gru8n")]
position = Vector2(173.375, 3)
scale = Vector2(1.03199, 1)
[node name="RegularZombie3" parent="PcComputer-PlantsVsZombies-Day" instance=ExtResource("11_gru8n")]
position = Vector2(443.757, 6)
scale = Vector2(1.03199, 1)
[node name="Sunflower2" parent="PcComputer-PlantsVsZombies-Day" instance=ExtResource("6_nuwny")]
position = Vector2(-406.605, 11)
scale = Vector2(2.06398, 2)
[node name="Ground" type="StaticBody2D" parent="PcComputer-PlantsVsZombies-Day"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="PcComputer-PlantsVsZombies-Day/Ground"]
position = Vector2(-24.4298, 242)
shape = SubResource("SegmentShape2D_lckkt")
debug_color = Color(0, 0.0784314, 0.0980392, 0.419608)
[node name="NumberOfSuns" type="HBoxContainer" parent="PcComputer-PlantsVsZombies-Day"]
offset_left = -336.0
offset_top = -257.0
offset_right = -240.0
offset_bottom = -176.0
[node name="Label" type="Label" parent="PcComputer-PlantsVsZombies-Day/NumberOfSuns"]
layout_mode = 2
text = "Sun:"
horizontal_alignment = 1
[node name="ScoreLabel" type="Label" parent="PcComputer-PlantsVsZombies-Day/NumberOfSuns"]
layout_mode = 2
[node name="SunManager" type="Node" parent="PcComputer-PlantsVsZombies-Day"]
script = ExtResource("9_dn3v0")
[node name="SunFallTimer" type="Timer" parent="PcComputer-PlantsVsZombies-Day/SunManager"]
[node name="ZombieSpawner" type="Node2D" parent="PcComputer-PlantsVsZombies-Day"]
script = ExtResource("10_h67cu")
[node name="ZombieSpawnerTimer" type="Timer" parent="PcComputer-PlantsVsZombies-Day/ZombieSpawner"]
[node name="CardManager" type="Node2D" parent="PcComputer-PlantsVsZombies-Day"]
script = ExtResource("11_kalk7")
[node name="Camera2D" type="Camera2D" parent="."]
[node name="PlantSelection" parent="." instance=ExtResource("9_slshq")]
offset_left = -100.0
offset_top = -280.0
offset_right = -100.0
offset_bottom = -280.0
scale = Vector2(2, 2)
[node name="PlantFactory" type="Node2D" parent="."]
script = ExtResource("10_isia7")
[connection signal="area_entered" from="PcComputer-PlantsVsZombies-Day/GridMap" to="PcComputer-PlantsVsZombies-Day/GridMap" method="_on_area_entered"]
[connection signal="timeout" from="PcComputer-PlantsVsZombies-Day/SunManager/SunFallTimer" to="PcComputer-PlantsVsZombies-Day" method="_on_sun_fall_timer_timeout"]
[connection signal="timeout" from="PcComputer-PlantsVsZombies-Day/ZombieSpawner/ZombieSpawnerTimer" to="PcComputer-PlantsVsZombies-Day" method="_on_zombie_spawner_timer_timeout"]