fuzzyworld

godot-shooter / files / scenes / World.tscn

World.tscn

2.9 KB · history · blame

1[gd_scene load_steps=7 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://actors/Player.tscn" type="PackedScene" id=2]
5[ext_resource path="res://scenes/World.gd" type="Script" id=4]
6[ext_resource path="res://effects/StarField.tscn" type="PackedScene" id=5]
7
8[sub_resource type="CircleShape2D" id=1]
9radius = 29.0172
10
11[sub_resource type="NavigationPolygon" id=2]
12vertices = PoolVector2Array( -400, -400, 400, -400, 400, 400, -400, 400 )
13polygons = [ PoolIntArray( 0, 1, 2, 3 ) ]
14outlines = [ PoolVector2Array( -400, -400, 400, -400, 400, 400, -400, 400 ) ]
15
16[node name="World" type="Node2D"]
17script = ExtResource( 4 )
18
19[node name="Destination" type="Area2D" parent="."]
20
21[node name="XSprite" type="Sprite" parent="Destination"]
22modulate = Color( 0.0784314, 0, 1, 1 )
23texture = ExtResource( 1 )
24
25[node name="CollisionShape2D" type="CollisionShape2D" parent="Destination"]
26shape = SubResource( 1 )
27
28[node name="Background" type="CanvasLayer" parent="."]
29layer = -100
30visible = false
31
32[node name="ParallaxBackground" type="ParallaxBackground" parent="Background"]
33visible = false
34
35[node name="Foreground" type="ParallaxLayer" parent="Background/ParallaxBackground"]
36motion_mirroring = Vector2( 600, 1000 )
37
38[node name="StarField" parent="Background/ParallaxBackground/Foreground" instance=ExtResource( 5 )]
39
40[node name="Background" type="ParallaxLayer" parent="Background/ParallaxBackground"]
41modulate = Color( 1, 1, 1, 0.501961 )
42motion_scale = Vector2( 0.8, 0.8 )
43motion_mirroring = Vector2( 600, 1000 )
44__meta__ = {
45"_edit_group_": true
46}
47
48[node name="StarField2" parent="Background/ParallaxBackground/Background" instance=ExtResource( 5 )]
49
50[node name="Background2" type="ParallaxLayer" parent="Background/ParallaxBackground"]
51modulate = Color( 1, 1, 1, 0.101961 )
52motion_scale = Vector2( 0.6, 0.6 )
53motion_mirroring = Vector2( 600, 1000 )
54__meta__ = {
55"_edit_group_": true
56}
57
58[node name="StarField2" parent="Background/ParallaxBackground/Background2" instance=ExtResource( 5 )]
59
60[node name="Player" parent="." instance=ExtResource( 2 )]
61
62[node name="Environment" type="Node2D" parent="."]
63
64[node name="ShootTimer" type="Timer" parent="."]
65process_mode = 0
66wait_time = 0.05
67autostart = true
68
69[node name="UpdateTimer" type="Timer" parent="."]
70wait_time = 0.1
71autostart = true
72
73[node name="NavigationPolygonInstance" type="NavigationPolygonInstance" parent="."]
74navpoly = SubResource( 2 )
75navigation_layers = 2
76
77[connection signal="body_entered" from="Destination" to="." method="_on_Destination_body_entered"]
78[connection signal="debug" from="Player" to="." method="_on_Player_debug"]
79[connection signal="destination_set" from="Player" to="." method="_on_Player_destination_set"]
80[connection signal="timeout" from="ShootTimer" to="." method="_on_ShootTimer_timeout"]
81[connection signal="timeout" from="UpdateTimer" to="." method="_on_UpdateTimer_timeout"]