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