fuzzyworld

godot-shooter / meteor / files / World.tscn

Branch meteor · default branch · all branches

World.tscn

3.9 KB · history · blame

1[gd_scene load_steps=9 format=2]
2
3[ext_resource path="res://assets/kenney_simple-space/PNG/Default/icon_crossLarge.png" type="Texture" id=1]
4[ext_resource path="res://Player.tscn" type="PackedScene" id=2]
5[ext_resource path="res://HUD.tscn" type="PackedScene" id=3]
6[ext_resource path="res://World.gd" type="Script" id=4]
7[ext_resource path="res://StarField.tscn" type="PackedScene" id=5]
8[ext_resource path="res://CharacterTheme.tres" type="Theme" id=6]
9[ext_resource path="res://MeteorLarge.tscn" type="PackedScene" id=7]
10
11[sub_resource type="CircleShape2D" id=1]
12radius = 29.0172
13
14[node name="World" type="Node2D"]
15script = ExtResource( 4 )
16enemy_count = 3
17
18[node name="CanvasLayer2" type="CanvasLayer" parent="."]
19visible = false
20
21[node name="ParallaxBackground" type="ParallaxBackground" parent="CanvasLayer2"]
22visible = false
23scroll_ignore_camera_zoom = true
24
25[node name="Foreground" type="ParallaxLayer" parent="CanvasLayer2/ParallaxBackground"]
26motion_mirroring = Vector2( 2048, 1200 )
27
28[node name="StarField" parent="CanvasLayer2/ParallaxBackground/Foreground" instance=ExtResource( 5 )]
29
30[node name="Background" type="ParallaxLayer" parent="CanvasLayer2/ParallaxBackground"]
31visible = false
32modulate = Color( 1, 1, 1, 0.501961 )
33motion_scale = Vector2( 0.8, 0.8 )
34motion_mirroring = Vector2( 2048, 1200 )
35__meta__ = {
36"_edit_group_": true
37}
38
39[node name="StarField2" parent="CanvasLayer2/ParallaxBackground/Background" instance=ExtResource( 5 )]
40visible = false
41
42[node name="Environment" type="Node2D" parent="."]
43
44[node name="MeteorLarge" parent="Environment" instance=ExtResource( 7 )]
45position = Vector2( 285, 210 )
46size = 3
47
48[node name="Player" parent="." groups=["player"] instance=ExtResource( 2 )]
49position = Vector2( 513, 302 )
50
51[node name="Destination" type="Area2D" parent="."]
52
53[node name="XSprite" type="Sprite" parent="Destination"]
54modulate = Color( 0.0784314, 0, 1, 1 )
55texture = ExtResource( 1 )
56
57[node name="CollisionShape2D" type="CollisionShape2D" parent="Destination"]
58shape = SubResource( 1 )
59
60[node name="CanvasLayer" type="CanvasLayer" parent="."]
61
62[node name="HUD" parent="CanvasLayer" instance=ExtResource( 3 )]
63pause_mode = 2
64margin_left = -4.0
65margin_top = -3.0
66margin_right = -4.0
67margin_bottom = -3.0
68
69[node name="PauseMenu" type="Control" parent="CanvasLayer"]
70pause_mode = 2
71visible = false
72anchor_right = 1.0
73anchor_bottom = 1.0
74margin_right = 40.0
75margin_bottom = 40.0
76mouse_filter = 2
77
78[node name="CenterContainer" type="CenterContainer" parent="CanvasLayer/PauseMenu"]
79visible = false
80anchor_right = 1.0
81anchor_bottom = 1.0
82margin_right = 40.0
83margin_bottom = 40.0
84
85[node name="Panel" type="Panel" parent="CanvasLayer/PauseMenu"]
86margin_left = 407.0
87margin_top = 218.0
88margin_right = 657.0
89margin_bottom = 468.0
90
91[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/PauseMenu/Panel"]
92margin_left = 68.0
93margin_top = 72.0
94margin_right = 132.0
95margin_bottom = 110.0
96
97[node name="Label" type="Label" parent="CanvasLayer/PauseMenu/Panel/VBoxContainer"]
98margin_right = 114.0
99margin_bottom = 35.0
100theme = ExtResource( 6 )
101text = "Paused"
102align = 1
103
104[node name="Button" type="Button" parent="CanvasLayer/PauseMenu/Panel/VBoxContainer"]
105margin_top = 39.0
106margin_right = 114.0
107margin_bottom = 80.0
108theme = ExtResource( 6 )
109text = "Resume"
110
111[node name="ShootTimer" type="Timer" parent="."]
112process_mode = 0
113wait_time = 0.1
114autostart = true
115
116[node name="PlayerToTarget" type="Line2D" parent="."]
117visible = false
118modulate = Color( 1, 0.984314, 0, 1 )
119points = PoolVector2Array( 2085.69, 283.505, 2067.82, 274.471 )
120width = 3.0
121default_color = Color( 1, 0.976471, 0.4, 1 )
122joint_mode = 1
123begin_cap_mode = 2
124end_cap_mode = 2
125round_precision = 13
126antialiased = true
127
128[connection signal="body_entered" from="Destination" to="." method="_on_Destination_body_entered"]
129[connection signal="pressed" from="CanvasLayer/PauseMenu/Panel/VBoxContainer/Button" to="." method="_on_Button_pressed"]
130[connection signal="timeout" from="ShootTimer" to="." method="_on_ShootTimer_timeout"]