-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.tscn
More file actions
149 lines (120 loc) · 13.8 KB
/
Main.tscn
File metadata and controls
149 lines (120 loc) · 13.8 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[gd_scene load_steps=13 format=2]
[ext_resource path="res://Main.gd" type="Script" id=1]
[ext_resource path="res://Mob.tscn" type="PackedScene" id=2]
[ext_resource path="res://Player.tscn" type="PackedScene" id=3]
[ext_resource path="res://HUD.tscn" type="PackedScene" id=4]
[ext_resource path="res://art/House In a Forest Loop.ogg" type="AudioStream" id=5]
[ext_resource path="res://art/gameover.wav" type="AudioStream" id=6]
[ext_resource path="res://HellSpawn.tscn" type="PackedScene" id=8]
[ext_resource path="res://Powerup.tscn" type="PackedScene" id=9]
[ext_resource path="res://art/lava-64.png" type="Texture" id=10]
[sub_resource type="ConvexPolygonShape2D" id=1]
points = PoolVector2Array( 64, 63.6465, 0.271751, 63.6465, 0.271751, 0, 64, 0 )
[sub_resource type="TileSet" id=2]
0/name = "lava-64.png 0"
0/texture = ExtResource( 10 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 0, 0, 64, 64 )
0/tile_mode = 1
0/autotile/bitmask_mode = 0
0/autotile/bitmask_flags = [ ]
0/autotile/icon_coordinate = Vector2( 0, 0 )
0/autotile/tile_size = Vector2( 64, 64 )
0/autotile/spacing = 0
0/autotile/occluder_map = [ ]
0/autotile/navpoly_map = [ ]
0/autotile/priority_map = [ ]
0/autotile/z_index_map = [ ]
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/shape_offset = Vector2( 0, 0 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
0/shape = SubResource( 1 )
0/shape_one_way = false
0/shape_one_way_margin = 1.0
0/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
0/z_index = 0
[sub_resource type="Curve2D" id=3]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3359.31, 4.48682, 0, 0, 0, 0, 5124.72, 1.98688, 0, 0, 0, 0, 8498.3, 2.80035, 0, 0, 0, 0, 8503.95, 4652.73, 0, 0, 0, 0, 7.35791, 4658.39, 0, 0, 0, 0, -3.11609, 2856.9, 0, 0, 0, 0, 0.814606, 1436.88, 0, 0, 0, 0, -0.777222, 1080, 0, 0, 0, 0, 0, 0 )
}
[node name="Main" type="Node"]
script = ExtResource( 1 )
mob_scene = ExtResource( 2 )
powerup_scene = ExtResource( 9 )
[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -834.0
margin_top = -1146.0
margin_right = 7940.0
margin_bottom = 4756.0
color = Color( 0.0235294, 0.0235294, 0.0235294, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TileMap" type="TileMap" parent="." groups=[
"enemies",
]]
tile_set = SubResource( 2 )
show_collision = true
collision_mask = 0
format = 1
tile_data = PoolIntArray( -1, -1610612736, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, -65511, 0, 0, -65510, 0, 0, -65509, 0, 0, -65508, 0, 0, -65507, 0, 0, -65506, 0, 0, -65505, 0, 0, -65504, 0, 0, -65503, 0, 0, -65502, 0, 0, -65501, 0, 0, -65500, 0, 0, -65499, 0, 0, -65498, 0, 0, -65497, 0, 0, -65496, 0, 0, -65495, 0, 0, -65494, 0, 0, -65493, 0, 0, -65492, 0, 0, -65491, 0, 0, -65490, 0, 0, -65489, 0, 0, -65488, 0, 0, -65487, 0, 0, -65486, 0, 0, -65485, 0, 0, -65484, 0, 0, -65483, 0, 0, -65482, 0, 0, -65481, 0, 0, -65480, 0, 0, -65479, 0, 0, -65478, 0, 0, -65477, 0, 0, -65476, 0, 0, -65475, 0, 0, -65474, 0, 0, -65473, 0, 0, -65472, 0, 0, -65471, 0, 0, -65470, 0, 0, -65469, 0, 0, -65468, 0, 0, -65467, 0, 0, -65466, 0, 0, -65465, 0, 0, -65464, 0, 0, -65463, 0, 0, -65462, 0, 0, -65461, 0, 0, -65460, 0, 0, -65459, 0, 0, -65458, 0, 0, -65457, 0, 0, -65456, 0, 0, -65455, 0, 0, -65454, 0, 0, -65453, 0, 0, -65452, 0, 0, -65451, 0, 0, -65450, 0, 0, -65449, 0, 0, -65448, 0, 0, -65447, 0, 0, -65446, 0, 0, -65445, 0, 0, -65444, 0, 0, -65443, 0, 0, -65442, 0, 0, -65441, 0, 0, -65440, 0, 0, -65439, 0, 0, -65438, 0, 0, -65437, 0, 0, -65436, 0, 0, -65435, 0, 0, -65434, 0, 0, -65433, 0, 0, -65432, 0, 0, -65431, 0, 0, -65430, 0, 0, -65429, 0, 0, -65428, 0, 0, -65427, 0, 0, -65426, 0, 0, -65425, 0, 0, -65424, 0, 0, -65423, 0, 0, -65422, 0, 0, -65421, 0, 0, -65420, 0, 0, -65419, 0, 0, -65418, 0, 0, -65417, 0, 0, -65416, 0, 0, -65415, 0, 0, -65414, 0, 0, -65413, 0, 0, -65412, 0, 0, -65411, 0, 0, -65410, 0, 0, -65409, 0, 0, -65408, 0, 0, -65407, 0, 0, -65406, 0, 0, -65405, 0, 0, -65404, 0, 0, -65403, 0, 0, 65535, -1610612736, 0, 133, -1610612736, 0, 131071, -1610612736, 0, 65669, -1610612736, 0, 196607, -1610612736, 0, 131205, -1610612736, 0, 262143, -1610612736, 0, 196741, -1610612736, 0, 327679, -1610612736, 0, 262277, -1610612736, 0, 393215, -1610612736, 0, 327813, -1610612736, 0, 458751, -1610612736, 0, 393349, -1610612736, 0, 524287, -1610612736, 0, 458885, -1610612736, 0, 589823, -1610612736, 0, 524421, -1610612736, 0, 655359, -1610612736, 0, 589957, -1610612736, 0, 720895, -1610612736, 0, 655493, -1610612736, 0, 786431, -1610612736, 0, 721029, -1610612736, 0, 851967, -1610612736, 0, 786565, -1610612736, 0, 917503, -1610612736, 0, 852101, -1610612736, 0, 983039, -1610612736, 0, 917637, -1610612736, 0, 1048575, -1610612736, 0, 983173, -1610612736, 0, 1114111, -1610612736, 0, 1048709, -1610612736, 0, 1179647, -1610612736, 0, 1114245, -1610612736, 0, 1245183, -1610612736, 0, 1179726, -1610612736, 0, 1179781, -1610612736, 0, 1310719, -1610612736, 0, 1245317, -1610612736, 0, 1376255, -1610612736, 0, 1310853, -1610612736, 0, 1441791, -1610612736, 0, 1376389, -1610612736, 0, 1507327, -1610612736, 0, 1441925, -1610612736, 0, 1572863, -1610612736, 0, 1507461, -1610612736, 0, 1638399, -1610612736, 0, 1572997, -1610612736, 0, 1703935, -1610612736, 0, 1638533, -1610612736, 0, 1769471, -1610612736, 0, 1704069, -1610612736, 0, 1835007, -1610612736, 0, 1769605, -1610612736, 0, 1900543, -1610612736, 0, 1835141, -1610612736, 0, 1966079, -1610612736, 0, 1900677, -1610612736, 0, 2031615, -1610612736, 0, 1966213, -1610612736, 0, 2097151, -1610612736, 0, 2031714, -1610612736, 0, 2031749, -1610612736, 0, 2162687, -1610612736, 0, 2097285, -1610612736, 0, 2228223, -1610612736, 0, 2162821, -1610612736, 0, 2293759, -1610612736, 0, 2228357, -1610612736, 0, 2359295, -1610612736, 0, 2293893, -1610612736, 0, 2424831, -1610612736, 0, 2359429, -1610612736, 0, 2490367, -1610612736, 0, 2424965, -1610612736, 0, 2555903, -1610612736, 0, 2490501, -1610612736, 0, 2621439, -1610612736, 0, 2556037, -1610612736, 0, 2686975, -1610612736, 0, 2621573, -1610612736, 0, 2752511, -1610612736, 0, 2686991, -1610612736, 0, 2687109, -1610612736, 0, 2818047, -1610612736, 0, 2752645, -1610612736, 0, 2883583, -1610612736, 0, 2818181, -1610612736, 0, 2949119, -1610612736, 0, 2883717, -1610612736, 0, 3014655, -1610612736, 0, 2949253, -1610612736, 0, 3080191, -1610612736, 0, 3014789, -1610612736, 0, 3145727, -1610612736, 0, 3080239, -1610612736, 0, 3080281, -1610612736, 0, 3080325, -1610612736, 0, 3211263, -1610612736, 0, 3145861, -1610612736, 0, 3276799, -1610612736, 0, 3211397, -1610612736, 0, 3342335, -1610612736, 0, 3276933, -1610612736, 0, 3407871, -1610612736, 0, 3342469, -1610612736, 0, 3473407, -1610612736, 0, 3408005, -1610612736, 0, 3538943, -1610612736, 0, 3473541, -1610612736, 0, 3604479, -1610612736, 0, 3539077, -1610612736, 0, 3670015, -1610612736, 0, 3604613, -1610612736, 0, 3735551, -1610612736, 0, 3670149, -1610612736, 0, 3801087, -1610612736, 0, 3735685, -1610612736, 0, 3866623, -1610612736, 0, 3801221, -1610612736, 0, 3932159, -1610612736, 0, 3866675, -1610612736, 0, 3866757, -1610612736, 0, 3997695, -1610612736, 0, 3932293, -1610612736, 0, 4063231, -1610612736, 0, 3997829, -1610612736, 0, 4128767, -1610612736, 0, 4063365, -1610612736, 0, 4194303, -1610612736, 0, 4128901, -1610612736, 0, 4259839, -1610612736, 0, 4194437, -1610612736, 0, 4325375, -1610612736, 0, 4259973, -1610612736, 0, 4390911, -1610612736, 0, 4325509, -1610612736, 0, 4456447, -1610612736, 0, 4391045, -1610612736, 0, 4521983, -1610612736, 0, 4456581, -1610612736, 0, 4587519, -1610612736, 0, 4522117, -1610612736, 0, 4653055, -1610612736, 0, 4587653, -1610612736, 0, 4718591, -1610612736, 0, 4653189, -1610612736, 0, 4784127, -1610612736, 0, 4718725, -1610612736, 0, 4849663, -1610612736, 0, 4784128, -1610612736, 0, 4784129, -1610612736, 0, 4784130, -1610612736, 0, 4784131, -1610612736, 0, 4784132, -1610612736, 0, 4784133, -1610612736, 0, 4784134, -1610612736, 0, 4784135, -1610612736, 0, 4784136, -1610612736, 0, 4784137, -1610612736, 0, 4784138, -1610612736, 0, 4784139, -1610612736, 0, 4784140, -1610612736, 0, 4784141, -1610612736, 0, 4784142, -1610612736, 0, 4784143, -1610612736, 0, 4784144, -1610612736, 0, 4784145, -1610612736, 0, 4784146, -1610612736, 0, 4784147, -1610612736, 0, 4784148, -1610612736, 0, 4784149, -1610612736, 0, 4784150, -1610612736, 0, 4784151, -1610612736, 0, 4784152, -1610612736, 0, 4784153, -1610612736, 0, 4784154, -1610612736, 0, 4784155, -1610612736, 0, 4784156, -1610612736, 0, 4784157, -1610612736, 0, 4784158, -1610612736, 0, 4784159, -1610612736, 0, 4784160, -1610612736, 0, 4784161, -1610612736, 0, 4784162, -1610612736, 0, 4784163, -1610612736, 0, 4784164, -1610612736, 0, 4784165, -1610612736, 0, 4784166, -1610612736, 0, 4784167, -1610612736, 0, 4784168, -1610612736, 0, 4784169, -1610612736, 0, 4784170, -1610612736, 0, 4784171, -1610612736, 0, 4784172, -1610612736, 0, 4784173, -1610612736, 0, 4784174, -1610612736, 0, 4784175, -1610612736, 0, 4784176, -1610612736, 0, 4784177, -1610612736, 0, 4784178, -1610612736, 0, 4784179, -1610612736, 0, 4784180, -1610612736, 0, 4784181, -1610612736, 0, 4784182, -1610612736, 0, 4784183, -1610612736, 0, 4784184, -1610612736, 0, 4784185, -1610612736, 0, 4784186, -1610612736, 0, 4784187, -1610612736, 0, 4784188, -1610612736, 0, 4784189, -1610612736, 0, 4784190, -1610612736, 0, 4784191, -1610612736, 0, 4784192, -1610612736, 0, 4784193, -1610612736, 0, 4784194, -1610612736, 0, 4784195, -1610612736, 0, 4784196, -1610612736, 0, 4784197, -1610612736, 0, 4784198, -1610612736, 0, 4784199, -1610612736, 0, 4784200, -1610612736, 0, 4784201, -1610612736, 0, 4784202, -1610612736, 0, 4784203, -1610612736, 0, 4784204, -1610612736, 0, 4784205, -1610612736, 0, 4784206, -1610612736, 0, 4784207, -1610612736, 0, 4784208, -1610612736, 0, 4784209, -1610612736, 0, 4784210, -1610612736, 0, 4784211, -1610612736, 0, 4784212, -1610612736, 0, 4784213, -1610612736, 0, 4784214, -1610612736, 0, 4784215, -1610612736, 0, 4784216, -1610612736, 0, 4784217, -1610612736, 0, 4784218, -1610612736, 0, 4784219, -1610612736, 0, 4784220, -1610612736, 0, 4784221, -1610612736, 0, 4784222, -1610612736, 0, 4784223, -1610612736, 0, 4784224, -1610612736, 0, 4784225, -1610612736, 0, 4784226, -1610612736, 0, 4784227, -1610612736, 0, 4784228, -1610612736, 0, 4784229, -1610612736, 0, 4784230, -1610612736, 0, 4784231, -1610612736, 0, 4784232, -1610612736, 0, 4784233, -1610612736, 0, 4784234, -1610612736, 0, 4784235, -1610612736, 0, 4784236, -1610612736, 0, 4784237, -1610612736, 0, 4784238, -1610612736, 0, 4784239, -1610612736, 0, 4784240, -1610612736, 0, 4784241, -1610612736, 0, 4784242, -1610612736, 0, 4784243, -1610612736, 0, 4784244, -1610612736, 0, 4784245, -1610612736, 0, 4784246, -1610612736, 0, 4784247, -1610612736, 0, 4784248, -1610612736, 0, 4784249, -1610612736, 0, 4784250, -1610612736, 0, 4784251, -1610612736, 0, 4784252, -1610612736, 0, 4784253, -1610612736, 0, 4784254, -1610612736, 0, 4784255, -1610612736, 0, 4784256, -1610612736, 0, 4784257, -1610612736, 0, 4784258, -1610612736, 0, 4784259, -1610612736, 0, 4784260, -1610612736, 0, 4784261, -1610612736, 0 )
[node name="Player" parent="." instance=ExtResource( 3 )]
position = Vector2( 2560, 1272 )
[node name="Camera2D" type="Camera2D" parent="Player"]
position = Vector2( 0, -5.99341 )
current = true
[node name="MobTimer" type="Timer" parent="."]
wait_time = 0.5
[node name="PowerupTimer" type="Timer" parent="."]
wait_time = 2.0
[node name="ScoreCounter" type="Timer" parent="."]
[node name="TimeCounter" type="Timer" parent="."]
[node name="StartTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="MobPath" type="Path2D" parent="."]
curve = SubResource( 3 )
[node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
rotation = 0.00133564
[node name="PowerupPath" type="Path2D" parent="."]
curve = SubResource( 3 )
[node name="PowerupSpawnLocation" type="PathFollow2D" parent="PowerupPath"]
rotation = 0.00133564
[node name="HUD" parent="." instance=ExtResource( 4 )]
[node name="StartPosition" type="Position2D" parent="."]
position = Vector2( 2560, 1272 )
[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )
[node name="DeathSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
[node name="HellSpawn4" parent="." instance=ExtResource( 8 )]
position = Vector2( 7270.86, 1265.02 )
[node name="HellSpawn5" parent="." instance=ExtResource( 8 )]
position = Vector2( 1090.93, 3350.39 )
[node name="HellSpawn7" parent="." instance=ExtResource( 8 )]
position = Vector2( 7343.46, 3483.71 )
[node name="HellSpawn9" parent="." instance=ExtResource( 8 )]
position = Vector2( 4403.13, 3365.87 )
[node name="HellSpawn10" parent="." instance=ExtResource( 8 )]
position = Vector2( 4363.53, 1302.94 )
[node name="HellSpawn3" parent="." instance=ExtResource( 8 )]
position = Vector2( 1030.77, 1210.74 )
[connection signal="bonus_points" from="Player" to="." method="_on_Player_bonus_points"]
[connection signal="hit" from="Player" to="." method="game_over"]
[connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]
[connection signal="timeout" from="PowerupTimer" to="." method="_on_PowerupTimer_timeout"]
[connection signal="timeout" from="ScoreCounter" to="." method="_on_ScoreCounter_timeout"]
[connection signal="timeout" from="TimeCounter" to="." method="_on_TimeCounter_timeout"]
[connection signal="timeout" from="StartTimer" to="." method="_on_StartTimer_timeout"]
[connection signal="name_change" from="HUD" to="Player" method="update_player_name"]
[connection signal="start_game" from="HUD" to="." method="new_game"]