godot-shooter / change-html-template / files / World.tscn
Branch change-html-template · default branch · all branches
World.tscn
| 1 | [gd_scene load_steps=8 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 | |
| 10 | [sub_resource type="CircleShape2D" id=1] |
| 11 | radius = 29.0172 |
| 12 | |
| 13 | [node name="World" type="Node2D"] |
| 14 | script = ExtResource( 4 ) |
| 15 | |
| 16 | [node name="Player" parent="." groups=["player"] instance=ExtResource( 2 )] |
| 17 | position = Vector2( 248, 410 ) |
| 18 | |
| 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 | |
| 28 | [node name="CanvasLayer2" type="CanvasLayer" parent="."] |
| 29 | |
| 30 | [node name="ParallaxBackground" type="ParallaxBackground" parent="CanvasLayer2"] |
| 31 | scroll_ignore_camera_zoom = true |
| 32 | |
| 33 | [node name="Foreground" type="ParallaxLayer" parent="CanvasLayer2/ParallaxBackground"] |
| 34 | motion_mirroring = Vector2( 2048, 1200 ) |
| 35 | |
| 36 | [node name="StarField" parent="CanvasLayer2/ParallaxBackground/Foreground" instance=ExtResource( 5 )] |
| 37 | |
| 38 | [node name="Background" type="ParallaxLayer" parent="CanvasLayer2/ParallaxBackground"] |
| 39 | visible = false |
| 40 | modulate = Color( 1, 1, 1, 0.501961 ) |
| 41 | motion_scale = Vector2( 0.8, 0.8 ) |
| 42 | motion_mirroring = Vector2( 2048, 1200 ) |
| 43 | __meta__ = { |
| 44 | "_edit_group_": true |
| 45 | } |
| 46 | |
| 47 | [node name="StarField2" parent="CanvasLayer2/ParallaxBackground/Background" instance=ExtResource( 5 )] |
| 48 | visible = false |
| 49 | |
| 50 | [node name="Environment" type="Node2D" parent="."] |
| 51 | |
| 52 | [node name="CanvasLayer" type="CanvasLayer" parent="."] |
| 53 | |
| 54 | [node name="HUD" parent="CanvasLayer" instance=ExtResource( 3 )] |
| 55 | pause_mode = 2 |
| 56 | margin_left = -4.0 |
| 57 | margin_top = -3.0 |
| 58 | margin_right = -4.0 |
| 59 | margin_bottom = -3.0 |
| 60 | |
| 61 | [node name="PauseMenu" type="Control" parent="CanvasLayer"] |
| 62 | pause_mode = 2 |
| 63 | visible = false |
| 64 | anchor_right = 1.0 |
| 65 | anchor_bottom = 1.0 |
| 66 | margin_right = 40.0 |
| 67 | margin_bottom = 40.0 |
| 68 | mouse_filter = 2 |
| 69 | |
| 70 | [node name="Panel" type="Panel" parent="CanvasLayer/PauseMenu"] |
| 71 | margin_left = 120.0 |
| 72 | margin_top = 233.0 |
| 73 | margin_right = 370.0 |
| 74 | margin_bottom = 483.0 |
| 75 | |
| 76 | [node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/PauseMenu/Panel"] |
| 77 | margin_left = 68.0 |
| 78 | margin_top = 72.0 |
| 79 | margin_right = 132.0 |
| 80 | margin_bottom = 110.0 |
| 81 | |
| 82 | [node name="Label" type="Label" parent="CanvasLayer/PauseMenu/Panel/VBoxContainer"] |
| 83 | margin_right = 114.0 |
| 84 | margin_bottom = 35.0 |
| 85 | theme = ExtResource( 6 ) |
| 86 | text = "Paused" |
| 87 | align = 1 |
| 88 | |
| 89 | [node name="Button" type="Button" parent="CanvasLayer/PauseMenu/Panel/VBoxContainer"] |
| 90 | margin_top = 39.0 |
| 91 | margin_right = 114.0 |
| 92 | margin_bottom = 80.0 |
| 93 | theme = ExtResource( 6 ) |
| 94 | text = "Resume" |
| 95 | |
| 96 | [node name="ShootTimer" type="Timer" parent="."] |
| 97 | process_mode = 0 |
| 98 | wait_time = 0.1 |
| 99 | autostart = true |
| 100 | |
| 101 | [node name="PlayerToTarget" type="Line2D" parent="."] |
| 102 | visible = false |
| 103 | modulate = Color( 1, 0.984314, 0, 1 ) |
| 104 | points = PoolVector2Array( 2085.69, 283.505, 2067.82, 274.471 ) |
| 105 | width = 3.0 |
| 106 | default_color = Color( 1, 0.976471, 0.4, 1 ) |
| 107 | joint_mode = 1 |
| 108 | begin_cap_mode = 2 |
| 109 | end_cap_mode = 2 |
| 110 | round_precision = 13 |
| 111 | antialiased = true |
| 112 | |
| 113 | [connection signal="body_entered" from="Destination" to="." method="_on_Destination_body_entered"] |
| 114 | [connection signal="pressed" from="CanvasLayer/PauseMenu/Panel/VBoxContainer/Button" to="." method="_on_Button_pressed"] |
| 115 | [connection signal="timeout" from="ShootTimer" to="." method="_on_ShootTimer_timeout"] |