Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c7abeb0d9 | |||
| 97828ecdda | |||
| 9d8877cc67 | |||
| fd7b55452b | |||
| 1cafe6e96d | |||
| ea8821b41a | |||
| 8338ce3dd9 | |||
| 39f45d418f | |||
| 4e756da1ba | |||
| 919236a388 |
@@ -57,18 +57,18 @@ jobs:
|
||||
- name: Build Windows
|
||||
run: |
|
||||
mkdir -v -p build/windows
|
||||
godot --headless --verbose --build-solutions --import --export-release "Windows Desktop" build/windows/${{ env.GAME_NAME }}.exe
|
||||
godot --headless --verbose --build-solutions --export-release "Windows Desktop" build/windows/${{ env.GAME_NAME }}.exe
|
||||
zip -r Windows.zip build/windows
|
||||
- name: Linux Build
|
||||
run: |
|
||||
mkdir -v -p build/linux
|
||||
godot --headless --verbose --export-release "Linux/X11" build/linux/${{ env.GAME_NAME }}.x86_64
|
||||
zip -r Linux.zip build/linux
|
||||
- name: Mac Build
|
||||
run: |
|
||||
mkdir -v -p build/mac
|
||||
godot --headless --verbose --export-release "macOS" build/mac/${{ env.GAME_NAME }}.zip
|
||||
zip -r Mac.zip build/mac
|
||||
# - name: Linux Build
|
||||
# run: |
|
||||
# mkdir -v -p build/linux
|
||||
# godot --headless --verbose --export-release "Linux/X11" build/linux/${{ env.GAME_NAME }}.x86_64
|
||||
# zip -r Linux.zip build/linux
|
||||
# - name: Mac Build
|
||||
# run: |
|
||||
# mkdir -v -p build/mac
|
||||
# godot --headless --verbose --export-release "macOS" build/mac/${{ env.GAME_NAME }}.zip
|
||||
# zip -r Mac.zip build/mac
|
||||
|
||||
- name: Upload to Itch
|
||||
uses: KikimoraGames/itch-publish@v0.0.3
|
||||
@@ -79,21 +79,21 @@ jobs:
|
||||
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||
gameData: Windows.zip
|
||||
buildChannel: windows
|
||||
- name: Upload to Itch
|
||||
uses: KikimoraGames/itch-publish@v0.0.3
|
||||
with:
|
||||
butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
||||
itchUsername: ${{ env.ITCHIO_USERNAME }}
|
||||
itchGameId: ${{ env.ITCHIO_GAMEID }}
|
||||
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||
gameData: Linux.zip
|
||||
buildChannel: linux
|
||||
- name: Upload to Itch
|
||||
uses: KikimoraGames/itch-publish@v0.0.3
|
||||
with:
|
||||
butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
||||
itchUsername: ${{ env.ITCHIO_USERNAME }}
|
||||
itchGameId: ${{ env.ITCHIO_GAMEID }}
|
||||
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||
gameData: Mac.zip
|
||||
buildChannel: mac
|
||||
# - name: Upload to Itch
|
||||
# uses: KikimoraGames/itch-publish@v0.0.3
|
||||
# with:
|
||||
# butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
||||
# itchUsername: ${{ env.ITCHIO_USERNAME }}
|
||||
# itchGameId: ${{ env.ITCHIO_GAMEID }}
|
||||
# buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||
# gameData: Linux.zip
|
||||
# buildChannel: linux
|
||||
# - name: Upload to Itch
|
||||
# uses: KikimoraGames/itch-publish@v0.0.3
|
||||
# with:
|
||||
# butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
||||
# itchUsername: ${{ env.ITCHIO_USERNAME }}
|
||||
# itchGameId: ${{ env.ITCHIO_GAMEID }}
|
||||
# buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||
# gameData: Mac.zip
|
||||
# buildChannel: mac
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class_name SceneLoaderClass
|
||||
extends Node
|
||||
class_name SceneLoaderClass
|
||||
## Autoload class for loading scenes with an optional loading screen.
|
||||
|
||||
signal scene_loaded
|
||||
|
||||
@@ -4,7 +4,21 @@ extends OverlaidMenu
|
||||
@export var options_packed_scene : PackedScene
|
||||
@export_file("*.tscn") var main_menu_scene : String
|
||||
|
||||
@export var menu_context : GUIDEMappingContext
|
||||
|
||||
var popup_open : Node
|
||||
var previous_mapping_contexts : Array
|
||||
|
||||
func on_enter_tree() -> void:
|
||||
pass
|
||||
#previous_mapping_contexts = GUIDE.get_enabled_mapping_contexts()
|
||||
#GUIDE.enable_mapping_context(menu_context)
|
||||
|
||||
func on_exit_tree() -> void:
|
||||
pass
|
||||
#GUIDE.disable_mapping_context(menu_context)
|
||||
#for previous_context in previous_mapping_contexts:
|
||||
#GUIDE.enable_mapping_context(previous_context)
|
||||
|
||||
func close_popup() -> void:
|
||||
if popup_open != null:
|
||||
|
||||
@@ -10,7 +10,7 @@ extends Node
|
||||
@export var pause:GUIDEAction
|
||||
|
||||
func _ready() -> void:
|
||||
GUIDE.enable_mapping_context(base_mode)
|
||||
# GUIDE.enable_mapping_context(base_mode)
|
||||
|
||||
pause.triggered.connect(on_input_pause)
|
||||
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
28
assets/lift/lift.gd
Normal file
28
assets/lift/lift.gd
Normal file
@@ -0,0 +1,28 @@
|
||||
extends Node3D
|
||||
|
||||
var lift_already_used : bool = false
|
||||
|
||||
@export var end_location : Vector3 = Vector3.ZERO
|
||||
@export var lift_time : float = 1.0
|
||||
|
||||
@onready var button: MeshInstance3D = $Cylinder_001
|
||||
|
||||
func start_climbing() -> void:
|
||||
var elevator_tween = get_tree().create_tween()
|
||||
elevator_tween.set_ease(Tween.EASE_IN_OUT)
|
||||
elevator_tween.set_trans(Tween.TRANS_CUBIC)
|
||||
elevator_tween.tween_property(self, "global_position", end_location, lift_time)
|
||||
|
||||
|
||||
func _on_area_3d_body_entered(body: Node3D) -> void:
|
||||
if lift_already_used:
|
||||
return
|
||||
|
||||
if is_instance_of(body, CharacterBody3D):
|
||||
lift_already_used = true
|
||||
|
||||
var button_tween = get_tree().create_tween()
|
||||
var button_final_pos = button.global_position + Vector3.DOWN * 0.35
|
||||
button_tween.tween_property(button, "global_position", button_final_pos, 0.3)
|
||||
button_tween.tween_callback(start_climbing)
|
||||
|
||||
1
assets/lift/lift.gd.uid
Normal file
1
assets/lift/lift.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://c1w84vh3bqijr
|
||||
BIN
assets/lift/lift.glb
Normal file
BIN
assets/lift/lift.glb
Normal file
Binary file not shown.
42
assets/lift/lift.glb.import
Normal file
42
assets/lift/lift.glb.import
Normal file
@@ -0,0 +1,42 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://cc2vcuaulfks3"
|
||||
path="res://.godot/imported/lift.glb-e7e66d0f097e30a0a067073f130adce8.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/lift/lift.glb"
|
||||
dest_files=["res://.godot/imported/lift.glb-e7e66d0f097e30a0a067073f130adce8.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/root_script=null
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_name_suffixes=true
|
||||
nodes/use_node_type_suffixes=true
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=2
|
||||
gltf/embedded_image_handling=1
|
||||
33
assets/lift/lift.tscn
Normal file
33
assets/lift/lift.tscn
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@@ -5,11 +5,11 @@ bus/1/name = &"Music"
|
||||
bus/1/solo = false
|
||||
bus/1/mute = false
|
||||
bus/1/bypass_fx = false
|
||||
bus/1/volume_db = -6.5788474
|
||||
bus/1/volume_db = -15.794972
|
||||
bus/1/send = &"Master"
|
||||
bus/2/name = &"SFX"
|
||||
bus/2/solo = false
|
||||
bus/2/mute = false
|
||||
bus/2/bypass_fx = false
|
||||
bus/2/volume_db = -10.074136
|
||||
bus/2/volume_db = -8.798218
|
||||
bus/2/send = &"Master"
|
||||
|
||||
@@ -26,6 +26,7 @@ debug/export_console_wrapper=1
|
||||
binary_format/embed_pck=false
|
||||
texture_format/s3tc_bptc=true
|
||||
texture_format/etc2_astc=false
|
||||
shader_baker/enabled=false
|
||||
binary_format/architecture="x86_64"
|
||||
ssh_remote_deploy/enabled=false
|
||||
ssh_remote_deploy/host="user@host_ip"
|
||||
@@ -71,10 +72,11 @@ script_export_mode=2
|
||||
|
||||
custom_template/debug=""
|
||||
custom_template/release=""
|
||||
debug/export_console_wrapper=1
|
||||
debug/export_console_wrapper=2
|
||||
binary_format/embed_pck=false
|
||||
texture_format/s3tc_bptc=true
|
||||
texture_format/etc2_astc=false
|
||||
shader_baker/enabled=true
|
||||
binary_format/architecture="x86_64"
|
||||
codesign/enable=false
|
||||
codesign/timestamp=true
|
||||
@@ -164,6 +166,8 @@ progressive_web_app/icon_144x144=""
|
||||
progressive_web_app/icon_180x180=""
|
||||
progressive_web_app/icon_512x512=""
|
||||
progressive_web_app/background_color=Color(0, 0, 0, 1)
|
||||
threads/emscripten_pool_size=8
|
||||
threads/godot_pool_size=4
|
||||
dotnet/include_scripts_content=false
|
||||
dotnet/include_debug_symbols=true
|
||||
dotnet/embed_build_outputs=false
|
||||
@@ -208,6 +212,7 @@ application/min_macos_version_x86_64="10.12"
|
||||
application/min_macos_version_arm64="11.00"
|
||||
application/export_angle=0
|
||||
display/high_res=true
|
||||
shader_baker/enabled=false
|
||||
application/additional_plist_content=""
|
||||
xcode/platform_build="14C18"
|
||||
xcode/sdk_version="13.1"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=16 format=3 uid="uid://dmkw8cmalm5k"]
|
||||
[gd_scene load_steps=17 format=3 uid="uid://dmkw8cmalm5k"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bei4nhkf8lwdo" path="res://player_controller/PlayerController.tscn" id="1_2vsi6"]
|
||||
[ext_resource type="Texture2D" uid="uid://ca4kkq3w8cd4n" path="res://assets/sky/sky_15_2k.png" id="2_ruo5i"]
|
||||
@@ -12,6 +12,7 @@
|
||||
[ext_resource type="AudioStream" uid="uid://f8cvr5s041ej" path="res://assets/audio/ambiance/637083__nox_sound__ambiance_nature_night_cricket_calm_loop_stereo.wav" id="10_eca4n"]
|
||||
[ext_resource type="PackedScene" uid="uid://dip6cce5gtwi8" path="res://assets/greyboxing/guard_tower.tscn" id="11_wctvs"]
|
||||
[ext_resource type="PackedScene" uid="uid://c066hc7yu36wx" path="res://assets/water/water.tscn" id="12_i2xii"]
|
||||
[ext_resource type="PackedScene" uid="uid://gir68sk3762e" path="res://assets/lift/lift.tscn" id="13_eca4n"]
|
||||
|
||||
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_feb1n"]
|
||||
panorama = ExtResource("2_ruo5i")
|
||||
@@ -28,10 +29,11 @@ tonemap_mode = 4
|
||||
ssao_enabled = true
|
||||
ssil_enabled = true
|
||||
sdfgi_use_occlusion = true
|
||||
fog_light_color = Color(1, 1, 1, 1)
|
||||
fog_density = 0.001
|
||||
fog_sky_affect = 0.121
|
||||
volumetric_fog_enabled = true
|
||||
fog_enabled = true
|
||||
fog_light_color = Color(0.9955967, 0.83634025, 0.69151855, 1)
|
||||
fog_sun_scatter = 0.5
|
||||
fog_density = 0.002
|
||||
fog_sky_affect = 0.184
|
||||
volumetric_fog_density = 0.004
|
||||
volumetric_fog_emission = Color(1, 1, 1, 1)
|
||||
volumetric_fog_anisotropy = 0.6
|
||||
@@ -39,7 +41,7 @@ volumetric_fog_anisotropy = 0.6
|
||||
[node name="Main" type="Node3D"]
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_2vsi6")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.21207, 64.344444, -41.363285)
|
||||
transform = Transform3D(0.9481796, 0, -0.31773496, 0, 1, 0, 0.31773496, 0, 0.9481796, -4.1827703, -33.37261, 18.473116)
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_1bvp3")
|
||||
@@ -77,3 +79,8 @@ pause = ExtResource("10_0ari0")
|
||||
|
||||
[node name="BackgroundMusicPlayer" parent="." instance=ExtResource("9_i2xii")]
|
||||
stream = ExtResource("10_eca4n")
|
||||
|
||||
[node name="Lift" parent="." instance=ExtResource("13_eca4n")]
|
||||
transform = Transform3D(0.9961947, 0, -0.08715574, 0, 1, 0, 0.08715574, 0, 0.9961947, -4.393, 1.693, 0.583)
|
||||
end_location = Vector3(-4.393, 115, 0.583)
|
||||
lift_time = 10.0
|
||||
|
||||
31
menus/scenes/menus/main_menu/new_main_menu.tscn
Normal file
31
menus/scenes/menus/main_menu/new_main_menu.tscn
Normal file
@@ -0,0 +1,31 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://br8shfwk2lne0"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://brrt2uj47cmld" path="res://systems/ui/grab_focus.gd" id="1_c6nmr"]
|
||||
[ext_resource type="Script" uid="uid://ckywnolvqy6w1" path="res://systems/ui/new_main_menu.gd" id="1_vi8ha"]
|
||||
|
||||
[node name="NewMainMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_vi8ha")
|
||||
game_scene_path = "uid://dmkw8cmalm5k"
|
||||
|
||||
[node name="Menus" type="MarginContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="StartGameButton" type="Button" parent="Menus"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
text = "Start game"
|
||||
script = ExtResource("1_c6nmr")
|
||||
|
||||
[connection signal="pressed" from="Menus/StartGameButton" to="." method="on_new_game"]
|
||||
@@ -1,10 +1,15 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://ccqajqchiw4xu"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://ccqajqchiw4xu"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b5cd6sa8qq4vc" path="res://addons/maaacks_game_template/base/scenes/overlaid_menu/menus/pause_menu.tscn" id="1_0paax"]
|
||||
[ext_resource type="Script" uid="uid://bwvomv4eww4fg" path="res://menus/scenes/overlaid_menus/pause_menu.gd" id="2_ek1hy"]
|
||||
[ext_resource type="PackedScene" uid="uid://dim045la3mijk" path="res://menus/scenes/overlaid_menus/mini_options_overlaid_menu.tscn" id="3_e0t2r"]
|
||||
[ext_resource type="Resource" uid="uid://c2hpxkcujyc13" path="res://systems/inputs/menu_mode/menu_mode.tres" id="4_nfx08"]
|
||||
|
||||
[node name="PauseMenu" instance=ExtResource("1_0paax")]
|
||||
script = ExtResource("2_ek1hy")
|
||||
options_packed_scene = ExtResource("3_e0t2r")
|
||||
main_menu_scene = "res://menus/scenes/menus/main_menu/main_menu_with_animations.tscn"
|
||||
menu_context = ExtResource("4_nfx08")
|
||||
|
||||
[connection signal="tree_entered" from="." to="." method="on_enter_tree"]
|
||||
[connection signal="tree_exited" from="." to="." method="on_exit_tree"]
|
||||
|
||||
@@ -212,6 +212,7 @@ one_shot = true
|
||||
ignore_time_scale = true
|
||||
|
||||
[node name="StateChartDebugger" parent="." instance=ExtResource("24_q5h8a")]
|
||||
visible = false
|
||||
offset_left = 1524.0
|
||||
offset_top = 1.0
|
||||
offset_right = -8.0
|
||||
@@ -251,15 +252,24 @@ expand_mode = 2
|
||||
|
||||
[node name="DashCooldownIndicator" type="ColorRect" parent="UI"]
|
||||
unique_name_in_owner = true
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 910.0
|
||||
offset_top = 549.0
|
||||
offset_right = 1010.0
|
||||
offset_bottom = 559.0
|
||||
offset_right = -910.0
|
||||
offset_bottom = -521.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="UI"]
|
||||
custom_minimum_size = Vector2(1920, 1080)
|
||||
offset_right = 1919.0
|
||||
offset_bottom = 1080.0
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_right = -1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="CenterIcon" type="TextureRect" parent="UI/CenterContainer"]
|
||||
material = SubResource("CanvasItemMaterial_2q0ik")
|
||||
|
||||
@@ -532,7 +532,7 @@ public partial class PlayerController : CharacterBody3D
|
||||
|
||||
public Vector3 ComputeHVelocity(float delta, float accelerationFactor, float decelerationFactor, Vector3? direction = null)
|
||||
{
|
||||
var dir = direction ?? HeadSystem.Transform.Basis * _inputMove;
|
||||
var dir = direction ?? Transform.Basis * HeadSystem.Transform.Basis * _inputMove;
|
||||
|
||||
var acceleration = dir.Length() > 0 ? accelerationFactor : decelerationFactor;
|
||||
|
||||
@@ -875,7 +875,7 @@ public partial class PlayerController : CharacterBody3D
|
||||
|
||||
public Vector3 GetInputGlobalHDirection()
|
||||
{
|
||||
var direction = HeadSystem.Transform.Basis * _inputMove;
|
||||
var direction = Transform.Basis * HeadSystem.Transform.Basis * _inputMove;
|
||||
return new Vector3(direction.X, 0, direction.Z).Normalized();
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,32 @@ theme/custom="res://menus/resources/themes/expedition.tres"
|
||||
|
||||
[input]
|
||||
|
||||
ui_accept={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194309,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194310,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":32,"physical_keycode":0,"key_label":0,"unicode":32,"location":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":true,"script":null)
|
||||
]
|
||||
}
|
||||
ui_cancel={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194305,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":6,"pressure":0.0,"pressed":true,"script":null)
|
||||
]
|
||||
}
|
||||
ui_focus_next={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194306,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":10,"pressure":0.0,"pressed":true,"script":null)
|
||||
]
|
||||
}
|
||||
ui_focus_prev={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":true,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194306,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":9,"pressure":0.0,"pressed":true,"script":null)
|
||||
]
|
||||
}
|
||||
up={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"location":0,"echo":false,"script":null)
|
||||
@@ -128,7 +154,9 @@ copy_path="res://scenes"
|
||||
|
||||
[physics]
|
||||
|
||||
common/physics_jitter_fix=0.0
|
||||
3d/physics_engine="Jolt Physics"
|
||||
common/physics_interpolation=true
|
||||
|
||||
[rendering]
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace Movementtests.systems;
|
||||
public partial class HeadSystem : Node3D
|
||||
{
|
||||
private Camera3D _camera;
|
||||
private Marker3D _cameraAnchor;
|
||||
|
||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||
public float LookSensitivity { get; set; } = 1f;
|
||||
@@ -14,6 +15,7 @@ public partial class HeadSystem : Node3D
|
||||
{
|
||||
Input.SetMouseMode(Input.MouseModeEnum.Captured);
|
||||
_camera = GetNode<Camera3D>("CameraSmooth/Camera3D");
|
||||
_cameraAnchor = GetNode<Marker3D>("CameraAnchor");
|
||||
}
|
||||
|
||||
public void LookAround(Vector2 lookDir, float sensitivitMultiplier = 1f)
|
||||
@@ -23,11 +25,12 @@ public partial class HeadSystem : Node3D
|
||||
RotateY(angleForHorizontalRotation);
|
||||
|
||||
// Vertical movement of head
|
||||
Vector3 currentCameraRotation = _camera.Rotation;
|
||||
Vector3 currentCameraRotation = _cameraAnchor.Rotation;
|
||||
currentCameraRotation.X += Convert.ToSingle(lookDir.Y * LookSensitivity * sensitivitMultiplier);
|
||||
currentCameraRotation.X = Mathf.Clamp(currentCameraRotation.X, Mathf.DegToRad(-90f), Mathf.DegToRad(90f));
|
||||
|
||||
_camera.Rotation = currentCameraRotation;
|
||||
_cameraAnchor.Rotation = currentCameraRotation;
|
||||
|
||||
_camera.GlobalTransform = _cameraAnchor.GetGlobalTransformInterpolated();
|
||||
}
|
||||
|
||||
public Vector3 GetForwardHorizontalVector()
|
||||
|
||||
@@ -16,8 +16,8 @@ script = ExtResource("1_8abgy")
|
||||
[node name="CameraSmooth" type="Node3D" parent="."]
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="CameraSmooth"]
|
||||
transform = Transform3D(0.15, 0, 0, 0, 0.15, 0, 0, 0, 0.15, 0, 0, 0)
|
||||
current = true
|
||||
fov = 90.0
|
||||
|
||||
[node name="CLVignette(Layer_1)" type="CanvasLayer" parent="CameraSmooth/Camera3D"]
|
||||
|
||||
@@ -57,3 +57,5 @@ mouse_filter = 2
|
||||
[node name="RayCast3D" type="RayCast3D" parent="CameraSmooth/Camera3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, -0.64723)
|
||||
visible = false
|
||||
|
||||
[node name="CameraAnchor" type="Marker3D" parent="."]
|
||||
|
||||
7
systems/inputs/menu_mode/back.tres
Normal file
7
systems/inputs/menu_mode/back.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://ck43v3q5ype3f"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_4pmby"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_4pmby")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
7
systems/inputs/menu_mode/down.tres
Normal file
7
systems/inputs/menu_mode/down.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://dv6438xhua6id"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_56ywq"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_56ywq")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
7
systems/inputs/menu_mode/left.tres
Normal file
7
systems/inputs/menu_mode/left.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://by80bubgg0dpx"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_jx5gn"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_jx5gn")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
272
systems/inputs/menu_mode/menu_mode.tres
Normal file
272
systems/inputs/menu_mode/menu_mode.tres
Normal file
@@ -0,0 +1,272 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEMappingContext" load_steps=78 format=3 uid="uid://c2hpxkcujyc13"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpplm41b5bt6m" path="res://addons/guide/guide_action_mapping.gd" id="1_xno0b"]
|
||||
[ext_resource type="Resource" uid="uid://ck43v3q5ype3f" path="res://systems/inputs/menu_mode/back.tres" id="2_6sfub"]
|
||||
[ext_resource type="Script" uid="uid://dsa1dnifd6w32" path="res://addons/guide/guide_mapping_context.gd" id="2_w5wm7"]
|
||||
[ext_resource type="Script" uid="uid://mtx1unc2aqn7" path="res://addons/guide/guide_input_mapping.gd" id="3_scydb"]
|
||||
[ext_resource type="Script" uid="uid://rvttn472ix6v" path="res://addons/guide/inputs/guide_input_joy_button.gd" id="4_q6ncx"]
|
||||
[ext_resource type="Script" uid="uid://bl8rjl4oaldje" path="res://addons/guide/modifiers/guide_modifier.gd" id="5_vnf02"]
|
||||
[ext_resource type="Script" uid="uid://x74mnwgr08a7" path="res://addons/guide/triggers/guide_trigger.gd" id="6_c647i"]
|
||||
[ext_resource type="Script" uid="uid://b52rqq28tuqpg" path="res://addons/guide/triggers/guide_trigger_pressed.gd" id="7_m88dc"]
|
||||
[ext_resource type="Script" uid="uid://cw71o87tvdx3q" path="res://addons/guide/inputs/guide_input_key.gd" id="8_yfqfy"]
|
||||
[ext_resource type="Resource" uid="uid://ds8quw8a7uh2u" path="res://systems/inputs/menu_mode/select.tres" id="9_dsdj3"]
|
||||
[ext_resource type="Resource" uid="uid://8t1evbmg3liq" path="res://systems/inputs/menu_mode/up.tres" id="10_q44ew"]
|
||||
[ext_resource type="Resource" uid="uid://dv6438xhua6id" path="res://systems/inputs/menu_mode/down.tres" id="11_as826"]
|
||||
[ext_resource type="Resource" uid="uid://cihlxajjlh80a" path="res://systems/inputs/menu_mode/right.tres" id="12_erftc"]
|
||||
[ext_resource type="Resource" uid="uid://by80bubgg0dpx" path="res://systems/inputs/menu_mode/left.tres" id="13_sy651"]
|
||||
[ext_resource type="Resource" uid="uid://bmef0jo6o41ic" path="res://systems/inputs/menu_mode/next.tres" id="14_2sr1w"]
|
||||
[ext_resource type="Resource" uid="uid://c3n6ww58cmbbk" path="res://systems/inputs/menu_mode/previous.tres" id="15_2j2sf"]
|
||||
[ext_resource type="Resource" uid="uid://dgluj0ql5vth7" path="res://systems/inputs/base_mode/pause.tres" id="16_scydb"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_tp5dr"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 1
|
||||
|
||||
[sub_resource type="Resource" id="Resource_lvbl0"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2ux44"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_tp5dr")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_lvbl0")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_h2f8g"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194305
|
||||
|
||||
[sub_resource type="Resource" id="Resource_17mt7"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_23hmj"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_h2f8g")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_17mt7")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_len71"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("2_6sfub")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_2ux44"), SubResource("Resource_23hmj")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_wkavf"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_3uc4f"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fidv6"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_wkavf")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_3uc4f")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_y2xy1"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194309
|
||||
|
||||
[sub_resource type="Resource" id="Resource_orcaw"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_yxowx"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_y2xy1")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_orcaw")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ruq4f"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("9_dsdj3")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_fidv6"), SubResource("Resource_yxowx")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_3fxnk"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 11
|
||||
|
||||
[sub_resource type="Resource" id="Resource_5uay1"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0v0i1"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_3fxnk")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_5uay1")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_72t1r"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194320
|
||||
|
||||
[sub_resource type="Resource" id="Resource_4qbib"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_cccin"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_72t1r")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_4qbib")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_5hp22"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("10_q44ew")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_0v0i1"), SubResource("Resource_cccin")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1klk7"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 12
|
||||
|
||||
[sub_resource type="Resource" id="Resource_h4vny"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jmmtp"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_1klk7")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_h4vny")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_cfqv5"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194322
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0i4uw"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fka1a"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_cfqv5")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_0i4uw")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7i3b3"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("11_as826")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_jmmtp"), SubResource("Resource_fka1a")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_s10di"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 14
|
||||
|
||||
[sub_resource type="Resource" id="Resource_isne2"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fru3p"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_s10di")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_isne2")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hbvow"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194321
|
||||
|
||||
[sub_resource type="Resource" id="Resource_mq0hj"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_sb8uf"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_hbvow")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_mq0hj")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_6ptcp"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("12_erftc")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_fru3p"), SubResource("Resource_sb8uf")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ortmh"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 13
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1berd"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0wrqh"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_ortmh")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_1berd")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_saokt"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194319
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2b3t5"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_a5khc"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_saokt")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_2b3t5")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_xked7"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("13_sy651")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_0wrqh"), SubResource("Resource_a5khc")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1y2qg"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 10
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vwpv3"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7mcrw"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_1y2qg")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_vwpv3")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qjv8h"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("14_2sr1w")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_7mcrw")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_s2haq"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 9
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vankc"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_3owmx"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_s2haq")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_vankc")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_p0ahg"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("15_2j2sf")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_3owmx")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_q6ncx"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 4
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vnf02"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_c647i"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_q6ncx")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_vnf02")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_m88dc"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 6
|
||||
|
||||
[sub_resource type="Resource" id="Resource_yfqfy"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_dsdj3"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_m88dc")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_yfqfy")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_q44ew"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194305
|
||||
|
||||
[sub_resource type="Resource" id="Resource_as826"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_erftc"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_q44ew")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_as826")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_sy651"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("16_scydb")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_c647i"), SubResource("Resource_dsdj3"), SubResource("Resource_erftc")])
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_w5wm7")
|
||||
mappings = Array[ExtResource("1_xno0b")]([SubResource("Resource_len71"), SubResource("Resource_ruq4f"), SubResource("Resource_5hp22"), SubResource("Resource_7i3b3"), SubResource("Resource_6ptcp"), SubResource("Resource_xked7"), SubResource("Resource_qjv8h"), SubResource("Resource_p0ahg"), SubResource("Resource_sy651")])
|
||||
metadata/_custom_type_script = "uid://dsa1dnifd6w32"
|
||||
7
systems/inputs/menu_mode/next.tres
Normal file
7
systems/inputs/menu_mode/next.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://bmef0jo6o41ic"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_u34uv"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_u34uv")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
7
systems/inputs/menu_mode/previous.tres
Normal file
7
systems/inputs/menu_mode/previous.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://c3n6ww58cmbbk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_hipw6"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_hipw6")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
7
systems/inputs/menu_mode/right.tres
Normal file
7
systems/inputs/menu_mode/right.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://cihlxajjlh80a"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_x80dv"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_x80dv")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
7
systems/inputs/menu_mode/select.tres
Normal file
7
systems/inputs/menu_mode/select.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://ds8quw8a7uh2u"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_gdlub"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_gdlub")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
7
systems/inputs/menu_mode/up.tres
Normal file
7
systems/inputs/menu_mode/up.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://8t1evbmg3liq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_t6kxf"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_t6kxf")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
4
systems/ui/grab_focus.gd
Normal file
4
systems/ui/grab_focus.gd
Normal file
@@ -0,0 +1,4 @@
|
||||
extends Control
|
||||
|
||||
func _ready() -> void:
|
||||
grab_focus()
|
||||
1
systems/ui/grab_focus.gd.uid
Normal file
1
systems/ui/grab_focus.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://brrt2uj47cmld
|
||||
6
systems/ui/new_main_menu.gd
Normal file
6
systems/ui/new_main_menu.gd
Normal file
@@ -0,0 +1,6 @@
|
||||
extends Control
|
||||
|
||||
@export_file("*.tscn") var game_scene_path : String
|
||||
|
||||
func on_new_game() -> void:
|
||||
SceneLoader.load_scene(game_scene_path)
|
||||
1
systems/ui/new_main_menu.gd.uid
Normal file
1
systems/ui/new_main_menu.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://ckywnolvqy6w1
|
||||
Reference in New Issue
Block a user