Files
MovementTests/guide_examples/top_down_shooter/top_down_shooter.tscn
Minimata af1f6da98d
Some checks failed
Create tag and build when new code gets to main / BumpTag (push) Successful in 31s
Create tag and build when new code gets to main / Test (push) Has been cancelled
Create tag and build when new code gets to main / Export (push) Has been cancelled
updating project files
2026-01-28 09:50:10 +01:00

140 lines
6.2 KiB
Plaintext

[gd_scene format=3 uid="uid://kmamxwy5rcyc"]
[ext_resource type="Script" uid="uid://sh4xv5urdau8" path="res://guide_examples/top_down_shooter/top_down_shooter.gd" id="1_gvlv5"]
[ext_resource type="Script" uid="uid://blx1seoclt48w" path="res://guide_examples/top_down_shooter/player/player.gd" id="1_pm1t3"]
[ext_resource type="Resource" uid="uid://dhp7nup127wxw" path="res://guide_examples/top_down_shooter/mapping_contexts/keyboard_and_mouse.tres" id="2_bl5ot"]
[ext_resource type="Texture2D" uid="uid://c22k1y6rbntlw" path="res://guide_examples/top_down_shooter/player/mrg0000.png" id="2_rc4yh"]
[ext_resource type="Resource" uid="uid://dysrgn1ubf15g" path="res://guide_examples/top_down_shooter/mapping_contexts/controller.tres" id="3_tldv6"]
[ext_resource type="Resource" uid="uid://byu565ktximg2" path="res://guide_examples/top_down_shooter/mapping_contexts/switch_to_controller.tres" id="4_rfvaw"]
[ext_resource type="Resource" uid="uid://vpsh1myp67ws" path="res://guide_examples/top_down_shooter/mapping_contexts/look_relative.tres" id="5_hxqcn"]
[ext_resource type="Resource" uid="uid://bnd2jguy7tfti" path="res://guide_examples/top_down_shooter/mapping_contexts/switch_to_keyboard_and_mouse.tres" id="5_usevy"]
[ext_resource type="Resource" uid="uid://c4tpipfhludsi" path="res://guide_examples/top_down_shooter/mapping_contexts/look_absolute.tres" id="6_viqho"]
[ext_resource type="Resource" uid="uid://ch070wegl722t" path="res://guide_examples/top_down_shooter/mapping_contexts/move.tres" id="7_gtewy"]
[ext_resource type="Resource" uid="uid://coktqyup12g3w" path="res://guide_examples/top_down_shooter/mapping_contexts/fire.tres" id="8_kmeb0"]
[ext_resource type="PackedScene" uid="uid://dkr80d2pi0d41" path="res://addons/guide/debugger/guide_debugger.tscn" id="9_kqgcv"]
[ext_resource type="PackedScene" uid="uid://c0fqv8e3tljmp" path="res://guide_examples/top_down_shooter/bolt/bolt.tscn" id="9_ybbsa"]
[ext_resource type="Theme" uid="uid://dot0gi1yoqmrl" path="res://guide_examples/shared/ui_theme.tres" id="14_ipln3"]
[ext_resource type="Script" uid="uid://w8q1xlqw60qh" path="res://guide_examples/shared/instructions_label.gd" id="15_d8ctw"]
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="16_6no5b"]
[sub_resource type="CircleShape2D" id="CircleShape2D_jh0ar"]
radius = 118.54
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_duktp"]
[node name="TopDownShooter" type="Node2D" unique_id=99488107]
script = ExtResource("1_gvlv5")
keyboard_and_mouse = ExtResource("2_bl5ot")
controller = ExtResource("3_tldv6")
switch_to_controller = ExtResource("4_rfvaw")
switch_to_keyboard_and_mouse = ExtResource("5_usevy")
[node name="Player" type="CharacterBody2D" parent="." unique_id=1232236773]
position = Vector2(911, 479)
motion_mode = 1
script = ExtResource("1_pm1t3")
look_relative = ExtResource("5_hxqcn")
look_absolute = ExtResource("6_viqho")
move = ExtResource("7_gtewy")
fire = ExtResource("8_kmeb0")
bolt = ExtResource("9_ybbsa")
[node name="Mrg0000" type="Sprite2D" parent="Player" unique_id=1111925966]
texture = ExtResource("2_rc4yh")
metadata/_edit_lock_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player" unique_id=401693723]
shape = SubResource("CircleShape2D_jh0ar")
metadata/_edit_lock_ = true
[node name="LeftHand" type="Marker2D" parent="Player" unique_id=1427298159]
unique_name_in_owner = true
position = Vector2(41, -105)
metadata/_edit_lock_ = true
[node name="RightHand" type="Marker2D" parent="Player" unique_id=832390373]
unique_name_in_owner = true
position = Vector2(41, 109)
metadata/_edit_lock_ = true
[node name="Boundary" type="StaticBody2D" parent="." unique_id=2031980366]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Boundary" unique_id=80297785]
position = Vector2(831, 1077)
shape = SubResource("WorldBoundaryShape2D_duktp")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Boundary" unique_id=1883836103]
position = Vector2(950, 1)
rotation = 3.14159
shape = SubResource("WorldBoundaryShape2D_duktp")
[node name="CollisionShape2D3" type="CollisionShape2D" parent="Boundary" unique_id=587029561]
position = Vector2(1919, 523)
rotation = 4.71239
shape = SubResource("WorldBoundaryShape2D_duktp")
[node name="CollisionShape2D4" type="CollisionShape2D" parent="Boundary" unique_id=1728797456]
position = Vector2(-1, 530)
rotation = 1.5708
shape = SubResource("WorldBoundaryShape2D_duktp")
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1410478305]
[node name="GuideDebugger" parent="CanvasLayer" unique_id=962425056 instance=ExtResource("9_kqgcv")]
theme = ExtResource("14_ipln3")
[node name="BG" type="CanvasLayer" parent="." unique_id=1469485650]
layer = -1
[node name="ColorRect" type="ColorRect" parent="BG" unique_id=1486419305]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
color = Color(0.0869374, 0.147497, 0.00609748, 1)
[node name="UI Layer" type="CanvasLayer" parent="." unique_id=345591574]
[node name="Instructions Label Controller" type="RichTextLabel" parent="UI Layer" unique_id=1099015064]
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -352.0
offset_top = 15.0
offset_right = -105.0
offset_bottom = 38.0
grow_horizontal = 0
theme = ExtResource("14_ipln3")
script = ExtResource("15_d8ctw")
instructions_text = "Look around with %s.
Move with %s.
Fire with %s.
Press any key or move the mouse to switch to
keyboard and mouse."
actions = Array[ExtResource("16_6no5b")]([ExtResource("5_hxqcn"), ExtResource("7_gtewy"), ExtResource("8_kmeb0")])
limit_to_context = ExtResource("3_tldv6")
metadata/_edit_use_anchors_ = true
[node name="Instructions Label Keyboard and Mouse" type="RichTextLabel" parent="UI Layer" unique_id=466844585]
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -352.0
offset_top = 15.0
offset_right = -105.0
offset_bottom = 38.0
grow_horizontal = 0
theme = ExtResource("14_ipln3")
script = ExtResource("15_d8ctw")
instructions_text = "Look around with %s.
Move with %s.
Fire with %s.
Use any controller input to switch to controller."
actions = Array[ExtResource("16_6no5b")]([ExtResource("6_viqho"), ExtResource("7_gtewy"), ExtResource("8_kmeb0")])
limit_to_context = ExtResource("2_bl5ot")
metadata/_edit_use_anchors_ = true