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