-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tscn
67 lines (45 loc) · 2.62 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
66
67
[gd_scene load_steps=11 format=3 uid="uid://fh8sf8nyuy14"]
[ext_resource type="Script" path="res://main.gd" id="1_411yu"]
[ext_resource type="PackedScene" uid="uid://bdfo216a617rc" path="res://beings/player.tscn" id="2_4vytu"]
[ext_resource type="PackedScene" uid="uid://dbux7q0ds61l6" path="res://hud.tscn" id="3_n6e8k"]
[ext_resource type="PackedScene" uid="uid://0dmx381jgmbm" path="res://beings/tiny_creature_2.tscn" id="3_p17bd"]
[ext_resource type="PackedScene" uid="uid://b2q033821e0j7" path="res://beings/enemy_path.tscn" id="4_mgbd6"]
[ext_resource type="Texture2D" uid="uid://c0oqr3p8ip1ic" path="res://art_assets/background.png" id="6_ucc4y"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_x785j"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_wy3i4"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_u7ax4"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_3ctcy"]
[node name="Main" type="Node"]
script = ExtResource("1_411yu")
enemy1 = ExtResource("4_mgbd6")
enemy2 = ExtResource("3_p17bd")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="HUD" parent="CanvasLayer" instance=ExtResource("3_n6e8k")]
[node name="Background" type="Sprite2D" parent="."]
texture = ExtResource("6_ucc4y")
centered = false
[node name="Player" parent="." instance=ExtResource("2_4vytu")]
position = Vector2(305, 191)
[node name="Enemy1SpawnTimer" type="Timer" parent="."]
[node name="Enemy2SpawnTimer" type="Timer" parent="."]
[node name="GameTimer" type="Timer" parent="."]
[node name="Area2D" type="RigidBody2D" parent="."]
position = Vector2(0, 360)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("WorldBoundaryShape2D_x785j")
[node name="Area2D2" type="RigidBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D2"]
rotation = 1.5708
shape = SubResource("WorldBoundaryShape2D_wy3i4")
[node name="Area2D3" type="RigidBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D3"]
rotation = -3.14159
shape = SubResource("WorldBoundaryShape2D_u7ax4")
[node name="Area2D4" type="RigidBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D4"]
position = Vector2(640, 0)
rotation = -1.5708
shape = SubResource("WorldBoundaryShape2D_3ctcy")
[connection signal="timeout" from="Enemy1SpawnTimer" to="." method="_on_enemy_1_spawn_timer_timeout"]
[connection signal="timeout" from="Enemy2SpawnTimer" to="." method="_on_enemy_2_spawn_timer_timeout"]
[connection signal="timeout" from="GameTimer" to="." method="_on_game_timer_timeout"]