-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_scene.tscn
86 lines (73 loc) · 2.34 KB
/
main_scene.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
[gd_scene load_steps=8 format=2]
[ext_resource path="res://player.tscn" type="PackedScene" id=1]
[ext_resource path="res://user_interface.tscn" type="PackedScene" id=2]
[ext_resource path="res://main_scene.gd" type="Script" id=3]
[ext_resource path="res://resources/win.png" type="Texture" id=4]
[ext_resource path="res://resources/lose.png" type="Texture" id=5]
[ext_resource path="res://audio_player.gd" type="Script" id=6]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 512, 296 )
[node name="main_scene" type="Node2D"]
script = ExtResource( 3 )
[node name="player" parent="." instance=ExtResource( 1 )]
position = Vector2( 512, 296 )
scale = Vector2( 0.3, 0.3 )
[node name="collision_area" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="collision_area"]
position = Vector2( 512, 296 )
z_index = 1
shape = SubResource( 1 )
[node name="canvas_ui" type="CanvasLayer" parent="."]
[node name="lose_screen" type="TextureRect" parent="canvas_ui"]
visible = false
anchor_left = 0.008
anchor_top = 0.008
anchor_right = 0.949
anchor_bottom = 0.925
margin_right = 40.0
margin_bottom = 40.0
texture = ExtResource( 5 )
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="user_interface" parent="canvas_ui" instance=ExtResource( 2 )]
[node name="objective" type="Label" parent="canvas_ui"]
margin_top = 8.0
margin_right = 139.0
margin_bottom = 22.0
text = "OBJECTIVE : 150 KILLS"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="instructions" type="Label" parent="canvas_ui"]
margin_left = 72.0
margin_top = 200.0
margin_right = 572.0
margin_bottom = 270.0
rect_scale = Vector2( 1.72, 1.76 )
text = "1 enemy spaceship kill (2 hits) increments counter.
1 player hit with a spaceship decrements the counter.
If your counter go down to 0, you loose, if the counter go up to 150, you win.
Press 'WASD' to move
Press 'E' to shoot
Press 'ESC' to exit
-Now, press 'E' to start killing spaceships like a boss-
ez pizi."
__meta__ = {
"_edit_use_anchors_": false
}
[node name="win_screen" type="TextureRect" parent="canvas_ui"]
visible = false
anchor_left = 0.008
anchor_right = 0.742
anchor_bottom = 0.775
margin_right = 256.0
margin_bottom = 128.0
texture = ExtResource( 4 )
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="audio_player" type="AudioStreamPlayer2D" parent="."]
script = ExtResource( 6 )