Compare commits
45 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e75193731 | |||
| 609078c584 | |||
| 893126ef78 | |||
| 6737668391 | |||
| ca77579168 | |||
| c6559d593a | |||
| e32dac9e6e | |||
| 30b4d1a2eb | |||
| 2fa4ce68e7 | |||
| 80e533d98e | |||
| 0e3e258fd3 | |||
| c7991198ea | |||
| 1a4b2f4c19 | |||
| 52a9c3f120 | |||
| 2301884418 | |||
| 04054cfeae | |||
| 66be7838bb | |||
| 1eb65d1520 | |||
| f2a39316ba | |||
| fffd8c947b | |||
| a1d57d6a1a | |||
| 941205af2b | |||
| 6c2ad89687 | |||
| 59494f9e98 | |||
| 510246c341 | |||
| b184bcdea5 | |||
| cf52af4237 | |||
| e0fc301414 | |||
| b792e8721c | |||
| 2e2df4ff50 | |||
| a84e0ecfb3 | |||
| f828c1d786 | |||
| a98785abec | |||
| 7c4e541446 | |||
| 7d31d17034 | |||
| 2ff8cc74cc | |||
| fabafbb35b | |||
| 0b0163a0ac | |||
| 5b3d6c9f19 | |||
| ac14352e7f | |||
| 27130257c9 | |||
| e70a2e7537 | |||
| 6051588f24 | |||
| c895dfe9a0 | |||
| 1ea3945cf6 |
@@ -54,27 +54,12 @@ jobs:
|
|||||||
- name: Import resources and build solution
|
- name: Import resources and build solution
|
||||||
run: |
|
run: |
|
||||||
godot --headless --editor --build-solutions --quit --import --path $PWD
|
godot --headless --editor --build-solutions --quit --import --path $PWD
|
||||||
|
|
||||||
- name: Build Windows
|
- name: Build Windows
|
||||||
run: |
|
run: |
|
||||||
mkdir -v -p build/windows
|
mkdir -v -p build/windows
|
||||||
godot --headless --verbose --build-solutions --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
|
zip -r Windows.zip build/windows
|
||||||
- name: Build Windows ARM
|
|
||||||
run: |
|
|
||||||
mkdir -v -p build/windowsArm
|
|
||||||
godot --headless --verbose --build-solutions --export-release "Windows ARM" build/windowsArm/${{ env.GAME_NAME }}.exe
|
|
||||||
zip -r WindowsArm.zip build/windowsArm
|
|
||||||
# - 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
|
- name: Upload to Itch
|
||||||
uses: KikimoraGames/itch-publish@v0.0.3
|
uses: KikimoraGames/itch-publish@v0.0.3
|
||||||
with:
|
with:
|
||||||
@@ -84,6 +69,12 @@ jobs:
|
|||||||
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||||
gameData: Windows.zip
|
gameData: Windows.zip
|
||||||
buildChannel: windows
|
buildChannel: windows
|
||||||
|
|
||||||
|
- name: Build Windows ARM
|
||||||
|
run: |
|
||||||
|
mkdir -v -p build/windowsArm
|
||||||
|
godot --headless --verbose --build-solutions --export-release "Windows ARM" build/windowsArm/${{ env.GAME_NAME }}.exe
|
||||||
|
zip -r WindowsArm.zip build/windowsArm
|
||||||
- name: Upload to Itch
|
- name: Upload to Itch
|
||||||
uses: KikimoraGames/itch-publish@v0.0.3
|
uses: KikimoraGames/itch-publish@v0.0.3
|
||||||
with:
|
with:
|
||||||
@@ -93,21 +84,33 @@ jobs:
|
|||||||
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||||
gameData: WindowsArm.zip
|
gameData: WindowsArm.zip
|
||||||
buildChannel: windows-arm
|
buildChannel: windows-arm
|
||||||
# - name: Upload to Itch
|
|
||||||
# uses: KikimoraGames/itch-publish@v0.0.3
|
- name: Linux Build
|
||||||
# with:
|
run: |
|
||||||
# butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
mkdir -v -p build/linux
|
||||||
# itchUsername: ${{ env.ITCHIO_USERNAME }}
|
godot --headless --verbose --export-release "Linux/X11" build/linux/${{ env.GAME_NAME }}.x86_64
|
||||||
# itchGameId: ${{ env.ITCHIO_GAMEID }}
|
zip -r Linux.zip build/linux
|
||||||
# buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
- name: Upload to Itch
|
||||||
# gameData: Linux.zip
|
uses: KikimoraGames/itch-publish@v0.0.3
|
||||||
# buildChannel: linux
|
with:
|
||||||
# - name: Upload to Itch
|
butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
||||||
# uses: KikimoraGames/itch-publish@v0.0.3
|
itchUsername: ${{ env.ITCHIO_USERNAME }}
|
||||||
# with:
|
itchGameId: ${{ env.ITCHIO_GAMEID }}
|
||||||
# butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||||
# itchUsername: ${{ env.ITCHIO_USERNAME }}
|
gameData: Linux.zip
|
||||||
# itchGameId: ${{ env.ITCHIO_GAMEID }}
|
buildChannel: linux
|
||||||
# buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
|
||||||
# gameData: Mac.zip
|
- name: Mac Build
|
||||||
# buildChannel: mac
|
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
|
||||||
|
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
.gitignore
vendored
1
.gitignore
vendored
@@ -10,6 +10,7 @@
|
|||||||
.import/
|
.import/
|
||||||
|
|
||||||
/builds
|
/builds
|
||||||
|
/communication
|
||||||
|
|
||||||
# Imported translations (automatically generated from CSV files)
|
# Imported translations (automatically generated from CSV files)
|
||||||
*.translation
|
*.translation
|
||||||
@@ -6,11 +6,15 @@ extends Control
|
|||||||
@export var options_packed_scene : PackedScene
|
@export var options_packed_scene : PackedScene
|
||||||
@export var credits_packed_scene : PackedScene
|
@export var credits_packed_scene : PackedScene
|
||||||
|
|
||||||
|
@export var menu_context : GUIDEMappingContext
|
||||||
|
@export var back_action : GUIDEAction
|
||||||
|
|
||||||
var options_scene
|
var options_scene
|
||||||
var credits_scene
|
var credits_scene
|
||||||
var sub_menu
|
var sub_menu
|
||||||
|
|
||||||
func load_game_scene() -> void:
|
func load_game_scene() -> void:
|
||||||
|
GUIDE.disable_mapping_context(menu_context)
|
||||||
SceneLoader.load_scene(game_scene_path)
|
SceneLoader.load_scene(game_scene_path)
|
||||||
|
|
||||||
func new_game() -> void:
|
func new_game() -> void:
|
||||||
@@ -73,7 +77,12 @@ func _ready() -> void:
|
|||||||
_add_or_hide_options()
|
_add_or_hide_options()
|
||||||
_add_or_hide_credits()
|
_add_or_hide_credits()
|
||||||
_hide_new_game_if_unset()
|
_hide_new_game_if_unset()
|
||||||
|
_setup_inputs()
|
||||||
|
|
||||||
|
func _setup_inputs() -> void:
|
||||||
|
GUIDE.enable_mapping_context(menu_context)
|
||||||
|
back_action.triggered.connect(_on_back_button_pressed)
|
||||||
|
|
||||||
func _on_new_game_button_pressed() -> void:
|
func _on_new_game_button_pressed() -> void:
|
||||||
new_game()
|
new_game()
|
||||||
|
|
||||||
|
|||||||
@@ -9,16 +9,19 @@ extends OverlaidMenu
|
|||||||
var popup_open : Node
|
var popup_open : Node
|
||||||
var previous_mapping_contexts : Array
|
var previous_mapping_contexts : Array
|
||||||
|
|
||||||
func on_enter_tree() -> void:
|
var is_listening_to_inputs = true
|
||||||
pass
|
|
||||||
#previous_mapping_contexts = GUIDE.get_enabled_mapping_contexts()
|
func _enter_tree() -> void:
|
||||||
#GUIDE.enable_mapping_context(menu_context)
|
super._enter_tree()
|
||||||
|
previous_mapping_contexts = GUIDE.get_enabled_mapping_contexts()
|
||||||
|
for previous_context in previous_mapping_contexts:
|
||||||
|
GUIDE.disable_mapping_context(previous_context)
|
||||||
|
GUIDE.enable_mapping_context(menu_context)
|
||||||
|
|
||||||
func on_exit_tree() -> void:
|
func _exit_tree() -> void:
|
||||||
pass
|
GUIDE.disable_mapping_context(menu_context)
|
||||||
#GUIDE.disable_mapping_context(menu_context)
|
for previous_context in previous_mapping_contexts:
|
||||||
#for previous_context in previous_mapping_contexts:
|
GUIDE.enable_mapping_context(previous_context)
|
||||||
#GUIDE.enable_mapping_context(previous_context)
|
|
||||||
|
|
||||||
func close_popup() -> void:
|
func close_popup() -> void:
|
||||||
if popup_open != null:
|
if popup_open != null:
|
||||||
@@ -43,10 +46,15 @@ func open_options_menu() -> void:
|
|||||||
var options_scene := options_packed_scene.instantiate()
|
var options_scene := options_packed_scene.instantiate()
|
||||||
add_child(options_scene)
|
add_child(options_scene)
|
||||||
_disable_focus.call_deferred()
|
_disable_focus.call_deferred()
|
||||||
|
is_listening_to_inputs = false
|
||||||
await options_scene.tree_exiting
|
await options_scene.tree_exiting
|
||||||
|
is_listening_to_inputs = true
|
||||||
_enable_focus.call_deferred()
|
_enable_focus.call_deferred()
|
||||||
|
|
||||||
func _handle_cancel_input() -> void:
|
func _handle_cancel_input() -> void:
|
||||||
|
if not is_listening_to_inputs:
|
||||||
|
return
|
||||||
|
|
||||||
if popup_open != null:
|
if popup_open != null:
|
||||||
close_popup()
|
close_popup()
|
||||||
else:
|
else:
|
||||||
@@ -68,6 +76,8 @@ func _ready() -> void:
|
|||||||
_hide_exit_for_web()
|
_hide_exit_for_web()
|
||||||
_hide_options_if_unset()
|
_hide_options_if_unset()
|
||||||
_hide_main_menu_if_unset()
|
_hide_main_menu_if_unset()
|
||||||
|
|
||||||
|
back_action.triggered.connect(_handle_cancel_input)
|
||||||
|
|
||||||
func _on_restart_button_pressed() -> void:
|
func _on_restart_button_pressed() -> void:
|
||||||
%ConfirmRestart.popup_centered()
|
%ConfirmRestart.popup_centered()
|
||||||
@@ -93,3 +103,5 @@ func _on_confirm_main_menu_confirmed() -> void:
|
|||||||
|
|
||||||
func _on_confirm_exit_confirmed() -> void:
|
func _on_confirm_exit_confirmed() -> void:
|
||||||
get_tree().quit()
|
get_tree().quit()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ extends Control
|
|||||||
process_mode = PROCESS_MODE_INHERIT
|
process_mode = PROCESS_MODE_INHERIT
|
||||||
@export var makes_mouse_visible : bool = true
|
@export var makes_mouse_visible : bool = true
|
||||||
|
|
||||||
|
@export var back_action : GUIDEAction
|
||||||
|
|
||||||
|
signal menu_closing
|
||||||
|
|
||||||
var _initial_pause_state : bool = false
|
var _initial_pause_state : bool = false
|
||||||
var _initial_focus_mode : FocusMode = FOCUS_ALL
|
var _initial_focus_mode : FocusMode = FOCUS_ALL
|
||||||
var _initial_mouse_mode : Input.MouseMode
|
var _initial_mouse_mode : Input.MouseMode
|
||||||
@@ -18,6 +22,7 @@ var _initial_focus_control
|
|||||||
var _scene_tree : SceneTree
|
var _scene_tree : SceneTree
|
||||||
|
|
||||||
func close() -> void:
|
func close() -> void:
|
||||||
|
menu_closing.emit()
|
||||||
_scene_tree.paused = _initial_pause_state
|
_scene_tree.paused = _initial_pause_state
|
||||||
Input.set_mouse_mode(_initial_mouse_mode)
|
Input.set_mouse_mode(_initial_mouse_mode)
|
||||||
if is_instance_valid(_initial_focus_control) and _initial_focus_control.is_inside_tree():
|
if is_instance_valid(_initial_focus_control) and _initial_focus_control.is_inside_tree():
|
||||||
@@ -29,13 +34,14 @@ func _handle_cancel_input() -> void:
|
|||||||
close()
|
close()
|
||||||
|
|
||||||
func _unhandled_input(event : InputEvent) -> void:
|
func _unhandled_input(event : InputEvent) -> void:
|
||||||
|
return
|
||||||
if event.is_action_pressed("ui_cancel"):
|
if event.is_action_pressed("ui_cancel"):
|
||||||
_handle_cancel_input()
|
_handle_cancel_input()
|
||||||
get_viewport().set_input_as_handled()
|
get_viewport().set_input_as_handled()
|
||||||
|
|
||||||
func _on_close_button_pressed() -> void:
|
func _on_close_button_pressed() -> void:
|
||||||
close()
|
close()
|
||||||
|
|
||||||
func _enter_tree() -> void:
|
func _enter_tree() -> void:
|
||||||
_scene_tree = get_tree()
|
_scene_tree = get_tree()
|
||||||
_initial_pause_state = _scene_tree.paused
|
_initial_pause_state = _scene_tree.paused
|
||||||
|
|||||||
@@ -12,3 +12,11 @@ extends OverlaidMenu
|
|||||||
if menu_scene:
|
if menu_scene:
|
||||||
var _instance = menu_scene.instantiate()
|
var _instance = menu_scene.instantiate()
|
||||||
%MenuContainer.add_child(_instance)
|
%MenuContainer.add_child(_instance)
|
||||||
|
|
||||||
|
func blocking_close() -> void:
|
||||||
|
get_viewport().set_input_as_handled()
|
||||||
|
super.close()
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
back_action.triggered.connect(blocking_close)
|
||||||
|
|
||||||
|
|||||||
@@ -4,26 +4,30 @@ extends Node
|
|||||||
## Node for opening a pause menu when detecting a 'ui_cancel' event.
|
## Node for opening a pause menu when detecting a 'ui_cancel' event.
|
||||||
@export var pause_menu_packed : PackedScene
|
@export var pause_menu_packed : PackedScene
|
||||||
@export var focused_viewport : Viewport
|
@export var focused_viewport : Viewport
|
||||||
|
@export var player : CharacterBody3D
|
||||||
|
|
||||||
@export_group("Inputs")
|
@export_group("Inputs")
|
||||||
@export var base_mode:GUIDEMappingContext
|
|
||||||
@export var pause:GUIDEAction
|
@export var pause:GUIDEAction
|
||||||
|
|
||||||
|
var menu_already_open = false
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
# GUIDE.enable_mapping_context(base_mode)
|
|
||||||
|
|
||||||
pause.triggered.connect(on_input_pause)
|
pause.triggered.connect(on_input_pause)
|
||||||
|
|
||||||
func on_input_pause():
|
func on_input_pause():
|
||||||
|
if menu_already_open:
|
||||||
|
return
|
||||||
|
|
||||||
|
menu_already_open = true
|
||||||
if not focused_viewport:
|
if not focused_viewport:
|
||||||
focused_viewport = get_viewport()
|
focused_viewport = get_viewport()
|
||||||
var _initial_focus_control = focused_viewport.gui_get_focus_owner()
|
var _initial_focus_control = focused_viewport.gui_get_focus_owner()
|
||||||
var current_menu = pause_menu_packed.instantiate()
|
var current_menu = pause_menu_packed.instantiate()
|
||||||
|
|
||||||
|
current_menu.menu_closing.connect(player.LoadSettings)
|
||||||
|
|
||||||
get_tree().current_scene.call_deferred("add_child", current_menu)
|
get_tree().current_scene.call_deferred("add_child", current_menu)
|
||||||
await current_menu.tree_exited
|
await current_menu.tree_exited
|
||||||
|
menu_already_open = false
|
||||||
if is_inside_tree() and _initial_focus_control:
|
if is_inside_tree() and _initial_focus_control:
|
||||||
_initial_focus_control.grab_focus()
|
_initial_focus_control.grab_focus()
|
||||||
|
|
||||||
func _unhandled_input(event : InputEvent) -> void:
|
|
||||||
if event.is_action_pressed("ui_cancel"):
|
|
||||||
pass
|
|
||||||
|
|||||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -7,18 +7,32 @@ var lift_already_used : bool = false
|
|||||||
|
|
||||||
@onready var button: MeshInstance3D = $Cylinder_001
|
@onready var button: MeshInstance3D = $Cylinder_001
|
||||||
|
|
||||||
|
var player : CharacterBody3D
|
||||||
|
|
||||||
|
func finished_climbing() -> void:
|
||||||
|
player.SetAllowedInputsAll()
|
||||||
|
|
||||||
func start_climbing() -> void:
|
func start_climbing() -> void:
|
||||||
var elevator_tween = get_tree().create_tween()
|
var player_start_location = player.global_position
|
||||||
elevator_tween.set_ease(Tween.EASE_IN_OUT)
|
var height_difference = end_location - global_position
|
||||||
elevator_tween.set_trans(Tween.TRANS_CUBIC)
|
|
||||||
elevator_tween.tween_property(self, "global_position", end_location, lift_time)
|
var elevator_tween = get_tree().create_tween()
|
||||||
|
elevator_tween.set_parallel(true)
|
||||||
|
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)
|
||||||
|
elevator_tween.tween_property(player, "global_position", player_start_location + height_difference, lift_time)
|
||||||
|
elevator_tween.tween_callback(finished_climbing)
|
||||||
|
|
||||||
|
|
||||||
func _on_area_3d_body_entered(body: Node3D) -> void:
|
func _on_area_3d_body_entered(body: Node3D) -> void:
|
||||||
if lift_already_used:
|
if lift_already_used:
|
||||||
return
|
return
|
||||||
|
|
||||||
if is_instance_of(body, CharacterBody3D):
|
if is_instance_of(body, CharacterBody3D):
|
||||||
|
player = body
|
||||||
|
player.SetAllowedInputsMoveCamera()
|
||||||
|
|
||||||
lift_already_used = true
|
lift_already_used = true
|
||||||
|
|
||||||
var button_tween = get_tree().create_tween()
|
var button_tween = get_tree().create_tween()
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ script = ExtResource("2_5i7wx")
|
|||||||
material_override = ExtResource("3_u2uhe")
|
material_override = ExtResource("3_u2uhe")
|
||||||
|
|
||||||
[node name="StaticBody3D" type="StaticBody3D" parent="Cube_279" index="0"]
|
[node name="StaticBody3D" type="StaticBody3D" parent="Cube_279" index="0"]
|
||||||
|
collision_layer = 256
|
||||||
|
collision_mask = 65553
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Cube_279/StaticBody3D" index="0"]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Cube_279/StaticBody3D" index="0"]
|
||||||
shape = SubResource("ConcavePolygonShape3D_5i7wx")
|
shape = SubResource("ConcavePolygonShape3D_5i7wx")
|
||||||
@@ -28,12 +30,15 @@ shape = SubResource("ConcavePolygonShape3D_5i7wx")
|
|||||||
material_override = ExtResource("4_jmnc2")
|
material_override = ExtResource("4_jmnc2")
|
||||||
|
|
||||||
[node name="StaticBody3D" type="StaticBody3D" parent="Cylinder_001" index="0"]
|
[node name="StaticBody3D" type="StaticBody3D" parent="Cylinder_001" index="0"]
|
||||||
|
collision_layer = 256
|
||||||
|
collision_mask = 65553
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Cylinder_001/StaticBody3D" index="0"]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Cylinder_001/StaticBody3D" index="0"]
|
||||||
shape = SubResource("ConcavePolygonShape3D_wai75")
|
shape = SubResource("ConcavePolygonShape3D_wai75")
|
||||||
|
|
||||||
[node name="Area3D" type="Area3D" parent="." index="2"]
|
[node name="Area3D" type="Area3D" parent="." index="2"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -36.343, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -36.343, 0)
|
||||||
|
collision_layer = 0
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D" index="0"]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D" index="0"]
|
||||||
shape = SubResource("CylinderShape3D_wai75")
|
shape = SubResource("CylinderShape3D_wai75")
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ shader_parameter/floorRoughnessMap = ExtResource("4_rir86")
|
|||||||
shader_parameter/floorNormalMap = ExtResource("3_f1b6h")
|
shader_parameter/floorNormalMap = ExtResource("3_f1b6h")
|
||||||
shader_parameter/floorHeightMap = ExtResource("2_0e3id")
|
shader_parameter/floorHeightMap = ExtResource("2_0e3id")
|
||||||
shader_parameter/floorUvScale = 0.5
|
shader_parameter/floorUvScale = 0.5
|
||||||
shader_parameter/enablePom = true
|
shader_parameter/enablePom = false
|
||||||
shader_parameter/heightMinLayers = 8
|
shader_parameter/heightMinLayers = 8
|
||||||
shader_parameter/heightMaxLayers = 64
|
shader_parameter/heightMaxLayers = 64
|
||||||
shader_parameter/heightScale = 0.08
|
shader_parameter/heightScale = 0.08
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ uniform float heightScale = 1.0;
|
|||||||
|
|
||||||
varying vec3 worldPos;
|
varying vec3 worldPos;
|
||||||
varying vec3 worldNormal;
|
varying vec3 worldNormal;
|
||||||
|
varying vec3 diffuse;
|
||||||
|
|
||||||
|
|
||||||
void vertex() {
|
void vertex() {
|
||||||
@@ -177,12 +178,14 @@ void fragment() {
|
|||||||
// sample and output
|
// sample and output
|
||||||
SPECULAR = specular;
|
SPECULAR = specular;
|
||||||
ALBEDO = triplanarSample(texCoordX, texCoordY, texCoordZ, blend, yDot).rgb;
|
ALBEDO = triplanarSample(texCoordX, texCoordY, texCoordZ, blend, yDot).rgb;
|
||||||
|
diffuse = ALBEDO;
|
||||||
ROUGHNESS = triplanarRoughness(texCoordX, texCoordY, texCoordZ, blend, yDot).r;
|
ROUGHNESS = triplanarRoughness(texCoordX, texCoordY, texCoordZ, blend, yDot).r;
|
||||||
NORMAL = mix(worldNormal, triplanarNormal(yDot, texCoordX, texCoordY, texCoordZ, blend), normalMapStrength);
|
NORMAL = mix(worldNormal, triplanarNormal(yDot, texCoordX, texCoordY, texCoordZ, blend), normalMapStrength);
|
||||||
NORMAL = normalize((VIEW_MATRIX * vec4(NORMAL, 0.0)).xyz);
|
NORMAL = normalize((VIEW_MATRIX * vec4(NORMAL, 0.0)).xyz);
|
||||||
}
|
}
|
||||||
|
|
||||||
//void light() {
|
void light() {
|
||||||
// // Called for every pixel for every light affecting the material.
|
float lambert = clamp(dot(NORMAL, LIGHT), 0.0, 1.0);
|
||||||
// // Uncomment to replace the default light processing function with this one.
|
float halfLambert = pow(lambert*0.5 + 0.5, 5);
|
||||||
//}
|
DIFFUSE_LIGHT += halfLambert * ATTENUATION * LIGHT_COLOR / PI;
|
||||||
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ shader_parameter/floorRoughnessMap = ExtResource("4_4vhk1")
|
|||||||
shader_parameter/floorNormalMap = ExtResource("3_ytvoj")
|
shader_parameter/floorNormalMap = ExtResource("3_ytvoj")
|
||||||
shader_parameter/floorHeightMap = ExtResource("2_4vhk1")
|
shader_parameter/floorHeightMap = ExtResource("2_4vhk1")
|
||||||
shader_parameter/floorUvScale = 0.5
|
shader_parameter/floorUvScale = 0.5
|
||||||
shader_parameter/enablePom = true
|
shader_parameter/enablePom = false
|
||||||
shader_parameter/heightMinLayers = 8
|
shader_parameter/heightMinLayers = 8
|
||||||
shader_parameter/heightMaxLayers = 64
|
shader_parameter/heightMaxLayers = 64
|
||||||
shader_parameter/heightScale = 0.2
|
shader_parameter/heightScale = 0.2
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ shader_parameter/floorRoughnessMap = ExtResource("4_ob11h")
|
|||||||
shader_parameter/floorNormalMap = ExtResource("3_ff2cr")
|
shader_parameter/floorNormalMap = ExtResource("3_ff2cr")
|
||||||
shader_parameter/floorHeightMap = ExtResource("2_roy1o")
|
shader_parameter/floorHeightMap = ExtResource("2_roy1o")
|
||||||
shader_parameter/floorUvScale = 0.5
|
shader_parameter/floorUvScale = 0.5
|
||||||
shader_parameter/enablePom = true
|
shader_parameter/enablePom = false
|
||||||
shader_parameter/heightMinLayers = 8
|
shader_parameter/heightMinLayers = 8
|
||||||
shader_parameter/heightMaxLayers = 64
|
shader_parameter/heightMaxLayers = 64
|
||||||
shader_parameter/heightScale = 1.0
|
shader_parameter/heightScale = 1.0
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
105
maps/GYMs/enemies.tscn
Normal file
105
maps/GYMs/enemies.tscn
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
[gd_scene load_steps=7 format=3 uid="uid://q7uc1h2jpbd2"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bei4nhkf8lwdo" path="res://player_controller/PlayerController.tscn" id="1_62kkh"]
|
||||||
|
[ext_resource type="Material" uid="uid://31aulub2nqov" path="res://assets/greybox/m_greybox.tres" id="2_3uydm"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dxt0e2ugmttqq" path="res://scenes/enemies/first_enemy.tscn" id="3_3uydm"]
|
||||||
|
|
||||||
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_0xm2m"]
|
||||||
|
sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
|
||||||
|
ground_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
|
||||||
|
|
||||||
|
[sub_resource type="Sky" id="Sky_h2yge"]
|
||||||
|
sky_material = SubResource("ProceduralSkyMaterial_0xm2m")
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_1bvp3"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = SubResource("Sky_h2yge")
|
||||||
|
ambient_light_source = 2
|
||||||
|
ambient_light_color = Color(0.576076, 0.459788, 0.652401, 1)
|
||||||
|
reflected_light_source = 2
|
||||||
|
tonemap_mode = 4
|
||||||
|
tonemap_exposure = 1.32
|
||||||
|
ssao_enabled = true
|
||||||
|
ssao_radius = 3.61
|
||||||
|
ssil_enabled = true
|
||||||
|
ssil_radius = 8.4
|
||||||
|
sdfgi_use_occlusion = true
|
||||||
|
glow_enabled = true
|
||||||
|
|
||||||
|
[node name="Main" type="Node3D"]
|
||||||
|
|
||||||
|
[node name="Player" parent="." instance=ExtResource("1_62kkh")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 7.5)
|
||||||
|
TutorialDone = true
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||||
|
environment = SubResource("Environment_1bvp3")
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||||
|
transform = Transform3D(-0.772218, 0.611111, 0.173844, 0.0446935, -0.220691, 0.974319, 0.633783, 0.760157, 0.143109, 0, 0, 0)
|
||||||
|
shadow_enabled = true
|
||||||
|
|
||||||
|
[node name="Greybox" type="CSGCombiner3D" parent="."]
|
||||||
|
use_collision = true
|
||||||
|
collision_layer = 256
|
||||||
|
collision_mask = 65553
|
||||||
|
|
||||||
|
[node name="CSGBox3D" type="CSGBox3D" parent="Greybox"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.096, -0.5, -46.329)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(100, 1, 190.741)
|
||||||
|
material = ExtResource("2_3uydm")
|
||||||
|
|
||||||
|
[node name="CSGBox3D2" type="CSGBox3D" parent="Greybox"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -21.346, 4.5, 2.7915)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(6.5, 11, 5.5)
|
||||||
|
material = ExtResource("2_3uydm")
|
||||||
|
|
||||||
|
[node name="CSGBox3D6" type="CSGBox3D" parent="Greybox"]
|
||||||
|
transform = Transform3D(0.70710677, 0, -0.70710677, 0, 1, 0, 0.70710677, 0, 0.70710677, -15.846001, 2.75, 2.0415)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(6.5, 7.5, 11)
|
||||||
|
material = ExtResource("2_3uydm")
|
||||||
|
|
||||||
|
[node name="CSGBox3D7" type="CSGBox3D" parent="Greybox"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.346001, 1, 1.0415001)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(6.5, 4, 17)
|
||||||
|
material = ExtResource("2_3uydm")
|
||||||
|
|
||||||
|
[node name="CSGBox3D8" type="CSGBox3D" parent="Greybox"]
|
||||||
|
transform = Transform3D(0.81915206, 0, 0.57357645, 0, 1, 0, -0.57357645, 0, 0.81915206, -7.3460007, 0, -3.9585)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(6.5, 4, 17)
|
||||||
|
material = ExtResource("2_3uydm")
|
||||||
|
|
||||||
|
[node name="CSGBox3D3" type="CSGBox3D" parent="Greybox"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18.154, 4.5, 2.7915)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(6.5, 11, 5.5)
|
||||||
|
material = ExtResource("2_3uydm")
|
||||||
|
|
||||||
|
[node name="CSGBox3D4" type="CSGBox3D" parent="Greybox"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18.154, 4.5, -14.2085)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(6.5, 11, 5.5)
|
||||||
|
material = ExtResource("2_3uydm")
|
||||||
|
|
||||||
|
[node name="CSGBox3D5" type="CSGBox3D" parent="Greybox"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.8460007, 4.5, 17.7915)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(6.5, 11, 5.5)
|
||||||
|
material = ExtResource("2_3uydm")
|
||||||
|
|
||||||
|
[node name="Enemy" parent="." node_paths=PackedStringArray("Target") instance=ExtResource("3_3uydm")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -16.83681)
|
||||||
|
Target = NodePath("../Player")
|
||||||
|
|
||||||
|
[node name="Enemy2" parent="." node_paths=PackedStringArray("Target") instance=ExtResource("3_3uydm")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, -16.83681)
|
||||||
|
Target = NodePath("../Player")
|
||||||
|
|
||||||
|
[node name="Enemy3" parent="." node_paths=PackedStringArray("Target") instance=ExtResource("3_3uydm")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.5, 0, -16.83681)
|
||||||
|
Target = NodePath("../Player")
|
||||||
@@ -30,6 +30,7 @@ glow_enabled = true
|
|||||||
|
|
||||||
[node name="Player" parent="." instance=ExtResource("1_ig7tw")]
|
[node name="Player" parent="." instance=ExtResource("1_ig7tw")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.7981, 1.6118, 39.3006)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.7981, 1.6118, 39.3006)
|
||||||
|
TutorialDone = true
|
||||||
|
|
||||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||||
environment = SubResource("Environment_1bvp3")
|
environment = SubResource("Environment_1bvp3")
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ glow_enabled = true
|
|||||||
|
|
||||||
[node name="Player" parent="." instance=ExtResource("1_1s2y7")]
|
[node name="Player" parent="." instance=ExtResource("1_1s2y7")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1.5)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1.5)
|
||||||
|
TutorialDone = true
|
||||||
|
|
||||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||||
environment = SubResource("Environment_1bvp3")
|
environment = SubResource("Environment_1bvp3")
|
||||||
@@ -45,11 +46,11 @@ visible = false
|
|||||||
|
|
||||||
[node name="Greybox" type="CSGCombiner3D" parent="."]
|
[node name="Greybox" type="CSGCombiner3D" parent="."]
|
||||||
use_collision = true
|
use_collision = true
|
||||||
collision_layer = 3
|
collision_layer = 256
|
||||||
collision_mask = 5
|
collision_mask = 65553
|
||||||
|
|
||||||
[node name="CSGBox3D" type="CSGBox3D" parent="Greybox"]
|
[node name="CSGBox3D" type="CSGBox3D" parent="Greybox"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.09619, -0.472656, -46.3293)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.096, -0.5, -46.329)
|
||||||
use_collision = true
|
use_collision = true
|
||||||
size = Vector3(100, 1, 190.741)
|
size = Vector3(100, 1, 190.741)
|
||||||
material = ExtResource("3_vvhq3")
|
material = ExtResource("3_vvhq3")
|
||||||
@@ -132,6 +133,21 @@ material = ExtResource("3_vvhq3")
|
|||||||
transform = Transform3D(5, 0, 0, 0, -2.18557e-07, 5, 0, -5, -2.18557e-07, 1, 0.1, -9.5)
|
transform = Transform3D(5, 0, 0, 0, -2.18557e-07, 5, 0, -5, -2.18557e-07, 1, 0.1, -9.5)
|
||||||
text = "10m"
|
text = "10m"
|
||||||
|
|
||||||
|
[node name="Label3D6" type="Label3D" parent="Greybox/RunningTrack"]
|
||||||
|
transform = Transform3D(5, 0, 0, 0, -2.18557e-07, 5, 0, -5, -2.18557e-07, 27.5, 0.1, 1)
|
||||||
|
text = "10deg
|
||||||
|
"
|
||||||
|
|
||||||
|
[node name="Label3D7" type="Label3D" parent="Greybox/RunningTrack"]
|
||||||
|
transform = Transform3D(5, 0, 0, 0, -2.18557e-07, 5, 0, -5, -2.18557e-07, 30.5, 0.1, 1)
|
||||||
|
text = "20deg
|
||||||
|
"
|
||||||
|
|
||||||
|
[node name="Label3D8" type="Label3D" parent="Greybox/RunningTrack"]
|
||||||
|
transform = Transform3D(5, 0, 0, 0, -2.18557e-07, 5, 0, -5, -2.18557e-07, 33.5, 0.1, 1)
|
||||||
|
text = "30deg
|
||||||
|
"
|
||||||
|
|
||||||
[node name="Label3D2" type="Label3D" parent="Greybox/RunningTrack"]
|
[node name="Label3D2" type="Label3D" parent="Greybox/RunningTrack"]
|
||||||
transform = Transform3D(5, 0, 0, 0, -2.18557e-07, 5, 0, -5, -2.18557e-07, 1, 0.1, -19.5)
|
transform = Transform3D(5, 0, 0, 0, -2.18557e-07, 5, 0, -5, -2.18557e-07, 1, 0.1, -19.5)
|
||||||
text = "20m"
|
text = "20m"
|
||||||
@@ -158,6 +174,38 @@ text = "0.5m"
|
|||||||
transform = Transform3D(-2.18557e-07, -5, -2.18557e-07, 0, -2.18557e-07, 5, -5, 2.18557e-07, 9.55343e-15, -7, 0.1, -6.5)
|
transform = Transform3D(-2.18557e-07, -5, -2.18557e-07, 0, -2.18557e-07, 5, -5, 2.18557e-07, 9.55343e-15, -7, 0.1, -6.5)
|
||||||
text = "1m"
|
text = "1m"
|
||||||
|
|
||||||
|
[node name="Label3D22" type="Label3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(-2.1855689e-07, 5, 2.18557e-07, 0, -2.18557e-07, 5, 5, 2.1855689e-07, 9.55343e-15, -28.5, 0.1, 1)
|
||||||
|
text = "1.5m"
|
||||||
|
|
||||||
|
[node name="Label3D23" type="Label3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(-2.1855689e-07, 5, 2.18557e-07, 0, -2.18557e-07, 5, 5, 2.1855689e-07, 9.55343e-15, -28.5, 0.1, -11)
|
||||||
|
text = "2m"
|
||||||
|
|
||||||
|
[node name="Label3D24" type="Label3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(-2.1855689e-07, 5, 2.18557e-07, 0, -2.18557e-07, 5, 5, 2.1855689e-07, 9.55343e-15, -28.5, 0.1, -21.5)
|
||||||
|
text = "3m"
|
||||||
|
|
||||||
|
[node name="Label3D25" type="Label3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(-2.1855689e-07, 5, 2.18557e-07, 0, -2.18557e-07, 5, 5, 2.1855689e-07, 9.55343e-15, -28.5, 0.1, -31)
|
||||||
|
text = "4m"
|
||||||
|
|
||||||
|
[node name="Label3D26" type="Label3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(-2.1855689e-07, 5, 2.18557e-07, 0, -2.18557e-07, 5, 5, 2.1855689e-07, 9.55343e-15, -28.5, 0.1, -41.5)
|
||||||
|
text = "5m"
|
||||||
|
|
||||||
|
[node name="Label3D27" type="Label3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(-2.1855689e-07, 5, 2.18557e-07, 0, -2.18557e-07, 5, 5, 2.1855689e-07, 9.55343e-15, -28.5, 0.1, -51.5)
|
||||||
|
text = "6m"
|
||||||
|
|
||||||
|
[node name="Label3D28" type="Label3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(-2.1855689e-07, 5, 2.18557e-07, 0, -2.18557e-07, 5, 5, 2.1855689e-07, 9.55343e-15, -28.5, 0.1, -61)
|
||||||
|
text = "7m"
|
||||||
|
|
||||||
|
[node name="Label3D29" type="Label3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(-2.1855689e-07, 5, 2.18557e-07, 0, -2.18557e-07, 5, 5, 2.1855689e-07, 9.55343e-15, -28.5, 0.1, -74.5)
|
||||||
|
text = "8m"
|
||||||
|
|
||||||
[node name="Label3D8" type="Label3D" parent="Greybox/JumpHeights"]
|
[node name="Label3D8" type="Label3D" parent="Greybox/JumpHeights"]
|
||||||
transform = Transform3D(-2.18557e-07, -5, -2.18557e-07, 0, -2.18557e-07, 5, -5, 2.18557e-07, 9.55343e-15, -7, 0.1, -11.5)
|
transform = Transform3D(-2.18557e-07, -5, -2.18557e-07, 0, -2.18557e-07, 5, -5, 2.18557e-07, 9.55343e-15, -7, 0.1, -11.5)
|
||||||
text = "1.5m"
|
text = "1.5m"
|
||||||
@@ -323,9 +371,111 @@ size = Vector3(5, 17.5, 5)
|
|||||||
material = ExtResource("3_vvhq3")
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
[node name="CSGBox3D29" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
[node name="CSGBox3D29" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.5, 10, -76.5)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -30.25, 10, -40)
|
||||||
use_collision = true
|
use_collision = true
|
||||||
size = Vector3(5, 20, 5)
|
size = Vector3(0.5, 20, 80)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D33" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -24.75, 10, -5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(7.5, 20, 10)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D41" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 22.75, 5, -1.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(12.5, 10, 3)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D47" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 0.9848078, 0.17364816, 0, -0.17364816, 0.9848078, 22.75, 0.03095889, -30.695885)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(12.5, 10, 58)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D48" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 0.9396926, 0.34202012, 0, -0.34202012, 0.9396926, 30.5, 1.5878377, -16.713436)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 6.5, 31.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D49" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 0.86602545, 0.5, 0, -0.5, 0.86602545, 33.5, 2.5053406, -10.524445)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 5.5, 20.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D42" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 30.5, 5, -1.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 10, 3)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D43" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 33.5, 5, -1.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 10, 3)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D44" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 36.5, 5, -1.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 10, 3)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D45" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 39.5, 5, -1.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 10, 3)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D46" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 42.5, 5, -1.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 10, 3)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D34" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -24.5, 10, -15)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(7, 20, 10)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D35" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -24, 10, -25)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(6, 20, 10)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D36" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.5, 10, -35)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 20, 10)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D37" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23, 10, -45)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 20, 10)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D38" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -22.5, 10, -55)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 20, 10)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D39" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -22, 10, -65)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(2, 20, 10)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D40" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -21.5, 10, -75)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(1, 20, 10)
|
||||||
material = ExtResource("3_vvhq3")
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
[node name="Passageways" type="CSGCombiner3D" parent="Greybox"]
|
[node name="Passageways" type="CSGCombiner3D" parent="Greybox"]
|
||||||
@@ -356,6 +506,162 @@ use_collision = true
|
|||||||
size = Vector3(5, 3, 2)
|
size = Vector3(5, 3, 2)
|
||||||
material = ExtResource("3_vvhq3")
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D38" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 21.5, 2.25, 22.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D39" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 21.25, 0.5, 22.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D40" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 28.5, 2.25, 22.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D41" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 28.25, 0.25, 22.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 2.5, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D42" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 35.5, 2.25, 22.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D43" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 35.25, -0.5, 22.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D44" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 42.5, 2.25, 22.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D45" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 42.25, -1, 22.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D46" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-2.6226834e-08, 0, -1, 0, 1, 0, 0.6, 0, -4.371139e-08, 21.5, 2.25, 31.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D47" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-2.6226834e-08, 0, -1, 0, 1, 0, 0.6, 0, -4.371139e-08, 21.25, 0.5, 31.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D48" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-2.6226834e-08, 0, -1, 0, 1, 0, 0.6, 0, -4.371139e-08, 28.5, 2.25, 31.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D49" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-2.6226834e-08, 0, -1, 0, 1, 0, 0.6, 0, -4.371139e-08, 28.25, 0.25, 31.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 2.5, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D50" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-2.6226834e-08, 0, -1, 0, 1, 0, 0.6, 0, -4.371139e-08, 35.5, 2.25, 31.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D51" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-2.6226834e-08, 0, -1, 0, 1, 0, 0.6, 0, -4.371139e-08, 35.25, -0.5, 31.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D52" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-2.6226834e-08, 0, -1, 0, 1, 0, 0.6, 0, -4.371139e-08, 42.5, 2.25, 31.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D53" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-2.6226834e-08, 0, -1, 0, 1, 0, 0.6, 0, -4.371139e-08, 42.25, -1, 31.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D54" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-7.86805e-09, 0, -1, 0, 1, 0, 0.18, 0, -4.371139e-08, 21.5, 2.25, 39.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D55" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-7.86805e-09, 0, -1, 0, 1, 0, 0.18, 0, -4.371139e-08, 21.25, 0.5, 39.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D56" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-7.86805e-09, 0, -1, 0, 1, 0, 0.18, 0, -4.371139e-08, 28.5, 2.25, 39.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D57" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-7.86805e-09, 0, -1, 0, 1, 0, 0.18, 0, -4.371139e-08, 28.25, 0.25, 39.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 2.5, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D58" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-7.86805e-09, 0, -1, 0, 1, 0, 0.18, 0, -4.371139e-08, 35.5, 2.25, 39.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D59" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-7.86805e-09, 0, -1, 0, 1, 0, 0.18, 0, -4.371139e-08, 35.25, -0.5, 39.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D60" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-7.86805e-09, 0, -1, 0, 1, 0, 0.18, 0, -4.371139e-08, 42.5, 2.25, 39.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D61" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(-7.86805e-09, 0, -1, 0, 1, 0, 0.18, 0, -4.371139e-08, 42.25, -1, 39.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
[node name="CSGBox3D32" type="CSGBox3D" parent="Greybox/Passageways"]
|
[node name="CSGBox3D32" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 2.25, -26.5)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 2.25, -26.5)
|
||||||
use_collision = true
|
use_collision = true
|
||||||
@@ -399,3 +705,211 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 4.5, -11.5)
|
|||||||
use_collision = true
|
use_collision = true
|
||||||
size = Vector3(1, 0.5, 5)
|
size = Vector3(1, 0.5, 5)
|
||||||
material = ExtResource("3_vvhq3")
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="Mantles" type="CSGCombiner3D" parent="Greybox"]
|
||||||
|
|
||||||
|
[node name="Label3D22" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, -5.5, 0.1, 11)
|
||||||
|
text = "0.5m"
|
||||||
|
|
||||||
|
[node name="Label3D35" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, -8.5, 0.1, 11)
|
||||||
|
text = "0.25m"
|
||||||
|
|
||||||
|
[node name="Label3D23" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, -2, 0.1, 11)
|
||||||
|
text = "1m"
|
||||||
|
|
||||||
|
[node name="Label3D27" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, -11, 0.1, 12.5)
|
||||||
|
text = "1m"
|
||||||
|
|
||||||
|
[node name="Label3D28" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, 13, 0.1, 12.5)
|
||||||
|
text = "1m"
|
||||||
|
|
||||||
|
[node name="Label3D29" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, 13, 0.1, 21)
|
||||||
|
text = "2m"
|
||||||
|
|
||||||
|
[node name="Label3D30" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, 13, 0.1, 28.5)
|
||||||
|
text = "3m"
|
||||||
|
|
||||||
|
[node name="Label3D31" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, -11, 0.1, 21)
|
||||||
|
text = "2m"
|
||||||
|
|
||||||
|
[node name="Label3D32" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, -11, 0.1, 28.5)
|
||||||
|
text = "3m"
|
||||||
|
|
||||||
|
[node name="Label3D24" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, 2, 0.1, 11)
|
||||||
|
text = "1.5m"
|
||||||
|
|
||||||
|
[node name="Label3D25" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, 6, 0.1, 11)
|
||||||
|
text = "2m"
|
||||||
|
|
||||||
|
[node name="Label3D26" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, 10, 0.1, 11)
|
||||||
|
text = "4m"
|
||||||
|
|
||||||
|
[node name="CSGBox3D33" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0.5, 12.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 1, 1)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D34" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.5, 0.5, 12.25)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 1, 0.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D35" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0.5, 12.75)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 1, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D36" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0.5, 13)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 1, 2)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D37" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0.5, 14)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 1, 4)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D38" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 1, 20.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 2, 1)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D39" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.5, 1, 20.25)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 2, 0.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D40" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 1, 20.75)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 2, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D41" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 1, 21)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 2, 2)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D42" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 1, 22)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 2, 4)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D43" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 1.5, 28.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 3, 1)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D44" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.5, 1.5, 28.25)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 3, 0.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D45" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 1.5, 28.75)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 3, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D46" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 1.5, 29)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 3, 2)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D47" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 1.5, 30)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 3, 4)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="Label3D33" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, 13, 0.1, 36.5)
|
||||||
|
text = "4m"
|
||||||
|
|
||||||
|
[node name="Label3D34" type="Label3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-5, 4.3711395e-07, 1.9106861e-14, 0, -2.18557e-07, 5, 4.3711395e-07, 5, 2.18557e-07, -11, 0.1, 36.5)
|
||||||
|
text = "4m"
|
||||||
|
|
||||||
|
[node name="CSGBox3D48" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 2, 36.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 4, 1)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D49" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.5, 2, 36.25)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 4, 0.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D53" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.5, 0.5, 12.125)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 1, 0.25)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D57" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -13, 3.5, -21.629175)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 1, 0.25)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D54" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.5, 1, 20.125)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 2, 0.25)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D55" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.5, 1.5, 28.125)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 3, 0.25)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D56" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.5, 2, 36.125)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 4, 0.25)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D50" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 2, 36.75)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 4, 1.5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D51" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 2, 37)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 4, 2)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D52" type="CSGBox3D" parent="Greybox/Mantles"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 2, 38)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4, 4, 4)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|||||||
532
maps/city.tscn
532
maps/city.tscn
@@ -1,12 +1,11 @@
|
|||||||
[gd_scene load_steps=37 format=3 uid="uid://dmkw8cmalm5k"]
|
[gd_scene load_steps=40 format=3 uid="uid://dmkw8cmalm5k"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://bei4nhkf8lwdo" path="res://player_controller/PlayerController.tscn" id="1_2vsi6"]
|
[ext_resource type="PackedScene" uid="uid://bei4nhkf8lwdo" path="res://player_controller/PlayerController.tscn" id="1_2vsi6"]
|
||||||
|
[ext_resource type="Script" uid="uid://blenis2y55fmg" path="res://tools/city_helpers.gd" id="1_qwuk2"]
|
||||||
[ext_resource type="Texture2D" uid="uid://ca4kkq3w8cd4n" path="res://assets/sky/sky_15_2k.png" id="2_ruo5i"]
|
[ext_resource type="Texture2D" uid="uid://ca4kkq3w8cd4n" path="res://assets/sky/sky_15_2k.png" id="2_ruo5i"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dkr80d2pi0d41" path="res://addons/guide/debugger/guide_debugger.tscn" id="2_uet8a"]
|
[ext_resource type="PackedScene" uid="uid://dkr80d2pi0d41" path="res://addons/guide/debugger/guide_debugger.tscn" id="2_uet8a"]
|
||||||
[ext_resource type="Texture2D" uid="uid://7kcmi16gedd0" path="res://assets/LD-0001.png" id="3_ruo5i"]
|
|
||||||
[ext_resource type="Script" uid="uid://cyh0d64pfygbl" path="res://addons/maaacks_game_template/base/scripts/pause_menu_controller.gd" id="7_ukfuy"]
|
[ext_resource type="Script" uid="uid://cyh0d64pfygbl" path="res://addons/maaacks_game_template/base/scripts/pause_menu_controller.gd" id="7_ukfuy"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ccqajqchiw4xu" path="res://menus/scenes/overlaid_menus/pause_menu.tscn" id="8_wctvs"]
|
[ext_resource type="PackedScene" uid="uid://ccqajqchiw4xu" path="res://menus/scenes/overlaid_menus/pause_menu.tscn" id="8_wctvs"]
|
||||||
[ext_resource type="Resource" uid="uid://bl5crtu1gkrtr" path="res://systems/inputs/base_mode/base_mode.tres" id="9_eca4n"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://bkcsjsk2ciff" path="res://addons/maaacks_game_template/base/scenes/music_players/background_music_player.tscn" id="9_i2xii"]
|
[ext_resource type="PackedScene" uid="uid://bkcsjsk2ciff" path="res://addons/maaacks_game_template/base/scenes/music_players/background_music_player.tscn" id="9_i2xii"]
|
||||||
[ext_resource type="Resource" uid="uid://dgluj0ql5vth7" path="res://systems/inputs/base_mode/pause.tres" id="10_0ari0"]
|
[ext_resource type="Resource" uid="uid://dgluj0ql5vth7" path="res://systems/inputs/base_mode/pause.tres" id="10_0ari0"]
|
||||||
[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="AudioStream" uid="uid://f8cvr5s041ej" path="res://assets/audio/ambiance/637083__nox_sound__ambiance_nature_night_cricket_calm_loop_stereo.wav" id="10_eca4n"]
|
||||||
@@ -18,11 +17,48 @@
|
|||||||
[ext_resource type="Texture2D" uid="uid://dl73t0kxkaxp0" path="res://assets/ui/input-prompts/Xbox Series/Vector/xbox_button_a_outline.svg" id="16_2k3fr"]
|
[ext_resource type="Texture2D" uid="uid://dl73t0kxkaxp0" path="res://assets/ui/input-prompts/Xbox Series/Vector/xbox_button_a_outline.svg" id="16_2k3fr"]
|
||||||
[ext_resource type="Texture2D" uid="uid://blfc13splpcld" path="res://assets/ui/input-prompts/Xbox Series/Vector/xbox_stick_l.svg" id="16_crf87"]
|
[ext_resource type="Texture2D" uid="uid://blfc13splpcld" path="res://assets/ui/input-prompts/Xbox Series/Vector/xbox_stick_l.svg" id="16_crf87"]
|
||||||
[ext_resource type="Script" uid="uid://dvieq1o7ci70y" path="res://systems/ui/tutorial_controller.gd" id="16_efsse"]
|
[ext_resource type="Script" uid="uid://dvieq1o7ci70y" path="res://systems/ui/tutorial_controller.gd" id="16_efsse"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b8aet6m4m2i83" path="res://scenes/tuto_trigger/TutoTrigger.tscn" id="16_qwuk2"]
|
||||||
[ext_resource type="Texture2D" uid="uid://com0lpfuol6vk" path="res://assets/ui/input-prompts/Xbox Series/Vector/xbox_stick_r.svg" id="17_rmfv1"]
|
[ext_resource type="Texture2D" uid="uid://com0lpfuol6vk" path="res://assets/ui/input-prompts/Xbox Series/Vector/xbox_stick_r.svg" id="17_rmfv1"]
|
||||||
[ext_resource type="PackedScene" uid="uid://kktuyhbd5xgc" path="res://menus/scenes/overlaid_menus/tuto_got_sword.tscn" id="17_t0d86"]
|
[ext_resource type="PackedScene" uid="uid://kktuyhbd5xgc" path="res://menus/scenes/overlaid_menus/tuto_got_sword.tscn" id="17_t0d86"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cjh5cnvdbq5ku" path="res://assets/ui/input-prompts/Xbox Series/Vector/xbox_button_b_outline.svg" id="19_efsse"]
|
[ext_resource type="Texture2D" uid="uid://cjh5cnvdbq5ku" path="res://assets/ui/input-prompts/Xbox Series/Vector/xbox_button_b_outline.svg" id="19_efsse"]
|
||||||
[ext_resource type="Texture2D" uid="uid://nrhxjdpuje3f" path="res://assets/ui/input-prompts/Xbox Series/Vector/xbox_lt_outline.svg" id="20_crf87"]
|
[ext_resource type="Texture2D" uid="uid://nrhxjdpuje3f" path="res://assets/ui/input-prompts/Xbox Series/Vector/xbox_lt_outline.svg" id="20_crf87"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bfkj4neu0m0rm" path="res://assets/ui/input-prompts/Xbox Series/Vector/xbox_rt_outline.svg" id="21_rmfv1"]
|
[ext_resource type="Texture2D" uid="uid://dyjvbsvbriii4" path="res://assets/ui/input-prompts/Xbox Series/Vector/xbox_rb_outline.svg" id="23_p287n"]
|
||||||
|
|
||||||
|
[sub_resource type="LabelSettings" id="LabelSettings_2k3fr"]
|
||||||
|
font_size = 30
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_t0d86"]
|
||||||
|
size = Vector3(14, 15.5, 26)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_p287n"]
|
||||||
|
size = Vector3(8.5, 16.5, 11.5)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_5hbxb"]
|
||||||
|
size = Vector3(8, 13.5, 10)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_6gj1x"]
|
||||||
|
size = Vector3(8, 13.5, 11.5)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_x7fl1"]
|
||||||
|
size = Vector3(8.5, 38.5, 46.5)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_3wccx"]
|
||||||
|
size = Vector3(12, 11.5, 5)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_hmdts"]
|
||||||
|
size = Vector3(12, 13, 7)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_lnjrw"]
|
||||||
|
size = Vector3(14, 10, 13.5)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_3w3wd"]
|
||||||
|
size = Vector3(13, 16.5, 11.5)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_lu3yt"]
|
||||||
|
size = Vector3(11.5, 9, 4.5)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_pxspk"]
|
||||||
|
size = Vector3(11.5, 9, 4.5)
|
||||||
|
|
||||||
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_feb1n"]
|
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_feb1n"]
|
||||||
panorama = ExtResource("2_ruo5i")
|
panorama = ExtResource("2_ruo5i")
|
||||||
@@ -40,6 +76,7 @@ ssao_enabled = true
|
|||||||
ssil_enabled = true
|
ssil_enabled = true
|
||||||
sdfgi_enabled = true
|
sdfgi_enabled = true
|
||||||
sdfgi_use_occlusion = true
|
sdfgi_use_occlusion = true
|
||||||
|
glow_enabled = true
|
||||||
fog_enabled = true
|
fog_enabled = true
|
||||||
fog_light_color = Color(0.9955967, 0.83634025, 0.69151855, 1)
|
fog_light_color = Color(0.9955967, 0.83634025, 0.69151855, 1)
|
||||||
fog_sun_scatter = 0.5
|
fog_sun_scatter = 0.5
|
||||||
@@ -48,189 +85,31 @@ fog_sky_affect = 0.184
|
|||||||
volumetric_fog_density = 0.004
|
volumetric_fog_density = 0.004
|
||||||
volumetric_fog_emission = Color(1, 1, 1, 1)
|
volumetric_fog_emission = Color(1, 1, 1, 1)
|
||||||
volumetric_fog_anisotropy = 0.6
|
volumetric_fog_anisotropy = 0.6
|
||||||
|
adjustment_enabled = true
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_t0d86"]
|
[sub_resource type="BoxMesh" id="BoxMesh_p287n"]
|
||||||
size = Vector3(14, 15.5, 26)
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_p287n"]
|
|
||||||
size = Vector3(8.5, 16.5, 11.5)
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_qwuk2"]
|
|
||||||
size = Vector3(8.5, 16.5, 8)
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_efsse"]
|
|
||||||
size = Vector3(12, 18, 8)
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_x7fl1"]
|
|
||||||
size = Vector3(8.5, 38.5, 46.5)
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_3wccx"]
|
|
||||||
size = Vector3(12, 11.5, 5)
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_nrosh"]
|
|
||||||
size = Vector3(8, 16.5, 25.5)
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_lu3yt"]
|
|
||||||
size = Vector3(11.5, 9, 4.5)
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_pxspk"]
|
|
||||||
size = Vector3(11.5, 9, 4.5)
|
|
||||||
|
|
||||||
[sub_resource type="LabelSettings" id="LabelSettings_2k3fr"]
|
|
||||||
font_size = 30
|
|
||||||
|
|
||||||
[node name="Main" type="Node3D"]
|
[node name="Main" type="Node3D"]
|
||||||
|
script = ExtResource("1_qwuk2")
|
||||||
[node name="Player" parent="." node_paths=PackedStringArray("TutorialWeaponTarget") instance=ExtResource("1_2vsi6")]
|
|
||||||
transform = Transform3D(0.054514527, 0, -0.9985129, 0, 1, 0, 0.9985129, 0, 0.054514527, -1.2857323, -132.74933, 116.15933)
|
|
||||||
collision_layer = 17
|
|
||||||
TutorialWeaponTarget = NodePath("../PlacedTutorialWeapon/WeaponLocationTarget")
|
|
||||||
|
|
||||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
||||||
environment = SubResource("Environment_1bvp3")
|
|
||||||
|
|
||||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
|
||||||
transform = Transform3D(-0.78043425, 0.15240018, 0.60637933, 0.17673612, -0.8765135, 0.44775894, 0.5997381, 0.4566158, 0.6571267, 0, 0, 0)
|
|
||||||
light_color = Color(0.99999934, 0.76777613, 0.6549227, 1)
|
|
||||||
light_energy = 2.0
|
|
||||||
light_volumetric_fog_energy = 2.0
|
|
||||||
shadow_enabled = true
|
|
||||||
shadow_opacity = 0.95
|
|
||||||
shadow_blur = 2.435
|
|
||||||
|
|
||||||
[node name="DebugLayer" type="CanvasLayer" parent="."]
|
|
||||||
|
|
||||||
[node name="GuideDebugger" parent="DebugLayer" instance=ExtResource("2_uet8a")]
|
|
||||||
visible = false
|
|
||||||
|
|
||||||
[node name="Map" type="Sprite3D" parent="."]
|
|
||||||
transform = Transform3D(-3.278354e-07, -7.5, -3.278354e-08, 0, -3.278354e-07, 0.75, -7.5, 3.278354e-07, 1.4330142e-15, 7.1878185, 8.602432, -175.5159)
|
|
||||||
visible = false
|
|
||||||
texture = ExtResource("3_ruo5i")
|
|
||||||
|
|
||||||
[node name="Guard tower" parent="." instance=ExtResource("11_wctvs")]
|
|
||||||
transform = Transform3D(0.09033705, 0, 0.99591124, 0, 1, 0, -0.99591124, 0, 0.09033705, -4.6100636, 1.5, 0.5658741)
|
|
||||||
|
|
||||||
[node name="Water" parent="." instance=ExtResource("12_i2xii")]
|
|
||||||
transform = Transform3D(10000, 0, 0, 0, 1, 0, 0, 0, 10000, 0, 4.03932, -186.25941)
|
|
||||||
|
|
||||||
[node name="PauseMenuController" type="Node" parent="."]
|
|
||||||
script = ExtResource("7_ukfuy")
|
|
||||||
pause_menu_packed = ExtResource("8_wctvs")
|
|
||||||
base_mode = ExtResource("9_eca4n")
|
|
||||||
pause = ExtResource("10_0ari0")
|
|
||||||
|
|
||||||
[node name="BackgroundMusicPlayer" parent="." instance=ExtResource("9_i2xii")]
|
[node name="BackgroundMusicPlayer" parent="." instance=ExtResource("9_i2xii")]
|
||||||
stream = ExtResource("10_eca4n")
|
stream = ExtResource("10_eca4n")
|
||||||
|
|
||||||
[node name="Lift" parent="." instance=ExtResource("13_eca4n")]
|
[node name="PauseMenuController" type="Node" parent="." node_paths=PackedStringArray("player")]
|
||||||
transform = Transform3D(0.9961947, 0, -0.08715573, 0, 1, 0, 0.08715573, 0, 0.9961947, -4.593, 1.618, 0.583)
|
script = ExtResource("7_ukfuy")
|
||||||
end_location = Vector3(-4.593, 116.11, 0.583)
|
pause_menu_packed = ExtResource("8_wctvs")
|
||||||
lift_time = 15.0
|
player = NodePath("../Player")
|
||||||
|
pause = ExtResource("10_0ari0")
|
||||||
[node name="PlacedTutorialWeapon" type="MeshInstance3D" parent="."]
|
|
||||||
transform = Transform3D(-2, 3.019916e-07, 0, -3.019916e-07, -2, 0, 0, 0, 2, -17.904, -79.265, 145.317)
|
|
||||||
mesh = ExtResource("14_0ari0")
|
|
||||||
script = ExtResource("15_165wb")
|
|
||||||
|
|
||||||
[node name="SpotLight3D" type="SpotLight3D" parent="PlacedTutorialWeapon"]
|
|
||||||
transform = Transform3D(1, -1.509958e-07, 6.600236e-15, 0, -4.371139e-08, -1, 1.509958e-07, 1, -4.371139e-08, 0, -2.3931274, 0)
|
|
||||||
spot_range = 9.85
|
|
||||||
spot_attenuation = 0.46
|
|
||||||
spot_angle = 15.0
|
|
||||||
|
|
||||||
[node name="WeaponLocationTarget" type="Marker3D" parent="PlacedTutorialWeapon"]
|
|
||||||
|
|
||||||
[node name="TutoTriggers" type="Node3D" parent="."]
|
|
||||||
transform = Transform3D(0.054514527, 0, -0.9985129, 0, 1, 0, 0.9985129, 0, 0.054514527, -0.78573227, -132.74933, 116.65933)
|
|
||||||
|
|
||||||
[node name="TriggerTutoMove" type="Area3D" parent="TutoTriggers"]
|
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 16
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoMove"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.087155946, 0, 1, 0, 0.087155946, 0, 0.9961947, 1.1144943, 6.5, 1.6032357)
|
|
||||||
shape = SubResource("BoxShape3D_t0d86")
|
|
||||||
|
|
||||||
[node name="TriggerTutoMantle" type="Area3D" parent="TutoTriggers"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.087155744, 0, 1, 0, 0.087155744, 0, 0.9961947, -10.4557495, 0, -28.61254)
|
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 16
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoMantle"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.08715595, 0, 1, 0, 0.08715595, 0, 0.9961947, 0.19611359, 7, -2.241436)
|
|
||||||
shape = SubResource("BoxShape3D_p287n")
|
|
||||||
|
|
||||||
[node name="TriggerTutoJump" type="Area3D" parent="TutoTriggers"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.087155744, 0, 1, 0, 0.087155744, 0, 0.9961947, 3.1977234, 0, -49.399136)
|
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 16
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoJump"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.08715595, 0, 1, 0, 0.08715595, 0, 0.9961947, -0.90906525, 6.5, -1.0833435)
|
|
||||||
shape = SubResource("BoxShape3D_qwuk2")
|
|
||||||
|
|
||||||
[node name="TriggerTutoDoubleJump" type="Area3D" parent="TutoTriggers"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.087155744, 0, 1, 0, 0.087155744, 0, 0.9961947, 23.476433, 0, -44.786793)
|
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 16
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoDoubleJump"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.08715595, 0, 1, 0, 0.08715595, 0, 0.9961947, -2.0671844, 5.75, -2.1884613)
|
|
||||||
shape = SubResource("BoxShape3D_efsse")
|
|
||||||
|
|
||||||
[node name="TriggerTutoWallJump" type="Area3D" parent="TutoTriggers"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.087155744, 0, 1, 0, 0.087155744, 0, 0.9961947, 38.60766, 0, -28.437609)
|
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 16
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoWallJump"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.08715595, 0, 1, 0, 0.08715595, 0, 0.9961947, -1.9546509, 20.75, 10.8709755)
|
|
||||||
shape = SubResource("BoxShape3D_x7fl1")
|
|
||||||
|
|
||||||
[node name="TriggerTutoWallJump2" type="Area3D" parent="TutoTriggers"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.087155744, 0, 1, 0, 0.087155744, 0, 0.9961947, 15.983452, 0, 37.426994)
|
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 16
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoWallJump2"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.08715595, 0, 1, 0, 0.08715595, 0, 0.9961947, 2.3256226, 21.75, 4.9715767)
|
|
||||||
shape = SubResource("BoxShape3D_3wccx")
|
|
||||||
|
|
||||||
[node name="TriggerTutoDash" type="Area3D" parent="TutoTriggers"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.087155744, 0, 1, 0, 0.087155744, 0, 0.9961947, 28.393105, 27.5, 21.07917)
|
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 16
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoDash"]
|
|
||||||
transform = Transform3D(0.9961947, 0, -0.08715595, 0, 1, 0, 0.08715595, 0, 0.9961947, 1.0587616, 7.5, 5.1117268)
|
|
||||||
shape = SubResource("BoxShape3D_nrosh")
|
|
||||||
|
|
||||||
[node name="TutorialDoneArea" type="Area3D" parent="TutoTriggers"]
|
|
||||||
transform = Transform3D(0.14133324, 0, 0.98996216, 0, 1, 0, -0.98996216, 0, 0.14133324, 7.9436035, 53.74933, 16.672102)
|
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 16
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TutorialDoneArea"]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.7500105, 4, 0.7499695)
|
|
||||||
shape = SubResource("BoxShape3D_lu3yt")
|
|
||||||
|
|
||||||
[node name="WeaponRetrieved" type="Area3D" parent="TutoTriggers"]
|
|
||||||
transform = Transform3D(0.14133324, 0, 0.98996216, 0, 1, 0, -0.98996216, 0, 0.14133324, 27.3601, 53.74933, 18.733648)
|
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 16
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/WeaponRetrieved"]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.7500105, 4, 0.7499695)
|
|
||||||
shape = SubResource("BoxShape3D_pxspk")
|
|
||||||
|
|
||||||
[node name="TutorialController" type="Control" parent="."]
|
[node name="TutorialController" type="Control" parent="."]
|
||||||
|
visible = false
|
||||||
layout_mode = 3
|
layout_mode = 3
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
mouse_filter = 1
|
||||||
script = ExtResource("16_efsse")
|
script = ExtResource("16_efsse")
|
||||||
tuto_got_sword_packed = ExtResource("17_t0d86")
|
tuto_got_sword_packed = ExtResource("17_t0d86")
|
||||||
|
|
||||||
@@ -305,49 +184,6 @@ layout_mode = 2
|
|||||||
text = "Mantle up"
|
text = "Mantle up"
|
||||||
label_settings = SubResource("LabelSettings_2k3fr")
|
label_settings = SubResource("LabelSettings_2k3fr")
|
||||||
|
|
||||||
[node name="TutoJump" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer"]
|
|
||||||
unique_name_in_owner = true
|
|
||||||
visible = false
|
|
||||||
layout_mode = 2
|
|
||||||
theme_override_constants/separation = 15
|
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="TutorialController/PanelContainer/MarginContainer/TutoJump"]
|
|
||||||
layout_mode = 2
|
|
||||||
texture = ExtResource("16_2k3fr")
|
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="TutorialController/PanelContainer/MarginContainer/TutoJump"]
|
|
||||||
layout_mode = 2
|
|
||||||
text = "Jump"
|
|
||||||
label_settings = SubResource("LabelSettings_2k3fr")
|
|
||||||
|
|
||||||
[node name="TutoDoubleJump" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer"]
|
|
||||||
unique_name_in_owner = true
|
|
||||||
visible = false
|
|
||||||
layout_mode = 2
|
|
||||||
theme_override_constants/separation = 15
|
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer/TutoDoubleJump"]
|
|
||||||
layout_mode = 2
|
|
||||||
theme_override_constants/separation = 0
|
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="TutorialController/PanelContainer/MarginContainer/TutoDoubleJump/HBoxContainer"]
|
|
||||||
layout_mode = 2
|
|
||||||
texture = ExtResource("16_2k3fr")
|
|
||||||
|
|
||||||
[node name="Label2" type="Label" parent="TutorialController/PanelContainer/MarginContainer/TutoDoubleJump/HBoxContainer"]
|
|
||||||
layout_mode = 2
|
|
||||||
text = "+"
|
|
||||||
label_settings = SubResource("LabelSettings_2k3fr")
|
|
||||||
|
|
||||||
[node name="TextureRect2" type="TextureRect" parent="TutorialController/PanelContainer/MarginContainer/TutoDoubleJump/HBoxContainer"]
|
|
||||||
layout_mode = 2
|
|
||||||
texture = ExtResource("16_2k3fr")
|
|
||||||
|
|
||||||
[node name="Label3" type="Label" parent="TutorialController/PanelContainer/MarginContainer/TutoDoubleJump"]
|
|
||||||
layout_mode = 2
|
|
||||||
text = "Double jump"
|
|
||||||
label_settings = SubResource("LabelSettings_2k3fr")
|
|
||||||
|
|
||||||
[node name="TutoWallJump" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer"]
|
[node name="TutoWallJump" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
visible = false
|
visible = false
|
||||||
@@ -372,21 +208,6 @@ layout_mode = 2
|
|||||||
text = "Wall jump"
|
text = "Wall jump"
|
||||||
label_settings = SubResource("LabelSettings_2k3fr")
|
label_settings = SubResource("LabelSettings_2k3fr")
|
||||||
|
|
||||||
[node name="TutoDash" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer"]
|
|
||||||
unique_name_in_owner = true
|
|
||||||
visible = false
|
|
||||||
layout_mode = 2
|
|
||||||
theme_override_constants/separation = 15
|
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="TutorialController/PanelContainer/MarginContainer/TutoDash"]
|
|
||||||
layout_mode = 2
|
|
||||||
texture = ExtResource("19_efsse")
|
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="TutorialController/PanelContainer/MarginContainer/TutoDash"]
|
|
||||||
layout_mode = 2
|
|
||||||
text = "Dash (both in air and on ground)"
|
|
||||||
label_settings = SubResource("LabelSettings_2k3fr")
|
|
||||||
|
|
||||||
[node name="TutoDashWeapon" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer"]
|
[node name="TutoDashWeapon" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
visible = false
|
visible = false
|
||||||
@@ -402,78 +223,233 @@ layout_mode = 2
|
|||||||
text = "Dash towards sword"
|
text = "Dash towards sword"
|
||||||
label_settings = SubResource("LabelSettings_2k3fr")
|
label_settings = SubResource("LabelSettings_2k3fr")
|
||||||
|
|
||||||
[node name="TutoEmpoweredDash" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer"]
|
[node name="TutoWeaponThrow" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
visible = false
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/separation = 20
|
||||||
|
|
||||||
|
[node name="HBoxContainer" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer/TutoWeaponThrow"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/separation = 0
|
||||||
|
|
||||||
|
[node name="TextureRect" type="TextureRect" parent="TutorialController/PanelContainer/MarginContainer/TutoWeaponThrow/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("23_p287n")
|
||||||
|
|
||||||
|
[node name="Label2" type="Label" parent="TutorialController/PanelContainer/MarginContainer/TutoWeaponThrow/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "while aiming"
|
||||||
|
label_settings = SubResource("LabelSettings_2k3fr")
|
||||||
|
|
||||||
|
[node name="Label3" type="Label" parent="TutorialController/PanelContainer/MarginContainer/TutoWeaponThrow"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Throw weapon"
|
||||||
|
label_settings = SubResource("LabelSettings_2k3fr")
|
||||||
|
|
||||||
|
[node name="TutoEnjoy" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
visible = false
|
visible = false
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme_override_constants/separation = 15
|
theme_override_constants/separation = 15
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer/TutoEmpoweredDash"]
|
[node name="label" type="Label" parent="TutorialController/PanelContainer/MarginContainer/TutoEnjoy"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme_override_constants/separation = 0
|
text = "Enjoy this little playground!"
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="TutorialController/PanelContainer/MarginContainer/TutoEmpoweredDash/HBoxContainer"]
|
|
||||||
layout_mode = 2
|
|
||||||
texture = ExtResource("21_rmfv1")
|
|
||||||
|
|
||||||
[node name="Label2" type="Label" parent="TutorialController/PanelContainer/MarginContainer/TutoEmpoweredDash/HBoxContainer"]
|
|
||||||
layout_mode = 2
|
|
||||||
text = "+"
|
|
||||||
label_settings = SubResource("LabelSettings_2k3fr")
|
label_settings = SubResource("LabelSettings_2k3fr")
|
||||||
|
|
||||||
[node name="TextureRect2" type="TextureRect" parent="TutorialController/PanelContainer/MarginContainer/TutoEmpoweredDash/HBoxContainer"]
|
[node name="TutoTriggers" type="Node3D" parent="."]
|
||||||
layout_mode = 2
|
transform = Transform3D(0.054514527, 0, -0.9985129, 0, 1, 0, 0.9985129, 0, 0.054514527, -0.78573227, -132.74933, 116.65933)
|
||||||
texture = ExtResource("19_efsse")
|
|
||||||
|
|
||||||
[node name="Label3" type="Label" parent="TutorialController/PanelContainer/MarginContainer/TutoEmpoweredDash"]
|
[node name="TriggerTutoMove" type="Area3D" parent="TutoTriggers"]
|
||||||
layout_mode = 2
|
collision_layer = 0
|
||||||
text = "Empowered dash"
|
collision_mask = 16
|
||||||
label_settings = SubResource("LabelSettings_2k3fr")
|
|
||||||
|
|
||||||
[node name="TutoEmpoweredJump" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer"]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoMove"]
|
||||||
unique_name_in_owner = true
|
transform = Transform3D(0.9961947, 0, -0.087155946, 0, 1, 0, 0.087155946, 0, 0.9961947, 1.1144943, 6.5, 1.6032357)
|
||||||
|
shape = SubResource("BoxShape3D_t0d86")
|
||||||
|
|
||||||
|
[node name="TriggerTutoMantle" type="Area3D" parent="TutoTriggers"]
|
||||||
|
transform = Transform3D(0.9961947, 0, -0.087155744, 0, 1, 0, 0.087155744, 0, 0.9961947, -10.4557495, 0, -28.61254)
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 16
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoMantle"]
|
||||||
|
transform = Transform3D(0.9961947, 0, -0.08715595, 0, 1, 0, 0.08715595, 0, 0.9961947, 0.19611359, 7, -2.241436)
|
||||||
|
shape = SubResource("BoxShape3D_p287n")
|
||||||
|
|
||||||
|
[node name="TutoJump" parent="TutoTriggers" instance=ExtResource("16_qwuk2")]
|
||||||
|
transform = Transform3D(0.14133328, 0, 0.98996216, 0, 1, 0, -0.98996216, 0, 0.14133328, -0.32653046, 1.2493286, -50.374645)
|
||||||
|
first_input_texture = ExtResource("16_2k3fr")
|
||||||
|
second_input_texture = ExtResource("16_2k3fr")
|
||||||
|
tuto_text = "Double jump"
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TutoJump"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.49998856, 6.25, 3.499977)
|
||||||
|
shape = SubResource("BoxShape3D_5hbxb")
|
||||||
|
|
||||||
|
[node name="TutoDash" parent="TutoTriggers" instance=ExtResource("16_qwuk2")]
|
||||||
|
transform = Transform3D(0.14133328, 0, 0.98996216, 0, 1, 0, -0.98996216, 0, 0.14133328, 19.967693, 1.2493286, -47.47731)
|
||||||
|
first_input_texture = ExtResource("16_crf87")
|
||||||
|
second_input_texture = ExtResource("19_efsse")
|
||||||
|
tuto_text = "Dash"
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TutoDash"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.49999237, 6.25, 4.2500153)
|
||||||
|
shape = SubResource("BoxShape3D_6gj1x")
|
||||||
|
|
||||||
|
[node name="TriggerTutoWallJump" type="Area3D" parent="TutoTriggers"]
|
||||||
|
transform = Transform3D(0.9961947, 0, -0.087155744, 0, 1, 0, 0.087155744, 0, 0.9961947, 38.60766, 0, -28.437609)
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 16
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoWallJump"]
|
||||||
|
transform = Transform3D(0.9961947, 0, -0.08715595, 0, 1, 0, 0.08715595, 0, 0.9961947, -1.9546509, 20.75, 10.8709755)
|
||||||
|
shape = SubResource("BoxShape3D_x7fl1")
|
||||||
|
|
||||||
|
[node name="TriggerTutoWallJump2" type="Area3D" parent="TutoTriggers"]
|
||||||
|
transform = Transform3D(0.9961947, 0, -0.087155744, 0, 1, 0, 0.087155744, 0, 0.9961947, 15.983452, 0, 37.426994)
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 16
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoWallJump2"]
|
||||||
|
transform = Transform3D(0.9961947, 0, -0.08715595, 0, 1, 0, 0.08715595, 0, 0.9961947, 2.3256226, 21.75, 4.9715767)
|
||||||
|
shape = SubResource("BoxShape3D_3wccx")
|
||||||
|
|
||||||
|
[node name="TutoDash2" parent="TutoTriggers" instance=ExtResource("16_qwuk2")]
|
||||||
|
transform = Transform3D(0.14133325, 0, 0.98996216, 0, 1, 0, -0.98996216, 0, 0.14133325, 28.885735, 27.749329, 25.360323)
|
||||||
|
first_input_texture = ExtResource("19_efsse")
|
||||||
|
complex_input_text = "against wall"
|
||||||
|
tuto_text = "Wall run"
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TutoDash2"]
|
||||||
|
transform = Transform3D(1.0000031, 0, -4.917383e-07, 0, 1, 0, 4.917383e-07, 0, 1.0000031, 5.500023, 5, 0)
|
||||||
|
shape = SubResource("BoxShape3D_hmdts")
|
||||||
|
|
||||||
|
[node name="TriggerTutoWeaponThrow" type="Area3D" parent="TutoTriggers"]
|
||||||
|
transform = Transform3D(0.9961947, 0, -0.087155744, 0, 1, 0, 0.087155744, 0, 0.9961947, 4.428787, 58, 19.770819)
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 16
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoWeaponThrow"]
|
||||||
|
transform = Transform3D(0.9961947, 0, -0.08715595, 0, 1, 0, 0.08715595, 0, 0.9961947, 4.4208603, 9.75, -4.632329)
|
||||||
|
shape = SubResource("BoxShape3D_lnjrw")
|
||||||
|
|
||||||
|
[node name="TriggerTutoEnjoy" type="Area3D" parent="TutoTriggers"]
|
||||||
|
transform = Transform3D(0.9961947, 0, -0.087155744, 0, 1, 0, 0.087155744, 0, 0.9961947, -120.81145, 214.5, 2.417603)
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 16
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TriggerTutoEnjoy"]
|
||||||
|
transform = Transform3D(0.9961947, 0, -0.08715595, 0, 1, 0, 0.08715595, 0, 0.9961947, 3.9663503, 5.5, -5.174009)
|
||||||
|
shape = SubResource("BoxShape3D_3w3wd")
|
||||||
|
|
||||||
|
[node name="TutorialDoneArea" type="Area3D" parent="TutoTriggers"]
|
||||||
|
transform = Transform3D(0.14133324, 0, 0.98996216, 0, 1, 0, -0.98996216, 0, 0.14133324, 7.9436035, 53.74933, 16.672102)
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 16
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/TutorialDoneArea"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.7500105, 4, 0.7499695)
|
||||||
|
shape = SubResource("BoxShape3D_lu3yt")
|
||||||
|
|
||||||
|
[node name="WeaponRetrieved" type="Area3D" parent="TutoTriggers"]
|
||||||
|
transform = Transform3D(0.14133324, 0, 0.98996216, 0, 1, 0, -0.98996216, 0, 0.14133324, 27.3601, 53.74933, 18.733648)
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 16
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TutoTriggers/WeaponRetrieved"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.7500105, 4, 0.7499695)
|
||||||
|
shape = SubResource("BoxShape3D_pxspk")
|
||||||
|
|
||||||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||||
|
environment = SubResource("Environment_1bvp3")
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||||
|
transform = Transform3D(-0.7804346, 0.15240021, 0.60637945, 0.1767362, -0.87651366, 0.4477591, 0.5997384, 0.4566159, 0.6571269, 0, 0, 0)
|
||||||
|
light_color = Color(0.99999934, 0.76777613, 0.6549227, 1)
|
||||||
|
light_energy = 2.0
|
||||||
|
light_volumetric_fog_energy = 2.0
|
||||||
|
shadow_enabled = true
|
||||||
|
shadow_opacity = 0.95
|
||||||
|
shadow_blur = 2.435
|
||||||
|
|
||||||
|
[node name="Player" parent="." node_paths=PackedStringArray("TutorialWeaponTarget") instance=ExtResource("1_2vsi6")]
|
||||||
|
transform = Transform3D(0.054514527, 0, -0.9985129, 0, 1, 0, 0.9985129, 0, 0.054514527, -6, 75.5, -13.5)
|
||||||
|
collision_layer = 17
|
||||||
|
TutorialWeaponTarget = NodePath("../PlacedTutorialWeapon/WeaponLocationTarget")
|
||||||
|
TutorialDone = true
|
||||||
|
AccelerationAir = 1.5
|
||||||
|
|
||||||
|
[node name="DebugLayer" type="CanvasLayer" parent="."]
|
||||||
|
|
||||||
|
[node name="GuideDebugger" parent="DebugLayer" instance=ExtResource("2_uet8a")]
|
||||||
visible = false
|
visible = false
|
||||||
layout_mode = 2
|
|
||||||
theme_override_constants/separation = 15
|
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="TutorialController/PanelContainer/MarginContainer/TutoEmpoweredJump"]
|
[node name="Guard tower" parent="." instance=ExtResource("11_wctvs")]
|
||||||
layout_mode = 2
|
transform = Transform3D(0.09033705, 0, 0.99591124, 0, 1, 0, -0.99591124, 0, 0.09033705, -4.6100636, 1.5, 0.5658741)
|
||||||
theme_override_constants/separation = 0
|
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="TutorialController/PanelContainer/MarginContainer/TutoEmpoweredJump/HBoxContainer"]
|
[node name="Water" parent="." instance=ExtResource("12_i2xii")]
|
||||||
layout_mode = 2
|
transform = Transform3D(10000, 0, 0, 0, 1, 0, 0, 0, 10000, 0, 4.03932, -186.25941)
|
||||||
texture = ExtResource("21_rmfv1")
|
|
||||||
|
|
||||||
[node name="Label2" type="Label" parent="TutorialController/PanelContainer/MarginContainer/TutoEmpoweredJump/HBoxContainer"]
|
[node name="Lift" parent="." instance=ExtResource("13_eca4n")]
|
||||||
layout_mode = 2
|
transform = Transform3D(0.9961947, 0, -0.08715573, 0, 1, 0, 0.08715573, 0, 0.9961947, -4.593, 1.618, 0.583)
|
||||||
text = "+"
|
end_location = Vector3(-4.593, 116.11, 0.583)
|
||||||
label_settings = SubResource("LabelSettings_2k3fr")
|
lift_time = 8.0
|
||||||
|
|
||||||
[node name="TextureRect2" type="TextureRect" parent="TutorialController/PanelContainer/MarginContainer/TutoEmpoweredJump/HBoxContainer"]
|
[node name="PlacedTutorialWeapon" type="MeshInstance3D" parent="."]
|
||||||
layout_mode = 2
|
transform = Transform3D(-2, 3.019916e-07, 0, -3.019916e-07, -2, 0, 0, 0, 2, -17.904, -79.265, 145.317)
|
||||||
texture = ExtResource("16_2k3fr")
|
mesh = ExtResource("14_0ari0")
|
||||||
|
script = ExtResource("15_165wb")
|
||||||
|
|
||||||
[node name="Label3" type="Label" parent="TutorialController/PanelContainer/MarginContainer/TutoEmpoweredJump"]
|
[node name="SpotLight3D" type="SpotLight3D" parent="PlacedTutorialWeapon"]
|
||||||
layout_mode = 2
|
transform = Transform3D(1, -1.509958e-07, 6.600236e-15, 0, -4.371139e-08, -1, 1.509958e-07, 1, -4.371139e-08, 0, -2.3931274, 0)
|
||||||
text = "Empowered jump"
|
spot_range = 9.85
|
||||||
label_settings = SubResource("LabelSettings_2k3fr")
|
spot_attenuation = 0.46
|
||||||
|
spot_angle = 15.0
|
||||||
|
|
||||||
|
[node name="WeaponLocationTarget" type="Marker3D" parent="PlacedTutorialWeapon"]
|
||||||
|
|
||||||
|
[node name="LightLeakBlockers" type="Node3D" parent="."]
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="LightLeakBlockers"]
|
||||||
|
transform = Transform3D(200, 0, 0, 0, 200, 0, 0, 0, 10, 0, -116, 178.82)
|
||||||
|
mesh = SubResource("BoxMesh_p287n")
|
||||||
|
skeleton = NodePath("../..")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="LightLeakBlockers"]
|
||||||
|
transform = Transform3D(34.729645, 0, 9.848078, 0, 200, 0, -196.96153, 0, 1.7364821, 57.5, -119, 178.82)
|
||||||
|
mesh = SubResource("BoxMesh_p287n")
|
||||||
|
skeleton = NodePath("../..")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D3" type="MeshInstance3D" parent="LightLeakBlockers"]
|
||||||
|
transform = Transform3D(5.00679e-06, -200.00002, -2.3841858e-07, 0, -5.635115e-06, 10.000002, -200, 9.936228e-07, 2.3841858e-07, 1.5, -17, 114.82001)
|
||||||
|
mesh = SubResource("BoxMesh_p287n")
|
||||||
|
skeleton = NodePath("../..")
|
||||||
|
|
||||||
|
[node name="TutoLights" type="Node3D" parent="."]
|
||||||
|
|
||||||
|
[node name="SpotLight3D" type="SpotLight3D" parent="TutoLights"]
|
||||||
|
transform = Transform3D(1, 9.942504e-09, -4.395368e-08, 4.4703484e-08, -0.3420201, 0.9396927, -5.690144e-09, -0.9396927, -0.3420201, -11.5, -70.5, 106.5)
|
||||||
|
light_energy = 500.0
|
||||||
|
spot_range = 47.233
|
||||||
|
spot_angle = 18.85
|
||||||
|
spot_angle_attenuation = 10.556052
|
||||||
|
|
||||||
|
[connection signal="timeout" from="TutorialController/WaitToShowBlockingTuto" to="TutorialController" method="_show_weapon_tutorial"]
|
||||||
[connection signal="body_exited" from="TutoTriggers/TriggerTutoMove" to="TutorialController" method="hide_tutorials"]
|
[connection signal="body_exited" from="TutoTriggers/TriggerTutoMove" to="TutorialController" method="hide_tutorials"]
|
||||||
[connection signal="body_entered" from="TutoTriggers/TriggerTutoMantle" to="TutorialController" method="_on_tuto_mantle_body_entered"]
|
[connection signal="body_entered" from="TutoTriggers/TriggerTutoMantle" to="TutorialController" method="_on_tuto_mantle_body_entered"]
|
||||||
[connection signal="body_exited" from="TutoTriggers/TriggerTutoMantle" to="TutorialController" method="hide_tutorials"]
|
[connection signal="body_exited" from="TutoTriggers/TriggerTutoMantle" to="TutorialController" method="hide_tutorials"]
|
||||||
[connection signal="body_entered" from="TutoTriggers/TriggerTutoJump" to="TutorialController" method="_on_tuto_jump_body_entered"]
|
|
||||||
[connection signal="body_exited" from="TutoTriggers/TriggerTutoJump" to="TutorialController" method="hide_tutorials"]
|
|
||||||
[connection signal="body_entered" from="TutoTriggers/TriggerTutoDoubleJump" to="TutorialController" method="_on_tuto_double_jump_body_entered"]
|
|
||||||
[connection signal="body_exited" from="TutoTriggers/TriggerTutoDoubleJump" to="TutorialController" method="hide_tutorials"]
|
|
||||||
[connection signal="body_entered" from="TutoTriggers/TriggerTutoWallJump" to="TutorialController" method="_on_tuto_wall_jump_body_entered"]
|
[connection signal="body_entered" from="TutoTriggers/TriggerTutoWallJump" to="TutorialController" method="_on_tuto_wall_jump_body_entered"]
|
||||||
[connection signal="body_exited" from="TutoTriggers/TriggerTutoWallJump" to="TutorialController" method="hide_tutorials"]
|
[connection signal="body_exited" from="TutoTriggers/TriggerTutoWallJump" to="TutorialController" method="hide_tutorials"]
|
||||||
[connection signal="body_entered" from="TutoTriggers/TriggerTutoWallJump2" to="TutorialController" method="_on_tuto_wall_jump_body_entered"]
|
[connection signal="body_entered" from="TutoTriggers/TriggerTutoWallJump2" to="TutorialController" method="_on_tuto_wall_jump_body_entered"]
|
||||||
[connection signal="body_exited" from="TutoTriggers/TriggerTutoWallJump2" to="TutorialController" method="hide_tutorials"]
|
[connection signal="body_exited" from="TutoTriggers/TriggerTutoWallJump2" to="TutorialController" method="hide_tutorials"]
|
||||||
[connection signal="body_entered" from="TutoTriggers/TriggerTutoDash" to="TutorialController" method="_on_tuto_dash_body_entered"]
|
[connection signal="body_entered" from="TutoTriggers/TriggerTutoWeaponThrow" to="TutorialController" method="_on_tuto_weapon_throw_body_entered"]
|
||||||
[connection signal="body_exited" from="TutoTriggers/TriggerTutoDash" to="TutorialController" method="hide_tutorials"]
|
[connection signal="body_exited" from="TutoTriggers/TriggerTutoWeaponThrow" to="TutorialController" method="hide_tutorials"]
|
||||||
[connection signal="body_entered" from="TutoTriggers/TutorialDoneArea" to="Player" method="OnTutorialDone"]
|
[connection signal="body_entered" from="TutoTriggers/TriggerTutoEnjoy" to="TutorialController" method="_on_tuto_enjoy_body_entered"]
|
||||||
|
[connection signal="body_exited" from="TutoTriggers/TriggerTutoEnjoy" to="TutorialController" method="hide_tutorials"]
|
||||||
[connection signal="body_entered" from="TutoTriggers/TutorialDoneArea" to="TutorialController" method="_on_tuto_done_area_body_entered"]
|
[connection signal="body_entered" from="TutoTriggers/TutorialDoneArea" to="TutorialController" method="_on_tuto_done_area_body_entered"]
|
||||||
|
[connection signal="body_entered" from="TutoTriggers/TutorialDoneArea" to="Player" method="OnTutorialDone"]
|
||||||
[connection signal="body_exited" from="TutoTriggers/TutorialDoneArea" to="TutorialController" method="hide_tutorials"]
|
[connection signal="body_exited" from="TutoTriggers/TutorialDoneArea" to="TutorialController" method="hide_tutorials"]
|
||||||
[connection signal="body_entered" from="TutoTriggers/WeaponRetrieved" to="PlacedTutorialWeapon" method="_on_weapon_retrieved_body_entered"]
|
|
||||||
[connection signal="body_entered" from="TutoTriggers/WeaponRetrieved" to="TutorialController" method="_on_weapon_retrieved_body_entered"]
|
[connection signal="body_entered" from="TutoTriggers/WeaponRetrieved" to="TutorialController" method="_on_weapon_retrieved_body_entered"]
|
||||||
[connection signal="timeout" from="TutorialController/WaitToShowBlockingTuto" to="TutorialController" method="_show_weapon_tutorial"]
|
[connection signal="body_entered" from="TutoTriggers/WeaponRetrieved" to="PlacedTutorialWeapon" method="_on_weapon_retrieved_body_entered"]
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
[gd_scene load_steps=17 format=3 uid="uid://vm22i5sv3p3s"]
|
[gd_scene load_steps=19 format=3 uid="uid://vm22i5sv3p3s"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://c6k5nnpbypshi" path="res://addons/maaacks_game_template/base/scenes/menus/main_menu/main_menu.tscn" id="1_my8ii"]
|
[ext_resource type="PackedScene" uid="uid://c6k5nnpbypshi" path="res://addons/maaacks_game_template/base/scenes/menus/main_menu/main_menu.tscn" id="1_my8ii"]
|
||||||
[ext_resource type="Script" uid="uid://c0ntfmiuw4ttg" path="res://menus/scenes/menus/main_menu/main_menu_with_animations.gd" id="2_nyjay"]
|
[ext_resource type="Script" uid="uid://c0ntfmiuw4ttg" path="res://menus/scenes/menus/main_menu/main_menu_with_animations.gd" id="2_nyjay"]
|
||||||
[ext_resource type="AudioStream" uid="uid://f8cvr5s041ej" path="res://assets/audio/ambiance/637083__nox_sound__ambiance_nature_night_cricket_calm_loop_stereo.wav" id="3_tvvjd"]
|
[ext_resource type="AudioStream" uid="uid://f8cvr5s041ej" path="res://assets/audio/ambiance/637083__nox_sound__ambiance_nature_night_cricket_calm_loop_stereo.wav" id="3_tvvjd"]
|
||||||
|
[ext_resource type="Resource" uid="uid://c2hpxkcujyc13" path="res://systems/inputs/menu_mode/menu_mode.tres" id="3_ytpwg"]
|
||||||
|
[ext_resource type="Resource" uid="uid://ck43v3q5ype3f" path="res://systems/inputs/menu_mode/back.tres" id="4_8i6b8"]
|
||||||
|
|
||||||
[sub_resource type="Animation" id="1"]
|
[sub_resource type="Animation" id="1"]
|
||||||
resource_name = "Intro"
|
resource_name = "Intro"
|
||||||
@@ -352,6 +354,8 @@ graph_offset = Vector2(-180.277, 49)
|
|||||||
script = ExtResource("2_nyjay")
|
script = ExtResource("2_nyjay")
|
||||||
level_select_packed_scene = null
|
level_select_packed_scene = null
|
||||||
game_scene_path = "uid://dmkw8cmalm5k"
|
game_scene_path = "uid://dmkw8cmalm5k"
|
||||||
|
menu_context = ExtResource("3_ytpwg")
|
||||||
|
back_action = ExtResource("4_8i6b8")
|
||||||
|
|
||||||
[node name="MenuAnimationPlayer" type="AnimationPlayer" parent="." index="1"]
|
[node name="MenuAnimationPlayer" type="AnimationPlayer" parent="." index="1"]
|
||||||
libraries = {
|
libraries = {
|
||||||
|
|||||||
@@ -33,20 +33,38 @@ alignment = 1
|
|||||||
|
|
||||||
[node name="LookSensitivityControl" parent="VBoxContainer/MarginContainer/VBoxContainer" instance=ExtResource("2_iyvrj")]
|
[node name="LookSensitivityControl" parent="VBoxContainer/MarginContainer/VBoxContainer" instance=ExtResource("2_iyvrj")]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
option_name = "Look Sensitivity"
|
option_name = "Joystick Sensitivity"
|
||||||
option_section = 1
|
option_section = 1
|
||||||
key = "LookSensitivity"
|
key = "LookSensitivity"
|
||||||
section = "InputSettings"
|
section = "InputSettings"
|
||||||
|
|
||||||
[node name="OptionLabel" parent="VBoxContainer/MarginContainer/VBoxContainer/LookSensitivityControl" index="0"]
|
[node name="OptionLabel" parent="VBoxContainer/MarginContainer/VBoxContainer/LookSensitivityControl" index="0"]
|
||||||
text = "Look Sensitivity :"
|
text = "Joystick Sensitivity :"
|
||||||
|
|
||||||
[node name="HSlider" parent="VBoxContainer/MarginContainer/VBoxContainer/LookSensitivityControl" index="1"]
|
[node name="HSlider" parent="VBoxContainer/MarginContainer/VBoxContainer/LookSensitivityControl" index="1"]
|
||||||
min_value = 0.2
|
min_value = 0.2
|
||||||
max_value = 2.0
|
max_value = 2.0
|
||||||
step = 0.2
|
step = 0.2
|
||||||
|
value = 2.0
|
||||||
tick_count = 10
|
tick_count = 10
|
||||||
|
|
||||||
|
[node name="MouseSensitivityControl" parent="VBoxContainer/MarginContainer/VBoxContainer" instance=ExtResource("2_iyvrj")]
|
||||||
|
layout_mode = 2
|
||||||
|
option_name = "Mouse Sensitivity"
|
||||||
|
option_section = 1
|
||||||
|
key = "MouseSensitivity"
|
||||||
|
section = "InputSettings"
|
||||||
|
|
||||||
|
[node name="OptionLabel" parent="VBoxContainer/MarginContainer/VBoxContainer/MouseSensitivityControl" index="0"]
|
||||||
|
text = "Mouse Sensitivity :"
|
||||||
|
|
||||||
|
[node name="HSlider" parent="VBoxContainer/MarginContainer/VBoxContainer/MouseSensitivityControl" index="1"]
|
||||||
|
min_value = 1.0
|
||||||
|
max_value = 20.0
|
||||||
|
step = 1.0
|
||||||
|
value = 5.0
|
||||||
|
tick_count = 20
|
||||||
|
|
||||||
[node name="HeadBobbingControl" parent="VBoxContainer/MarginContainer/VBoxContainer" instance=ExtResource("2_iyvrj")]
|
[node name="HeadBobbingControl" parent="VBoxContainer/MarginContainer/VBoxContainer" instance=ExtResource("2_iyvrj")]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
option_name = "Head Bobbing while walking"
|
option_name = "Head Bobbing while walking"
|
||||||
@@ -76,5 +94,6 @@ step = 0.1
|
|||||||
tick_count = 10
|
tick_count = 10
|
||||||
|
|
||||||
[editable path="VBoxContainer/MarginContainer/VBoxContainer/LookSensitivityControl"]
|
[editable path="VBoxContainer/MarginContainer/VBoxContainer/LookSensitivityControl"]
|
||||||
|
[editable path="VBoxContainer/MarginContainer/VBoxContainer/MouseSensitivityControl"]
|
||||||
[editable path="VBoxContainer/MarginContainer/VBoxContainer/HeadBobbingControl"]
|
[editable path="VBoxContainer/MarginContainer/VBoxContainer/HeadBobbingControl"]
|
||||||
[editable path="VBoxContainer/MarginContainer/VBoxContainer/FOVChangeControl"]
|
[editable path="VBoxContainer/MarginContainer/VBoxContainer/FOVChangeControl"]
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
[gd_scene load_steps=4 format=3 uid="uid://foajscu2dqkk"]
|
[gd_scene load_steps=5 format=3 uid="uid://foajscu2dqkk"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://vh1ucj2rfbby" path="res://addons/maaacks_game_template/base/scenes/menus/options_menu/mini_options_menu.tscn" id="1_gcivb"]
|
[ext_resource type="PackedScene" uid="uid://vh1ucj2rfbby" path="res://addons/maaacks_game_template/base/scenes/menus/options_menu/mini_options_menu.tscn" id="1_gcivb"]
|
||||||
[ext_resource type="Script" uid="uid://ceg0gjjapg77k" path="res://menus/scenes/menus/options_menu/mini_options_menu_with_reset.gd" id="2_oof6u"]
|
[ext_resource type="Script" uid="uid://ceg0gjjapg77k" path="res://menus/scenes/menus/options_menu/mini_options_menu_with_reset.gd" id="2_oof6u"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dfjkn4yl3q1am" path="res://menus/scenes/menus/options_menu/game/reset_game_control/reset_game_control.tscn" id="3_gss4d"]
|
[ext_resource type="PackedScene" uid="uid://dfjkn4yl3q1am" path="res://menus/scenes/menus/options_menu/game/reset_game_control/reset_game_control.tscn" id="3_gss4d"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ceehkbh6emrdm" path="res://menus/scenes/menus/options_menu/input/input_extras_menu.tscn" id="4_grbel"]
|
||||||
|
|
||||||
[node name="MiniOptionsMenu" instance=ExtResource("1_gcivb")]
|
[node name="MiniOptionsMenu" instance=ExtResource("1_gcivb")]
|
||||||
script = ExtResource("2_oof6u")
|
script = ExtResource("2_oof6u")
|
||||||
|
|
||||||
[node name="ResetGameControl" parent="." index="3" instance=ExtResource("3_gss4d")]
|
[node name="Inputs" parent="." index="0" instance=ExtResource("4_grbel")]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="ResetGameControl" parent="." index="4" instance=ExtResource("3_gss4d")]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|
||||||
[connection signal="reset_confirmed" from="ResetGameControl" to="." method="_on_reset_game_control_reset_confirmed"]
|
[connection signal="reset_confirmed" from="ResetGameControl" to="." method="_on_reset_game_control_reset_confirmed"]
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
[gd_scene load_steps=3 format=3 uid="uid://dim045la3mijk"]
|
[gd_scene load_steps=4 format=3 uid="uid://dim045la3mijk"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://cikf3o5omnunl" path="res://addons/maaacks_game_template/base/scenes/overlaid_menu/menus/mini_options_overlaid_menu.tscn" id="1_5piya"]
|
[ext_resource type="PackedScene" uid="uid://cikf3o5omnunl" path="res://addons/maaacks_game_template/base/scenes/overlaid_menu/menus/mini_options_overlaid_menu.tscn" id="1_5piya"]
|
||||||
[ext_resource type="PackedScene" uid="uid://foajscu2dqkk" path="res://menus/scenes/menus/options_menu/mini_options_menu_with_reset.tscn" id="2_3u5po"]
|
[ext_resource type="PackedScene" uid="uid://foajscu2dqkk" path="res://menus/scenes/menus/options_menu/mini_options_menu_with_reset.tscn" id="2_3u5po"]
|
||||||
|
[ext_resource type="Resource" uid="uid://ck43v3q5ype3f" path="res://systems/inputs/menu_mode/back.tres" id="3_i7tty"]
|
||||||
|
|
||||||
[node name="MiniOptionsOverlaidMenu" instance=ExtResource("1_5piya")]
|
[node name="MiniOptionsOverlaidMenu" instance=ExtResource("1_5piya")]
|
||||||
menu_scene = ExtResource("2_3u5po")
|
menu_scene = ExtResource("2_3u5po")
|
||||||
|
back_action = ExtResource("3_i7tty")
|
||||||
|
|||||||
@@ -1,15 +1,18 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://ccqajqchiw4xu"]
|
[gd_scene load_steps=6 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="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="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="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"]
|
[ext_resource type="Resource" uid="uid://c2hpxkcujyc13" path="res://systems/inputs/menu_mode/menu_mode.tres" id="4_nfx08"]
|
||||||
|
[ext_resource type="Resource" uid="uid://ck43v3q5ype3f" path="res://systems/inputs/menu_mode/back.tres" id="5_su1bt"]
|
||||||
|
|
||||||
[node name="PauseMenu" instance=ExtResource("1_0paax")]
|
[node name="PauseMenu" instance=ExtResource("1_0paax")]
|
||||||
|
top_level = true
|
||||||
script = ExtResource("2_ek1hy")
|
script = ExtResource("2_ek1hy")
|
||||||
options_packed_scene = ExtResource("3_e0t2r")
|
options_packed_scene = ExtResource("3_e0t2r")
|
||||||
main_menu_scene = "res://menus/scenes/menus/main_menu/main_menu_with_animations.tscn"
|
main_menu_scene = "res://menus/scenes/menus/main_menu/main_menu_with_animations.tscn"
|
||||||
menu_context = ExtResource("4_nfx08")
|
menu_context = ExtResource("4_nfx08")
|
||||||
|
back_action = ExtResource("5_su1bt")
|
||||||
|
|
||||||
[connection signal="tree_entered" from="." to="." method="on_enter_tree"]
|
[connection signal="tree_entered" from="." to="." method="on_enter_tree"]
|
||||||
[connection signal="tree_exited" from="." to="." method="on_exit_tree"]
|
[connection signal="tree_exited" from="." to="." method="on_exit_tree"]
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ static func get_level_state(level_state_key : String) -> LevelState:
|
|||||||
return new_level_state
|
return new_level_state
|
||||||
|
|
||||||
static func has_game_state() -> bool:
|
static func has_game_state() -> bool:
|
||||||
return false
|
|
||||||
return GlobalState.has_state(STATE_NAME)
|
return GlobalState.has_state(STATE_NAME)
|
||||||
|
|
||||||
static func get_game_state() -> GameState:
|
static func get_game_state() -> GameState:
|
||||||
|
|||||||
@@ -1,32 +1,34 @@
|
|||||||
[gd_scene load_steps=45 format=3 uid="uid://bei4nhkf8lwdo"]
|
[gd_scene load_steps=50 format=3 uid="uid://bei4nhkf8lwdo"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://bbbrf5ckydfna" path="res://player_controller/Scripts/PlayerController.cs" id="1_poq2x"]
|
[ext_resource type="Script" uid="uid://bbbrf5ckydfna" path="res://player_controller/Scripts/PlayerController.cs" id="1_poq2x"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cf3rrgr1imvv4" path="res://scenes/path/path.tscn" id="2_6lejt"]
|
||||||
[ext_resource type="Resource" uid="uid://bl5crtu1gkrtr" path="res://systems/inputs/base_mode/base_mode.tres" id="3_cresl"]
|
[ext_resource type="Resource" uid="uid://bl5crtu1gkrtr" path="res://systems/inputs/base_mode/base_mode.tres" id="3_cresl"]
|
||||||
[ext_resource type="Resource" uid="uid://cpdaw41ah5gic" path="res://systems/inputs/base_mode/rotate_y.tres" id="4_rxwoh"]
|
[ext_resource type="Resource" uid="uid://cpdaw41ah5gic" path="res://systems/inputs/base_mode/rotate_y.tres" id="4_rxwoh"]
|
||||||
[ext_resource type="Resource" uid="uid://ccrb5xsnphc8" path="res://systems/inputs/base_mode/rotate_floorplane.tres" id="5_4u7i3"]
|
[ext_resource type="Resource" uid="uid://ccrb5xsnphc8" path="res://systems/inputs/base_mode/rotate_floorplane.tres" id="5_4u7i3"]
|
||||||
[ext_resource type="Script" uid="uid://dv7v1ywmbvvcd" path="res://player_controller/Scripts/HealthSystem.cs" id="5_umw0l"]
|
[ext_resource type="Resource" uid="uid://f3vs6l4m623s" path="res://systems/inputs/base_mode/move_left.tres" id="5_q14ux"]
|
||||||
[ext_resource type="Script" uid="uid://vuq8rjq3vegn" path="res://player_controller/Scripts/Stamina.cs" id="6_lxtc4"]
|
[ext_resource type="Resource" uid="uid://t612lts1wi1s" path="res://systems/inputs/base_mode/move_right.tres" id="6_q7bng"]
|
||||||
[ext_resource type="Script" uid="uid://cwbvxlfvmocc1" path="res://player_controller/Scripts/StairsSystem.cs" id="7_bmt5a"]
|
[ext_resource type="Script" uid="uid://cwbvxlfvmocc1" path="res://player_controller/Scripts/StairsSystem.cs" id="7_bmt5a"]
|
||||||
|
[ext_resource type="Resource" uid="uid://brswsknpgwal2" path="res://systems/inputs/base_mode/move_front.tres" id="7_m8gvy"]
|
||||||
|
[ext_resource type="Resource" uid="uid://s1l0n1iitc6m" path="res://systems/inputs/base_mode/move_back.tres" id="8_jb43f"]
|
||||||
[ext_resource type="Resource" uid="uid://j1o5ud0plk4" path="res://systems/inputs/base_mode/aim_release.tres" id="8_lhb11"]
|
[ext_resource type="Resource" uid="uid://j1o5ud0plk4" path="res://systems/inputs/base_mode/aim_release.tres" id="8_lhb11"]
|
||||||
[ext_resource type="Script" uid="uid://dd1yrt7eiiyf4" path="res://player_controller/Scripts/CapsuleCollider.cs" id="8_lmtjd"]
|
|
||||||
[ext_resource type="Resource" uid="uid://c3e0ivgaxrsyb" path="res://systems/inputs/base_mode/aim_down.tres" id="8_obsfv"]
|
[ext_resource type="Resource" uid="uid://c3e0ivgaxrsyb" path="res://systems/inputs/base_mode/aim_down.tres" id="8_obsfv"]
|
||||||
[ext_resource type="PackedScene" uid="uid://wq1okogkhc5l" path="res://systems/mantle/mantle_system.tscn" id="8_qu4wy"]
|
[ext_resource type="PackedScene" uid="uid://wq1okogkhc5l" path="res://systems/mantle/mantle_system.tscn" id="8_qu4wy"]
|
||||||
[ext_resource type="Resource" uid="uid://7wm8ywvujwf" path="res://systems/inputs/base_mode/aim_cancel.tres" id="9_5p2qc"]
|
|
||||||
[ext_resource type="Resource" uid="uid://bebstkm608wxx" path="res://systems/inputs/base_mode/aim_pressed.tres" id="9_nob5r"]
|
[ext_resource type="Resource" uid="uid://bebstkm608wxx" path="res://systems/inputs/base_mode/aim_pressed.tres" id="9_nob5r"]
|
||||||
[ext_resource type="Resource" uid="uid://bdit2jy5gbpts" path="res://systems/inputs/base_mode/jump.tres" id="10_4u7i3"]
|
[ext_resource type="Resource" uid="uid://bdit2jy5gbpts" path="res://systems/inputs/base_mode/jump.tres" id="10_4u7i3"]
|
||||||
[ext_resource type="Script" uid="uid://g8idirw62qe0" path="res://player_controller/Scripts/Bobbing.cs" id="10_7wk1w"]
|
[ext_resource type="Script" uid="uid://g8idirw62qe0" path="res://player_controller/Scripts/Bobbing.cs" id="10_7wk1w"]
|
||||||
[ext_resource type="Resource" uid="uid://b334rau1yxmm7" path="res://systems/inputs/base_mode/empower_down.tres" id="10_nodcl"]
|
|
||||||
[ext_resource type="Resource" uid="uid://b5gx3q8nvu72e" path="res://systems/inputs/base_mode/hit.tres" id="11_cresl"]
|
[ext_resource type="Resource" uid="uid://b5gx3q8nvu72e" path="res://systems/inputs/base_mode/hit.tres" id="11_cresl"]
|
||||||
[ext_resource type="Resource" uid="uid://bbce5wfwxpns1" path="res://systems/inputs/base_mode/empower_release.tres" id="11_ruloh"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://0ysqmqphq6mq" path="res://systems/head/head_system.tscn" id="11_rxwoh"]
|
[ext_resource type="PackedScene" uid="uid://0ysqmqphq6mq" path="res://systems/head/head_system.tscn" id="11_rxwoh"]
|
||||||
[ext_resource type="Resource" uid="uid://d2r0ur8k3cuu3" path="res://systems/inputs/base_mode/dash.tres" id="12_34snm"]
|
[ext_resource type="Resource" uid="uid://d2r0ur8k3cuu3" path="res://systems/inputs/base_mode/dash.tres" id="12_34snm"]
|
||||||
[ext_resource type="Script" uid="uid://b6k73aj5povgv" path="res://player_controller/Scripts/FieldOfView.cs" id="12_m2mxi"]
|
[ext_resource type="Script" uid="uid://b6k73aj5povgv" path="res://player_controller/Scripts/FieldOfView.cs" id="12_m2mxi"]
|
||||||
[ext_resource type="Resource" uid="uid://55b0dsvioj08" path="res://systems/inputs/base_mode/jump_pressed.tres" id="13_nob5r"]
|
[ext_resource type="Resource" uid="uid://55b0dsvioj08" path="res://systems/inputs/base_mode/jump_pressed.tres" id="13_nob5r"]
|
||||||
[ext_resource type="Shape3D" uid="uid://keseacdcooot" path="res://player_controller/resources/PlayerShape.tres" id="13_r7i3q"]
|
[ext_resource type="Shape3D" uid="uid://keseacdcooot" path="res://player_controller/resources/PlayerShape.tres" id="13_r7i3q"]
|
||||||
[ext_resource type="Resource" uid="uid://bw5k2gsv3jqcv" path="res://systems/inputs/base_mode/throw.tres" id="16_nob5r"]
|
|
||||||
[ext_resource type="Script" uid="uid://b5nk6ntlps3x0" path="res://systems/inputs/input_system.gd" id="16_v31n3"]
|
[ext_resource type="Script" uid="uid://b5nk6ntlps3x0" path="res://systems/inputs/input_system.gd" id="16_v31n3"]
|
||||||
|
[ext_resource type="Resource" uid="uid://b334rau1yxmm7" path="res://systems/inputs/base_mode/slide_released.tres" id="17_6lejt"]
|
||||||
[ext_resource type="Resource" uid="uid://htqvokm8mufq" path="res://systems/inputs/base_mode/move.tres" id="17_h6vvl"]
|
[ext_resource type="Resource" uid="uid://htqvokm8mufq" path="res://systems/inputs/base_mode/move.tres" id="17_h6vvl"]
|
||||||
[ext_resource type="PackedScene" uid="uid://cqduhd4opgwvm" path="res://systems/dash/dash_system.tscn" id="18_q5h8a"]
|
[ext_resource type="PackedScene" uid="uid://cqduhd4opgwvm" path="res://systems/dash/dash_system.tscn" id="18_q5h8a"]
|
||||||
|
[ext_resource type="Resource" uid="uid://bbce5wfwxpns1" path="res://systems/inputs/base_mode/slide_pressed.tres" id="18_q14ux"]
|
||||||
|
[ext_resource type="Resource" uid="uid://spo3pbqjx0eb" path="res://systems/inputs/base_mode/parry.tres" id="18_ruloh"]
|
||||||
|
[ext_resource type="Resource" uid="uid://dxy0071ic1wdj" path="res://systems/inputs/base_mode/slam.tres" id="20_nob5r"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dbe5f0p6lvqtr" path="res://systems/tween_queue/tween_queue_system.tscn" id="22_rpwev"]
|
[ext_resource type="PackedScene" uid="uid://dbe5f0p6lvqtr" path="res://systems/tween_queue/tween_queue_system.tscn" id="22_rpwev"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bcwkugn6v3oy7" path="res://addons/godot_state_charts/utilities/state_chart_debugger.tscn" id="24_q5h8a"]
|
[ext_resource type="PackedScene" uid="uid://bcwkugn6v3oy7" path="res://addons/godot_state_charts/utilities/state_chart_debugger.tscn" id="24_q5h8a"]
|
||||||
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="25_wv70j"]
|
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="25_wv70j"]
|
||||||
@@ -44,6 +46,9 @@
|
|||||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_xc2g5"]
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_xc2g5"]
|
||||||
height = 1.7
|
height = 1.7
|
||||||
|
|
||||||
|
[sub_resource type="SphereShape3D" id="SphereShape3D_6lejt"]
|
||||||
|
radius = 0.45
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_nodcl"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_nodcl"]
|
||||||
transparency = 1
|
transparency = 1
|
||||||
albedo_color = Color(0, 0.627451, 0.6313726, 0.49019608)
|
albedo_color = Color(0, 0.627451, 0.6313726, 0.49019608)
|
||||||
@@ -54,73 +59,110 @@ top_radius = 0.2
|
|||||||
bottom_radius = 0.2
|
bottom_radius = 0.2
|
||||||
height = 1.0
|
height = 1.0
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_6lejt"]
|
||||||
|
radius = 1.0
|
||||||
|
height = 3.5
|
||||||
|
|
||||||
|
[sub_resource type="SphereShape3D" id="SphereShape3D_nob5r"]
|
||||||
|
radius = 0.4
|
||||||
|
|
||||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_2q0ik"]
|
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_2q0ik"]
|
||||||
blend_mode = 1
|
blend_mode = 1
|
||||||
|
|
||||||
[node name="Player" type="CharacterBody3D"]
|
[node name="Player" type="CharacterBody3D"]
|
||||||
|
collision_mask = 272
|
||||||
script = ExtResource("1_poq2x")
|
script = ExtResource("1_poq2x")
|
||||||
WalkSpeed = 7.5
|
WalkSpeed = 7.5
|
||||||
AccelerationAir = 2.0
|
AccelerationFloor = 4.0
|
||||||
DecelerationAir = 0.1
|
DecelerationFloor = 3.0
|
||||||
Weight = 5.0
|
AccelerationAir = 0.8
|
||||||
MantleTime = 0.2
|
DecelerationAir = 0.02
|
||||||
SimpleJumpStartVelocity = 8.0
|
Weight = 4.0
|
||||||
|
MantlePath = ExtResource("2_6lejt")
|
||||||
|
MantleDashStrength = 25.0
|
||||||
|
MantleJumpStartVelocity = 15.0
|
||||||
|
CoyoteTime = 0.3
|
||||||
|
InputBufferFrames = 5
|
||||||
|
SimpleJumpStartVelocity = 6.0
|
||||||
SimpleJumpHangTimeInFrames = 1
|
SimpleJumpHangTimeInFrames = 1
|
||||||
SimpleJumpGravityLesseningFactor = 2.5
|
SimpleJumpGravityLesseningFactor = 2.0
|
||||||
DoubleJumpStartVelocity = 15.0
|
|
||||||
DoubleJumpHangTimeInFrames = 3
|
DoubleJumpHangTimeInFrames = 3
|
||||||
DoubleJumpGravityLesseningFactor = 1.5
|
DoubleJumpGravityLesseningFactor = 1.5
|
||||||
MegaJumpStartVelocity = 30.0
|
|
||||||
MegaJumpHangTimeInFrames = 12
|
|
||||||
MegaJumpGravityLesseningFactor = 1.2
|
|
||||||
WallJumpStartVelocity = 8.0
|
WallJumpStartVelocity = 8.0
|
||||||
MaxNumberOfEmpoweredActions = 3
|
MaxNumberOfEmpoweredActions = 3
|
||||||
SimpleDashStrength = 15.0
|
SimpleDashStrength = 18.0
|
||||||
PoweredDashStrength = 30.0
|
SimpleDashTime = 0.2
|
||||||
AimedDashTime = 0.2
|
AimedDashTime = 0.2
|
||||||
PostDashSpeed = 30.0
|
PostDashSpeed = 30.0
|
||||||
|
SlamSpeed = 80.0
|
||||||
|
FlatGroundSlideSpeedLossRate = 0.996
|
||||||
|
GroundSlideJumpMultiplier = 0.1
|
||||||
|
GroundSlideJumpSpeedFactor = 0.1
|
||||||
|
GroundSlideDownSlopeAcceleration = 0.2
|
||||||
|
GroundSlideDownSlopeMaxSpeed = 30.0
|
||||||
|
AirGlideVSpeed = 4.0
|
||||||
|
AccelerationAirGlide = 0.4
|
||||||
|
AirGlideVerticalAcceleration = 8.0
|
||||||
|
AirGlideJumpMultiplier = 0.1
|
||||||
|
AirGlideJumpSpeedFactor = 0.05
|
||||||
WallHugGravityLesseningFactor = 15.0
|
WallHugGravityLesseningFactor = 15.0
|
||||||
WallHugDownwardMaxSpeed = 8.0
|
WallHugDownwardMaxSpeed = 4.0
|
||||||
WallHugHorizontalDeceleration = 0.5
|
WallHugHorizontalDeceleration = 1.0
|
||||||
|
|
||||||
|
[node name="WallRunSnapper" type="RayCast3D" parent="."]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
transform = Transform3D(0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994, 0, 0, 0)
|
||||||
|
target_position = Vector3(0, 0, -5)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
[node name="InputController" type="Node3D" parent="."]
|
[node name="InputController" type="Node3D" parent="."]
|
||||||
script = ExtResource("16_v31n3")
|
script = ExtResource("16_v31n3")
|
||||||
base_mode = ExtResource("3_cresl")
|
base_mode = ExtResource("3_cresl")
|
||||||
move = ExtResource("17_h6vvl")
|
move = ExtResource("17_h6vvl")
|
||||||
rotate_y = ExtResource("4_rxwoh")
|
move_left = ExtResource("5_q14ux")
|
||||||
|
move_right = ExtResource("6_q7bng")
|
||||||
|
move_front = ExtResource("7_m8gvy")
|
||||||
|
move_back = ExtResource("8_jb43f")
|
||||||
|
rotate_vertical = ExtResource("4_rxwoh")
|
||||||
rotate_floorplane = ExtResource("5_4u7i3")
|
rotate_floorplane = ExtResource("5_4u7i3")
|
||||||
aim_down = ExtResource("8_obsfv")
|
aim_down = ExtResource("8_obsfv")
|
||||||
aim_pressed = ExtResource("9_nob5r")
|
aim_pressed = ExtResource("9_nob5r")
|
||||||
aim_released = ExtResource("8_lhb11")
|
aim_released = ExtResource("8_lhb11")
|
||||||
jump = ExtResource("10_4u7i3")
|
jump = ExtResource("10_4u7i3")
|
||||||
jump_pressed = ExtResource("13_nob5r")
|
jump_pressed = ExtResource("13_nob5r")
|
||||||
empower_down = ExtResource("10_nodcl")
|
slide_pressed = ExtResource("18_q14ux")
|
||||||
empower_released = ExtResource("11_ruloh")
|
slide_released = ExtResource("17_6lejt")
|
||||||
aim_canceled = ExtResource("9_5p2qc")
|
|
||||||
hit = ExtResource("11_cresl")
|
hit = ExtResource("11_cresl")
|
||||||
|
parry = ExtResource("18_ruloh")
|
||||||
dash = ExtResource("12_34snm")
|
dash = ExtResource("12_34snm")
|
||||||
throw = ExtResource("16_nob5r")
|
slam = ExtResource("20_nob5r")
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
|
||||||
visible = false
|
visible = false
|
||||||
mesh = SubResource("CapsuleMesh_xc2g5")
|
mesh = SubResource("CapsuleMesh_xc2g5")
|
||||||
|
|
||||||
[node name="CapsuleCollider" type="CollisionShape3D" parent="."]
|
[node name="StandingCollider" type="CollisionShape3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
|
||||||
shape = ExtResource("13_r7i3q")
|
shape = ExtResource("13_r7i3q")
|
||||||
debug_color = Color(0, 0.6, 0.701961, 0.341176)
|
debug_color = Color(0, 0.6, 0.701961, 0.341176)
|
||||||
script = ExtResource("8_lmtjd")
|
|
||||||
CapsuleDefaultHeight = 1.7
|
[node name="SlideCollider" type="CollisionShape3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.45, 0)
|
||||||
|
shape = SubResource("SphereShape3D_6lejt")
|
||||||
|
disabled = true
|
||||||
|
debug_color = Color(0, 0.6, 0.701961, 0.341176)
|
||||||
|
|
||||||
[node name="HeadSystem" parent="." instance=ExtResource("11_rxwoh")]
|
[node name="HeadSystem" parent="." instance=ExtResource("11_rxwoh")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
|
||||||
|
CameraInclineAcceleration = 20.0
|
||||||
|
GroundedCameraIncline = 3.0
|
||||||
|
SlidingJitterAmplitude = 0.2
|
||||||
|
|
||||||
[node name="HealthSystem" type="Node3D" parent="."]
|
[node name="MantleSystem" parent="HeadSystem" instance=ExtResource("8_qu4wy")]
|
||||||
script = ExtResource("5_umw0l")
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.6, 0)
|
||||||
|
MantleEndLocationDistanceFromWall = 0.3
|
||||||
[node name="Stamina" type="Node3D" parent="."]
|
MantleHeightCastStart = 2.5
|
||||||
script = ExtResource("6_lxtc4")
|
|
||||||
|
|
||||||
[node name="StairsSystem" type="Node3D" parent="."]
|
[node name="StairsSystem" type="Node3D" parent="."]
|
||||||
script = ExtResource("7_bmt5a")
|
script = ExtResource("7_bmt5a")
|
||||||
@@ -128,13 +170,11 @@ script = ExtResource("7_bmt5a")
|
|||||||
[node name="StairsAheadRayCast3D" type="RayCast3D" parent="."]
|
[node name="StairsAheadRayCast3D" type="RayCast3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -0.828)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -0.828)
|
||||||
target_position = Vector3(0, -0.55, 0)
|
target_position = Vector3(0, -0.55, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
[node name="StairsBelowRayCast3D" type="RayCast3D" parent="."]
|
[node name="StairsBelowRayCast3D" type="RayCast3D" parent="."]
|
||||||
target_position = Vector3(0, -0.75, 0)
|
target_position = Vector3(0, -0.75, 0)
|
||||||
|
collision_mask = 256
|
||||||
[node name="MantleSystem" parent="." instance=ExtResource("8_qu4wy")]
|
|
||||||
MantleEndLocationDistanceFromWall = 0.3
|
|
||||||
MantleHeightCastStart = 2.0
|
|
||||||
|
|
||||||
[node name="Bobbing" type="Node3D" parent="."]
|
[node name="Bobbing" type="Node3D" parent="."]
|
||||||
script = ExtResource("10_7wk1w")
|
script = ExtResource("10_7wk1w")
|
||||||
@@ -143,44 +183,68 @@ script = ExtResource("10_7wk1w")
|
|||||||
script = ExtResource("12_m2mxi")
|
script = ExtResource("12_m2mxi")
|
||||||
|
|
||||||
[node name="HeadCollisionDetectors" type="Node3D" parent="."]
|
[node name="HeadCollisionDetectors" type="Node3D" parent="."]
|
||||||
|
visible = false
|
||||||
|
|
||||||
[node name="HeadCollisionDetector0" type="RayCast3D" parent="HeadCollisionDetectors"]
|
[node name="HeadCollisionDetector0" type="RayCast3D" parent="HeadCollisionDetectors"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, -0.210707)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, -0.210707)
|
||||||
target_position = Vector3(0, 1, 0)
|
target_position = Vector3(0, 1, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
[node name="HeadCollisionDetector1" type="RayCast3D" parent="HeadCollisionDetectors"]
|
[node name="HeadCollisionDetector1" type="RayCast3D" parent="HeadCollisionDetectors"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, 0.23061)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, 0.23061)
|
||||||
target_position = Vector3(0, 1, 0)
|
target_position = Vector3(0, 1, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
[node name="HeadCollisionDetector2" type="RayCast3D" parent="HeadCollisionDetectors"]
|
[node name="HeadCollisionDetector2" type="RayCast3D" parent="HeadCollisionDetectors"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.296, 1.4, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.296, 1.4, 0)
|
||||||
target_position = Vector3(0, 1, 0)
|
target_position = Vector3(0, 1, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
[node name="HeadCollisionDetector3" type="RayCast3D" parent="HeadCollisionDetectors"]
|
[node name="HeadCollisionDetector3" type="RayCast3D" parent="HeadCollisionDetectors"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.296, 1.4, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.296, 1.4, 0)
|
||||||
target_position = Vector3(0, 1, 0)
|
target_position = Vector3(0, 1, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
[node name="TweenQueueSystem" parent="." instance=ExtResource("22_rpwev")]
|
[node name="TweenQueueSystem" parent="." instance=ExtResource("22_rpwev")]
|
||||||
|
|
||||||
[node name="WallHugSystem" type="Node3D" parent="."]
|
[node name="WallHugSystem" type="Node3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
||||||
script = ExtResource("27_n7qhm")
|
script = ExtResource("27_n7qhm")
|
||||||
|
|
||||||
[node name="back" type="RayCast3D" parent="WallHugSystem"]
|
[node name="back" type="RayCast3D" parent="WallHugSystem"]
|
||||||
target_position = Vector3(0, 0, 1)
|
target_position = Vector3(0, 0, 1)
|
||||||
collision_mask = 2
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="back2" type="RayCast3D" parent="WallHugSystem"]
|
||||||
|
transform = Transform3D(0.70710677, 0, 0.70710677, 0, 1, 0, -0.70710677, 0, 0.70710677, 0, 0, 0)
|
||||||
|
target_position = Vector3(0, 0, 1)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
[node name="front" type="RayCast3D" parent="WallHugSystem"]
|
[node name="front" type="RayCast3D" parent="WallHugSystem"]
|
||||||
target_position = Vector3(0, 0, -1)
|
target_position = Vector3(0, 0, -1)
|
||||||
collision_mask = 2
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="front2" type="RayCast3D" parent="WallHugSystem"]
|
||||||
|
transform = Transform3D(0.70710677, 0, 0.70710677, 0, 1, 0, -0.70710677, 0, 0.70710677, 0, 0, 0)
|
||||||
|
target_position = Vector3(0, 0, -1)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
[node name="right" type="RayCast3D" parent="WallHugSystem"]
|
[node name="right" type="RayCast3D" parent="WallHugSystem"]
|
||||||
target_position = Vector3(1, 0, 0)
|
target_position = Vector3(1, 0, 0)
|
||||||
collision_mask = 2
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="right2" type="RayCast3D" parent="WallHugSystem"]
|
||||||
|
transform = Transform3D(0.70710677, 0, 0.70710677, 0, 1, 0, -0.70710677, 0, 0.70710677, 0, 0, 0)
|
||||||
|
target_position = Vector3(1, 0, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
[node name="left" type="RayCast3D" parent="WallHugSystem"]
|
[node name="left" type="RayCast3D" parent="WallHugSystem"]
|
||||||
target_position = Vector3(-1, 0, 0)
|
target_position = Vector3(-1, 0, 0)
|
||||||
collision_mask = 2
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="left2" type="RayCast3D" parent="WallHugSystem"]
|
||||||
|
transform = Transform3D(0.70710677, 0, 0.70710677, 0, 1, 0, -0.70710677, 0, 0.70710677, 0, 0, 0)
|
||||||
|
target_position = Vector3(-1, 0, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
[node name="DashSystem" parent="." instance=ExtResource("18_q5h8a")]
|
[node name="DashSystem" parent="." instance=ExtResource("18_q5h8a")]
|
||||||
DashSpeed = 0.2
|
DashSpeed = 0.2
|
||||||
@@ -194,12 +258,33 @@ ThrowForce = 15.0
|
|||||||
StraightThrowDuration = 0.05
|
StraightThrowDuration = 0.05
|
||||||
|
|
||||||
[node name="DashIndicator" type="Node3D" parent="."]
|
[node name="DashIndicator" type="Node3D" parent="."]
|
||||||
|
visible = false
|
||||||
|
|
||||||
[node name="DashIndicatorMesh" type="MeshInstance3D" parent="DashIndicator"]
|
[node name="DashIndicatorMesh" type="MeshInstance3D" parent="DashIndicator"]
|
||||||
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 0, -1)
|
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 0, -1)
|
||||||
mesh = SubResource("CylinderMesh_nodcl")
|
mesh = SubResource("CylinderMesh_nodcl")
|
||||||
|
|
||||||
|
[node name="GroundDetector" type="ShapeCast3D" parent="."]
|
||||||
|
shape = SubResource("CapsuleShape3D_6lejt")
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="CeilingDetector" type="ShapeCast3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
|
||||||
|
enabled = false
|
||||||
|
shape = SubResource("SphereShape3D_nob5r")
|
||||||
|
target_position = Vector3(0, 0.4, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="DirectGroundDetector" type="RayCast3D" parent="."]
|
||||||
|
target_position = Vector3(0, -2, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
[node name="DashCooldown" type="Timer" parent="."]
|
[node name="DashCooldown" type="Timer" parent="."]
|
||||||
|
wait_time = 0.8
|
||||||
|
one_shot = true
|
||||||
|
|
||||||
|
[node name="AirborneDashCooldown" type="Timer" parent="."]
|
||||||
|
wait_time = 0.5
|
||||||
one_shot = true
|
one_shot = true
|
||||||
|
|
||||||
[node name="PowerCooldown" type="Timer" parent="."]
|
[node name="PowerCooldown" type="Timer" parent="."]
|
||||||
@@ -212,64 +297,77 @@ one_shot = true
|
|||||||
ignore_time_scale = true
|
ignore_time_scale = true
|
||||||
|
|
||||||
[node name="StateChartDebugger" parent="." instance=ExtResource("24_q5h8a")]
|
[node name="StateChartDebugger" parent="." instance=ExtResource("24_q5h8a")]
|
||||||
visible = false
|
|
||||||
offset_left = 1524.0
|
offset_left = 1524.0
|
||||||
offset_top = 1.0
|
offset_top = 1.0
|
||||||
offset_right = -8.0
|
offset_right = -8.0
|
||||||
offset_bottom = 1.0
|
offset_bottom = 1.0
|
||||||
enabled = false
|
|
||||||
initial_node_to_watch = NodePath("../StateChart")
|
initial_node_to_watch = NodePath("../StateChart")
|
||||||
|
|
||||||
[node name="UI" type="CanvasLayer" parent="."]
|
[node name="UI" type="Control" parent="."]
|
||||||
script = ExtResource("30_2ghaa")
|
visible = false
|
||||||
|
layout_mode = 3
|
||||||
[node name="VBoxContainer" type="VBoxContainer" parent="UI"]
|
|
||||||
offset_right = 128.0
|
|
||||||
offset_bottom = 81.0
|
|
||||||
|
|
||||||
[node name="DashesLabel" type="Label" parent="UI/VBoxContainer"]
|
|
||||||
layout_mode = 2
|
|
||||||
text = "Dashes"
|
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="UI/VBoxContainer"]
|
|
||||||
custom_minimum_size = Vector2(0, 30)
|
|
||||||
layout_mode = 2
|
|
||||||
|
|
||||||
[node name="Dash1" type="TextureRect" parent="UI/VBoxContainer/HBoxContainer"]
|
|
||||||
layout_mode = 2
|
|
||||||
texture = ExtResource("30_h23go")
|
|
||||||
expand_mode = 2
|
|
||||||
|
|
||||||
[node name="Dash2" type="TextureRect" parent="UI/VBoxContainer/HBoxContainer"]
|
|
||||||
layout_mode = 2
|
|
||||||
texture = ExtResource("30_h23go")
|
|
||||||
expand_mode = 2
|
|
||||||
|
|
||||||
[node name="Dash3" type="TextureRect" parent="UI/VBoxContainer/HBoxContainer"]
|
|
||||||
layout_mode = 2
|
|
||||||
texture = ExtResource("30_h23go")
|
|
||||||
expand_mode = 2
|
|
||||||
|
|
||||||
[node name="DashCooldownIndicator" type="ColorRect" parent="UI"]
|
|
||||||
unique_name_in_owner = true
|
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
offset_left = 910.0
|
|
||||||
offset_top = 549.0
|
|
||||||
offset_right = -910.0
|
|
||||||
offset_bottom = -521.0
|
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
mouse_filter = 1
|
||||||
|
script = ExtResource("30_2ghaa")
|
||||||
|
|
||||||
|
[node name="MarginContainer" type="MarginContainer" parent="UI"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
mouse_filter = 2
|
||||||
|
theme_override_constants/margin_left = 50
|
||||||
|
theme_override_constants/margin_top = 50
|
||||||
|
theme_override_constants/margin_right = 50
|
||||||
|
theme_override_constants/margin_bottom = 50
|
||||||
|
|
||||||
|
[node name="VBoxContainer" type="VBoxContainer" parent="UI/MarginContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 0
|
||||||
|
size_flags_vertical = 0
|
||||||
|
|
||||||
|
[node name="DashesLabel" type="Label" parent="UI/MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Empowered actions"
|
||||||
|
|
||||||
|
[node name="HBoxContainer" type="HBoxContainer" parent="UI/MarginContainer/VBoxContainer"]
|
||||||
|
custom_minimum_size = Vector2(0, 30)
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="Dash1" type="TextureRect" parent="UI/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("30_h23go")
|
||||||
|
expand_mode = 2
|
||||||
|
|
||||||
|
[node name="Dash2" type="TextureRect" parent="UI/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("30_h23go")
|
||||||
|
expand_mode = 2
|
||||||
|
|
||||||
|
[node name="Dash3" type="TextureRect" parent="UI/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("30_h23go")
|
||||||
|
expand_mode = 2
|
||||||
|
|
||||||
[node name="CenterContainer" type="CenterContainer" parent="UI"]
|
[node name="CenterContainer" type="CenterContainer" parent="UI"]
|
||||||
custom_minimum_size = Vector2(1920, 1080)
|
custom_minimum_size = Vector2(1920, 1080)
|
||||||
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
offset_right = -1.0
|
offset_right = -1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
mouse_filter = 2
|
||||||
|
|
||||||
[node name="CenterIcon" type="TextureRect" parent="UI/CenterContainer"]
|
[node name="CenterIcon" type="TextureRect" parent="UI/CenterContainer"]
|
||||||
material = SubResource("CanvasItemMaterial_2q0ik")
|
material = SubResource("CanvasItemMaterial_2q0ik")
|
||||||
@@ -278,6 +376,24 @@ layout_mode = 2
|
|||||||
texture = ExtResource("32_lgpc8")
|
texture = ExtResource("32_lgpc8")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
|
|
||||||
|
[node name="CenterContainer2" type="CenterContainer" parent="UI"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
mouse_filter = 2
|
||||||
|
|
||||||
|
[node name="MarginContainer" type="MarginContainer" parent="UI/CenterContainer2"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/margin_top = 50
|
||||||
|
|
||||||
|
[node name="DashCooldownIndicator" type="ColorRect" parent="UI/CenterContainer2/MarginContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
custom_minimum_size = Vector2(100, 10)
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
[node name="StateChart" type="Node" parent="."]
|
[node name="StateChart" type="Node" parent="."]
|
||||||
script = ExtResource("25_wv70j")
|
script = ExtResource("25_wv70j")
|
||||||
metadata/_custom_type_script = "uid://couw105c3bde4"
|
metadata/_custom_type_script = "uid://couw105c3bde4"
|
||||||
@@ -316,28 +432,6 @@ delay_in_seconds = "0.0"
|
|||||||
[node name="Canceled" type="Node" parent="StateChart/Root/Aim"]
|
[node name="Canceled" type="Node" parent="StateChart/Root/Aim"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="Empower" type="Node" parent="StateChart/Root"]
|
|
||||||
script = ExtResource("26_infe6")
|
|
||||||
initial_state = NodePath("Off")
|
|
||||||
|
|
||||||
[node name="Off" type="Node" parent="StateChart/Root/Empower"]
|
|
||||||
script = ExtResource("27_34snm")
|
|
||||||
|
|
||||||
[node name="ToOn" type="Node" parent="StateChart/Root/Empower/Off"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../On")
|
|
||||||
event = &"empower_down"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="On" type="Node" parent="StateChart/Root/Empower"]
|
|
||||||
script = ExtResource("27_34snm")
|
|
||||||
|
|
||||||
[node name="ToOff" type="Node" parent="StateChart/Root/Empower/On"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../Off")
|
|
||||||
event = &"empower_released"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="PowerReserve" type="Node" parent="StateChart/Root"]
|
[node name="PowerReserve" type="Node" parent="StateChart/Root"]
|
||||||
script = ExtResource("26_infe6")
|
script = ExtResource("26_infe6")
|
||||||
initial_state = NodePath("Full")
|
initial_state = NodePath("Full")
|
||||||
@@ -425,6 +519,33 @@ to = NodePath("../OnWall/Hanging")
|
|||||||
event = &"to_planted"
|
event = &"to_planted"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="Grounded" type="Node" parent="StateChart/Root/Movement"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnDash" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Dashing/Dash")
|
||||||
|
event = &"dash"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Jump/SimpleJump")
|
||||||
|
event = &"jump"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnAirborne" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Airborne/CoyoteEnabled")
|
||||||
|
event = &"start_falling"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnSlide" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Sliding/GroundSlide")
|
||||||
|
event = &"slide"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="Mantling" type="Node" parent="StateChart/Root/Movement"]
|
[node name="Mantling" type="Node" parent="StateChart/Root/Movement"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
@@ -434,53 +555,77 @@ to = NodePath("../../Grounded")
|
|||||||
event = &"grounded"
|
event = &"grounded"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnMantleOtherSide" type="Node" parent="StateChart/Root/Movement/Mantling"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../OnWall/Hugging")
|
||||||
|
event = &"on_wall"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="Slamming" type="Node" parent="StateChart/Root/Movement"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnSlamEnded" type="Node" parent="StateChart/Root/Movement/Slamming"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Grounded")
|
||||||
|
event = &"grounded"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="Jump" type="Node" parent="StateChart/Root/Movement"]
|
[node name="Jump" type="Node" parent="StateChart/Root/Movement"]
|
||||||
script = ExtResource("26_infe6")
|
script = ExtResource("26_infe6")
|
||||||
initial_state = NodePath("SimpleJump")
|
initial_state = NodePath("SimpleJump")
|
||||||
|
|
||||||
|
[node name="OnDash" type="Node" parent="StateChart/Root/Movement/Jump"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Dashing/Dash")
|
||||||
|
event = &"dash"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnMantle" type="Node" parent="StateChart/Root/Movement/Jump"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Mantling")
|
||||||
|
event = &"mantle"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="SimpleJump" type="Node" parent="StateChart/Root/Movement/Jump"]
|
[node name="SimpleJump" type="Node" parent="StateChart/Root/Movement/Jump"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="OnMegajump" type="Node" parent="StateChart/Root/Movement/Jump/SimpleJump"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../MegaJump")
|
|
||||||
event = &"megajump"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="OnJumpEnded" type="Node" parent="StateChart/Root/Movement/Jump/SimpleJump"]
|
[node name="OnJumpEnded" type="Node" parent="StateChart/Root/Movement/Jump/SimpleJump"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../../Airborne/DoubleJumpEnabled")
|
to = NodePath("../../../Airborne/DoubleJumpEnabled")
|
||||||
event = &"jump_ended"
|
event = &"jump_ended"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnSlide" type="Node" parent="StateChart/Root/Movement/Jump/SimpleJump"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Sliding/AirGlideDoubleJumpEnabled")
|
||||||
|
event = &"slide"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="DoubleJump" type="Node" parent="StateChart/Root/Movement/Jump"]
|
[node name="DoubleJump" type="Node" parent="StateChart/Root/Movement/Jump"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="OnMegajump" type="Node" parent="StateChart/Root/Movement/Jump/DoubleJump"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../MegaJump")
|
|
||||||
event = &"megajump"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="OnJumpEnded" type="Node" parent="StateChart/Root/Movement/Jump/DoubleJump"]
|
[node name="OnJumpEnded" type="Node" parent="StateChart/Root/Movement/Jump/DoubleJump"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../../Airborne/Falling")
|
to = NodePath("../../../Airborne/Falling")
|
||||||
event = &"jump_ended"
|
event = &"jump_ended"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="MegaJump" type="Node" parent="StateChart/Root/Movement/Jump"]
|
[node name="OnSlide" type="Node" parent="StateChart/Root/Movement/Jump/DoubleJump"]
|
||||||
script = ExtResource("27_34snm")
|
|
||||||
|
|
||||||
[node name="OnJumpEnded" type="Node" parent="StateChart/Root/Movement/Jump/MegaJump"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../../Airborne/Falling")
|
to = NodePath("../../../Sliding/AirGlide")
|
||||||
event = &"jump_ended"
|
event = &"slide"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="Dashing" type="Node" parent="StateChart/Root/Movement"]
|
[node name="Dashing" type="Node" parent="StateChart/Root/Movement"]
|
||||||
script = ExtResource("26_infe6")
|
script = ExtResource("26_infe6")
|
||||||
initial_state = NodePath("Dash")
|
initial_state = NodePath("Dash")
|
||||||
|
|
||||||
|
[node name="OnDashEndedGrounded" type="Node" parent="StateChart/Root/Movement/Dashing"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Grounded")
|
||||||
|
event = &"grounded"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnDashEnded" type="Node" parent="StateChart/Root/Movement/Dashing"]
|
[node name="OnDashEnded" type="Node" parent="StateChart/Root/Movement/Dashing"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Airborne/Reset")
|
to = NodePath("../../Airborne/Reset")
|
||||||
@@ -505,33 +650,112 @@ script = ExtResource("27_34snm")
|
|||||||
[node name="ToWeaponDash" type="Node" parent="StateChart/Root/Movement/Dashing"]
|
[node name="ToWeaponDash" type="Node" parent="StateChart/Root/Movement/Dashing"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="Grounded" type="Node" parent="StateChart/Root/Movement"]
|
[node name="Sliding" type="Node" parent="StateChart/Root/Movement"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("26_infe6")
|
||||||
|
initial_state = NodePath("GroundSlide")
|
||||||
|
|
||||||
[node name="OnDash" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
[node name="OnDash" type="Node" parent="StateChart/Root/Movement/Sliding"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Dashing/Dash")
|
to = NodePath("../../Dashing/Dash")
|
||||||
event = &"dash"
|
event = &"actually_no_dash"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
[node name="OnMantle" type="Node" parent="StateChart/Root/Movement/Sliding"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Jump/SimpleJump")
|
to = NodePath("../../Mantling")
|
||||||
|
event = &"mantle"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="GroundSlide" type="Node" parent="StateChart/Root/Movement/Sliding"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnSlideReleased" type="Node" parent="StateChart/Root/Movement/Sliding/GroundSlide"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Grounded")
|
||||||
|
event = &"slide_released"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnAirborne" type="Node" parent="StateChart/Root/Movement/Sliding/GroundSlide"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../AirGlideDoubleJumpEnabled")
|
||||||
|
event = &"start_falling"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Sliding/GroundSlide"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Jump/SimpleJump")
|
||||||
event = &"jump"
|
event = &"jump"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnMegajump" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
[node name="OnCancel" type="Node" parent="StateChart/Root/Movement/Sliding/GroundSlide"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Jump/MegaJump")
|
to = NodePath("../../SlideCanceled")
|
||||||
event = &"megajump"
|
event = &"slide_canceled"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnAirborne" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
[node name="AirGlideDoubleJumpEnabled" type="Node" parent="StateChart/Root/Movement/Sliding"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnSlideReleased" type="Node" parent="StateChart/Root/Movement/Sliding/AirGlideDoubleJumpEnabled"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Airborne/CoyoteEnabled")
|
to = NodePath("../../../Airborne/Reset")
|
||||||
|
event = &"slide_released"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnGrounded" type="Node" parent="StateChart/Root/Movement/Sliding/AirGlideDoubleJumpEnabled"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../GroundSlide")
|
||||||
|
event = &"grounded"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Sliding/AirGlideDoubleJumpEnabled"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Jump/DoubleJump")
|
||||||
|
event = &"jump"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="AirGlide" type="Node" parent="StateChart/Root/Movement/Sliding"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnSlideReleased" type="Node" parent="StateChart/Root/Movement/Sliding/AirGlide"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Airborne/Reset")
|
||||||
|
event = &"slide_released"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnGrounded" type="Node" parent="StateChart/Root/Movement/Sliding/AirGlide"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../GroundSlide")
|
||||||
|
event = &"grounded"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="SlideCanceled" type="Node" parent="StateChart/Root/Movement/Sliding"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnAirborne" type="Node" parent="StateChart/Root/Movement/Sliding/SlideCanceled"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Airborne/CoyoteEnabled")
|
||||||
event = &"start_falling"
|
event = &"start_falling"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnDash" type="Node" parent="StateChart/Root/Movement/Sliding/SlideCanceled"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Dashing/Dash")
|
||||||
|
event = &"dash"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Sliding/SlideCanceled"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Jump/SimpleJump")
|
||||||
|
event = &"jump"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnSlideReleased" type="Node" parent="StateChart/Root/Movement/Sliding/SlideCanceled"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Grounded")
|
||||||
|
event = &"slide_released"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="Airborne" type="Node" parent="StateChart/Root/Movement"]
|
[node name="Airborne" type="Node" parent="StateChart/Root/Movement"]
|
||||||
script = ExtResource("26_infe6")
|
script = ExtResource("26_infe6")
|
||||||
initial_state = NodePath("CoyoteEnabled")
|
initial_state = NodePath("CoyoteEnabled")
|
||||||
@@ -540,10 +764,10 @@ initial_state = NodePath("CoyoteEnabled")
|
|||||||
script = ExtResource("41_ruloh")
|
script = ExtResource("41_ruloh")
|
||||||
default_state = NodePath("../CoyoteEnabled")
|
default_state = NodePath("../CoyoteEnabled")
|
||||||
|
|
||||||
[node name="OnWallHug" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
[node name="OnWallRun" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../OnWall/Hugging")
|
to = NodePath("../../OnWall/Running")
|
||||||
event = &"wall_hug"
|
event = &"wall_run"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnDash" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
[node name="OnDash" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
@@ -558,13 +782,19 @@ to = NodePath("../../Grounded")
|
|||||||
event = &"grounded"
|
event = &"grounded"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnSlam" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Slamming")
|
||||||
|
event = &"slam"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="CoyoteEnabled" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
[node name="CoyoteEnabled" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="OnMegajump" type="Node" parent="StateChart/Root/Movement/Airborne/CoyoteEnabled"]
|
[node name="OnSlide" type="Node" parent="StateChart/Root/Movement/Airborne/CoyoteEnabled"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../../Jump/MegaJump")
|
to = NodePath("../../../Sliding/AirGlideDoubleJumpEnabled")
|
||||||
event = &"megajump"
|
event = &"slide"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Airborne/CoyoteEnabled"]
|
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Airborne/CoyoteEnabled"]
|
||||||
@@ -582,10 +812,16 @@ delay_in_seconds = "0.0"
|
|||||||
[node name="DoubleJumpEnabled" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
[node name="DoubleJumpEnabled" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="OnMegajump" type="Node" parent="StateChart/Root/Movement/Airborne/DoubleJumpEnabled"]
|
[node name="OnSlide" type="Node" parent="StateChart/Root/Movement/Airborne/DoubleJumpEnabled"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../../Jump/MegaJump")
|
to = NodePath("../../../Sliding/AirGlideDoubleJumpEnabled")
|
||||||
event = &"megajump"
|
event = &"slide"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnWallHug" type="Node" parent="StateChart/Root/Movement/Airborne/DoubleJumpEnabled"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../OnWall/Hugging")
|
||||||
|
event = &"wall_hug"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Airborne/DoubleJumpEnabled"]
|
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Airborne/DoubleJumpEnabled"]
|
||||||
@@ -597,12 +833,30 @@ delay_in_seconds = "0.0"
|
|||||||
[node name="Falling" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
[node name="Falling" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnSlide" type="Node" parent="StateChart/Root/Movement/Airborne/Falling"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Sliding/AirGlide")
|
||||||
|
event = &"slide"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnWallHug" type="Node" parent="StateChart/Root/Movement/Airborne/Falling"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../OnWall/Hugging")
|
||||||
|
event = &"wall_hug"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="ToDoubleJump" type="Node" parent="StateChart/Root/Movement/Airborne/Falling"]
|
[node name="ToDoubleJump" type="Node" parent="StateChart/Root/Movement/Airborne/Falling"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../DoubleJumpEnabled")
|
to = NodePath("../../DoubleJumpEnabled")
|
||||||
event = &"enable_double_jump"
|
event = &"enable_double_jump"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnWallJump" type="Node" parent="StateChart/Root/Movement/Airborne/Falling"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Jump/DoubleJump")
|
||||||
|
event = &"wall_jump"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnWall" type="Node" parent="StateChart/Root/Movement"]
|
[node name="OnWall" type="Node" parent="StateChart/Root/Movement"]
|
||||||
script = ExtResource("26_infe6")
|
script = ExtResource("26_infe6")
|
||||||
initial_state = NodePath("Hugging")
|
initial_state = NodePath("Hugging")
|
||||||
@@ -613,70 +867,66 @@ to = NodePath("../../Grounded")
|
|||||||
event = &"grounded"
|
event = &"grounded"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnLeaveWall" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Airborne/Reset")
|
||||||
|
event = &"start_falling"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnMantle" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Mantling")
|
||||||
|
event = &"mantle"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Jump/SimpleJump")
|
to = NodePath("../../Jump/SimpleJump")
|
||||||
event = &"jump"
|
event = &"jump"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnMegajump" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../Jump/MegaJump")
|
|
||||||
event = &"megajump"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="HugCanceled" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
|
||||||
script = ExtResource("27_34snm")
|
|
||||||
|
|
||||||
[node name="ToHanging" type="Node" parent="StateChart/Root/Movement/OnWall/HugCanceled"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../Hanging")
|
|
||||||
event = &"oh_hit_wall"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="Hugging" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
[node name="Hugging" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="OnGrounded" type="Node" parent="StateChart/Root/Movement/OnWall/Hugging"]
|
[node name="OnDash" type="Node" parent="StateChart/Root/Movement/OnWall/Hugging"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../../Grounded")
|
to = NodePath("../../../Dashing/Dash")
|
||||||
event = &"grounded"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="OnLeaveWall" type="Node" parent="StateChart/Root/Movement/OnWall/Hugging"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../../Airborne/CoyoteEnabled")
|
|
||||||
event = &"start_falling"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="OnDrop" type="Node" parent="StateChart/Root/Movement/OnWall/Hugging"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../HugCanceled")
|
|
||||||
event = &"dash"
|
event = &"dash"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="Hanging" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
[node name="Hanging" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="OnDrop" type="Node" parent="StateChart/Root/Movement/OnWall/Hanging"]
|
[node name="OnDash" type="Node" parent="StateChart/Root/Movement/OnWall/Hanging"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Hugging")
|
to = NodePath("../../../Dashing/Dash")
|
||||||
event = &"dash"
|
event = &"dash"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[connection signal="input_aim_canceled" from="InputController" to="." method="OnInputAimCanceled"]
|
[node name="Running" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnLeaveWall" type="Node" parent="StateChart/Root/Movement/OnWall/Running"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Airborne/CoyoteEnabled")
|
||||||
|
event = &"start_falling"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[connection signal="input_aim_down" from="InputController" to="." method="OnInputAimDown"]
|
[connection signal="input_aim_down" from="InputController" to="." method="OnInputAimDown"]
|
||||||
[connection signal="input_aim_pressed" from="InputController" to="." method="OnInputAimPressed"]
|
[connection signal="input_aim_pressed" from="InputController" to="." method="OnInputAimPressed"]
|
||||||
[connection signal="input_aim_released" from="InputController" to="." method="OnInputAimReleased"]
|
[connection signal="input_aim_released" from="InputController" to="." method="OnInputAimReleased"]
|
||||||
[connection signal="input_dash" from="InputController" to="." method="OnInputDashPressed"]
|
[connection signal="input_dash" from="InputController" to="." method="OnInputDashPressed"]
|
||||||
[connection signal="input_empower_down" from="InputController" to="." method="OnInputEmpowerDown"]
|
[connection signal="input_device_changed" from="InputController" to="." method="InputDeviceChanged"]
|
||||||
[connection signal="input_empower_released" from="InputController" to="." method="OnInputEmpowerReleased"]
|
|
||||||
[connection signal="input_hit" from="InputController" to="." method="OnInputHitPressed"]
|
[connection signal="input_hit" from="InputController" to="." method="OnInputHitPressed"]
|
||||||
[connection signal="input_jump_ended" from="InputController" to="." method="OnInputJumpEnded"]
|
[connection signal="input_jump_ended" from="InputController" to="." method="OnInputJumpEnded"]
|
||||||
[connection signal="input_jump_ongoing" from="InputController" to="." method="OnInputJumpOngoing"]
|
[connection signal="input_jump_ongoing" from="InputController" to="." method="OnInputJumpOngoing"]
|
||||||
[connection signal="input_jump_started" from="InputController" to="." method="OnInputJumpStarted"]
|
[connection signal="input_jump_started" from="InputController" to="." method="OnInputJumpStarted"]
|
||||||
[connection signal="input_move" from="InputController" to="." method="OnInputMove"]
|
[connection signal="input_move" from="InputController" to="." method="OnInputMove"]
|
||||||
|
[connection signal="input_move_keyboard" from="InputController" to="." method="OnInputMoveKeyboard"]
|
||||||
|
[connection signal="input_parry" from="InputController" to="." method="OnInputParryPressed"]
|
||||||
[connection signal="input_rotate_floorplane" from="InputController" to="." method="OnInputRotateFloorplane"]
|
[connection signal="input_rotate_floorplane" from="InputController" to="." method="OnInputRotateFloorplane"]
|
||||||
[connection signal="input_rotate_y" from="InputController" to="." method="OnInputRotateY"]
|
[connection signal="input_rotate_y" from="InputController" to="." method="OnInputRotateY"]
|
||||||
[connection signal="input_throw" from="InputController" to="." method="OnInputThrowPressed"]
|
[connection signal="input_slam" from="InputController" to="." method="OnInputSlamPressed"]
|
||||||
|
[connection signal="input_slide_ended" from="InputController" to="." method="OnInputSlideEnded"]
|
||||||
|
[connection signal="input_slide_started" from="InputController" to="." method="OnInputSlideStarted"]
|
||||||
[connection signal="WallDetected" from="WallHugSystem" to="." method="OnWallDetected"]
|
[connection signal="WallDetected" from="WallHugSystem" to="." method="OnWallDetected"]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Godot;
|
using Godot;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
public partial class PlayerUi : CanvasLayer
|
public partial class PlayerUi : Control
|
||||||
{
|
{
|
||||||
private TextureRect[] _dashIcons = new TextureRect[3];
|
private TextureRect[] _dashIcons = new TextureRect[3];
|
||||||
|
|
||||||
@@ -9,9 +9,9 @@ public partial class PlayerUi : CanvasLayer
|
|||||||
{
|
{
|
||||||
base._Ready();
|
base._Ready();
|
||||||
|
|
||||||
_dashIcons[0] = GetNode<TextureRect>("VBoxContainer/HBoxContainer/Dash1");
|
_dashIcons[0] = GetNode<TextureRect>("%Dash1");
|
||||||
_dashIcons[1] = GetNode<TextureRect>("VBoxContainer/HBoxContainer/Dash2");
|
_dashIcons[1] = GetNode<TextureRect>("%Dash2");
|
||||||
_dashIcons[2] = GetNode<TextureRect>("VBoxContainer/HBoxContainer/Dash3");
|
_dashIcons[2] = GetNode<TextureRect>("%Dash3");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetNumberOfDashesLeft(int numberOfDashes)
|
public void SetNumberOfDashesLeft(int numberOfDashes)
|
||||||
|
|||||||
@@ -40,17 +40,13 @@ public partial class CapsuleCollider : CollisionShape3D
|
|||||||
return Mathf.IsEqualApprox(_shape.Height, CapsuleCrouchHeight);
|
return Mathf.IsEqualApprox(_shape.Height, CapsuleCrouchHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Crouch(float delta, float crouchTransitionSpeed)
|
public void Crouch()
|
||||||
{
|
{
|
||||||
_shape.Height -= delta * crouchTransitionSpeed;
|
_shape.Height = CapsuleCrouchHeight;
|
||||||
|
|
||||||
_shape.Height = Mathf.Clamp(_shape.Height, CapsuleCrouchHeight, CapsuleDefaultHeight);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UndoCrouching(float delta, float crouchTransitionSpeed)
|
public void Uncrouch()
|
||||||
{
|
{
|
||||||
_shape.Height += delta * crouchTransitionSpeed;
|
_shape.Height = CapsuleDefaultHeight;
|
||||||
|
|
||||||
_shape.Height = Mathf.Clamp(_shape.Height, CapsuleCrouchHeight, CapsuleDefaultHeight);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -146,9 +146,6 @@ public partial class HealthSystem : Node3D
|
|||||||
public CharacterBody3D Parent;
|
public CharacterBody3D Parent;
|
||||||
public Camera3D Camera;
|
public Camera3D Camera;
|
||||||
public Node3D Head;
|
public Node3D Head;
|
||||||
public ColorRect VignetteRect;
|
|
||||||
public ColorRect DistortionRect;
|
|
||||||
public ColorRect BlurRect;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Init(HealthSystemInitParams initParams)
|
public void Init(HealthSystemInitParams initParams)
|
||||||
@@ -162,10 +159,6 @@ public partial class HealthSystem : Node3D
|
|||||||
_camera = initParams.Camera;
|
_camera = initParams.Camera;
|
||||||
|
|
||||||
_head = initParams.Head;
|
_head = initParams.Head;
|
||||||
|
|
||||||
_vignetteMaterial = initParams.VignetteRect.Material as ShaderMaterial;
|
|
||||||
_distortionMaterial = initParams.DistortionRect.Material as ShaderMaterial;
|
|
||||||
_blurMaterial = initParams.BlurRect.Material as ShaderMaterial;
|
|
||||||
|
|
||||||
// Resetting shaders' parameters
|
// Resetting shaders' parameters
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -146,6 +146,16 @@ aim_dash={
|
|||||||
|
|
||||||
locale/translations=PackedStringArray("res://addons/maaacks_game_template/base/translations/menus_translations.en.translation", "res://addons/maaacks_game_template/base/translations/menus_translations.fr.translation")
|
locale/translations=PackedStringArray("res://addons/maaacks_game_template/base/translations/menus_translations.en.translation", "res://addons/maaacks_game_template/base/translations/menus_translations.fr.translation")
|
||||||
|
|
||||||
|
[layer_names]
|
||||||
|
|
||||||
|
3d_physics/layer_1="Player"
|
||||||
|
3d_physics/layer_2="2"
|
||||||
|
3d_physics/layer_3="3"
|
||||||
|
3d_physics/layer_4="4"
|
||||||
|
3d_physics/layer_5="enemies"
|
||||||
|
3d_physics/layer_9="terrain"
|
||||||
|
3d_physics/layer_17="weapon"
|
||||||
|
|
||||||
[maaacks_game_template]
|
[maaacks_game_template]
|
||||||
|
|
||||||
disable_update_check=false
|
disable_update_check=false
|
||||||
@@ -154,6 +164,7 @@ copy_path="res://scenes"
|
|||||||
|
|
||||||
[physics]
|
[physics]
|
||||||
|
|
||||||
|
3d/run_on_separate_thread=true
|
||||||
common/physics_jitter_fix=0.0
|
common/physics_jitter_fix=0.0
|
||||||
3d/physics_engine="Jolt Physics"
|
3d/physics_engine="Jolt Physics"
|
||||||
common/physics_interpolation=true
|
common/physics_interpolation=true
|
||||||
@@ -161,5 +172,6 @@ common/physics_interpolation=true
|
|||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
textures/vram_compression/import_etc2_astc=true
|
textures/vram_compression/import_etc2_astc=true
|
||||||
|
lights_and_shadows/directional_shadow/soft_shadow_filter_quality=5
|
||||||
environment/volumetric_fog/volume_size=256
|
environment/volumetric_fog/volume_size=256
|
||||||
environment/volumetric_fog/volume_depth=256
|
environment/volumetric_fog/volume_depth=256
|
||||||
|
|||||||
40
scenes/enemies/FirstEnemy.cs
Normal file
40
scenes/enemies/FirstEnemy.cs
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
using Godot;
|
||||||
|
using System;
|
||||||
|
using Movementtests.player_controller.Scripts;
|
||||||
|
|
||||||
|
public partial class FirstEnemy : CharacterBody3D
|
||||||
|
{
|
||||||
|
[Export]
|
||||||
|
public Node3D Target { get; set; }
|
||||||
|
|
||||||
|
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||||
|
public float Speed = 5.0f;
|
||||||
|
|
||||||
|
private RayCast3D _wallInFrontRayCast;
|
||||||
|
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
_wallInFrontRayCast = GetNode<RayCast3D>("WallInFrontRayCast");
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void _PhysicsProcess(double delta)
|
||||||
|
{
|
||||||
|
var target = Target.GlobalPosition;
|
||||||
|
var direction = (target - GlobalPosition).Normalized();
|
||||||
|
|
||||||
|
var targetPlane = new Vector3(target.X, GlobalPosition.Y, target.Z);
|
||||||
|
LookAt(targetPlane);
|
||||||
|
|
||||||
|
var velocity = Velocity;
|
||||||
|
velocity.X = direction.X * Speed;
|
||||||
|
velocity.Z = direction.Z * Speed;
|
||||||
|
|
||||||
|
if (_wallInFrontRayCast.IsColliding())
|
||||||
|
velocity.Y = Speed;
|
||||||
|
else if (!IsOnFloor())
|
||||||
|
velocity += GetGravity() * (float)delta;
|
||||||
|
|
||||||
|
Velocity = velocity;
|
||||||
|
MoveAndSlide();
|
||||||
|
}
|
||||||
|
}
|
||||||
1
scenes/enemies/FirstEnemy.cs.uid
Normal file
1
scenes/enemies/FirstEnemy.cs.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://bn7sc6id7n166
|
||||||
51
scenes/enemies/first_enemy.tscn
Normal file
51
scenes/enemies/first_enemy.tscn
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
[gd_scene load_steps=6 format=3 uid="uid://dxt0e2ugmttqq"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bn7sc6id7n166" path="res://scenes/enemies/FirstEnemy.cs" id="1_4yfjf"]
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_62kkh"]
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_3uydm"]
|
||||||
|
|
||||||
|
[sub_resource type="SphereMesh" id="SphereMesh_4yfjf"]
|
||||||
|
radius = 0.05
|
||||||
|
height = 0.1
|
||||||
|
radial_segments = 4
|
||||||
|
rings = 4
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4yfjf"]
|
||||||
|
albedo_color = Color(0.06469653, 0.06469653, 0.06469653, 1)
|
||||||
|
|
||||||
|
[node name="CharacterBody3D" type="CharacterBody3D"]
|
||||||
|
collision_layer = 16
|
||||||
|
collision_mask = 273
|
||||||
|
script = ExtResource("1_4yfjf")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||||
|
shape = SubResource("CapsuleShape3D_62kkh")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||||
|
layers = 33
|
||||||
|
mesh = SubResource("CapsuleMesh_3uydm")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.2, 1.5, -0.5)
|
||||||
|
layers = 33
|
||||||
|
cast_shadow = 0
|
||||||
|
ignore_occlusion_culling = true
|
||||||
|
mesh = SubResource("SphereMesh_4yfjf")
|
||||||
|
surface_material_override/0 = SubResource("StandardMaterial3D_4yfjf")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D3" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.2, 1.5, -0.5)
|
||||||
|
layers = 33
|
||||||
|
cast_shadow = 0
|
||||||
|
ignore_occlusion_culling = true
|
||||||
|
mesh = SubResource("SphereMesh_4yfjf")
|
||||||
|
surface_material_override/0 = SubResource("StandardMaterial3D_4yfjf")
|
||||||
|
|
||||||
|
[node name="WallInFrontRayCast" type="RayCast3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0)
|
||||||
|
target_position = Vector3(0, 0, -1.5)
|
||||||
|
collision_mask = 272
|
||||||
25
scenes/path/Path.cs
Normal file
25
scenes/path/Path.cs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
using Godot;
|
||||||
|
|
||||||
|
public partial class Path : Path3D
|
||||||
|
{
|
||||||
|
public PathFollow3D PathFollow { get; private set; }
|
||||||
|
public Marker3D Target { get; private set; }
|
||||||
|
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
PathFollow = GetNode<PathFollow3D>("PathFollow");
|
||||||
|
Target = GetNode<Marker3D>("PathFollow/Target");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Setup(Transform3D globalTransform, Curve3D curve)
|
||||||
|
{
|
||||||
|
SetGlobalTransform(globalTransform);
|
||||||
|
SetCurve(curve);
|
||||||
|
PathFollow.ProgressRatio = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Teardown()
|
||||||
|
{
|
||||||
|
if (!IsQueuedForDeletion()) QueueFree();
|
||||||
|
}
|
||||||
|
}
|
||||||
1
scenes/path/Path.cs.uid
Normal file
1
scenes/path/Path.cs.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://djdr5bvfc8f0x
|
||||||
13
scenes/path/path.tscn
Normal file
13
scenes/path/path.tscn
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
[gd_scene load_steps=3 format=3 uid="uid://cf3rrgr1imvv4"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://djdr5bvfc8f0x" path="res://scenes/path/Path.cs" id="1_kmlhi"]
|
||||||
|
|
||||||
|
[sub_resource type="Curve3D" id="Curve3D_u4rfr"]
|
||||||
|
|
||||||
|
[node name="Path" type="Path3D"]
|
||||||
|
curve = SubResource("Curve3D_u4rfr")
|
||||||
|
script = ExtResource("1_kmlhi")
|
||||||
|
|
||||||
|
[node name="PathFollow" type="PathFollow3D" parent="."]
|
||||||
|
|
||||||
|
[node name="Target" type="Marker3D" parent="PathFollow"]
|
||||||
69
scenes/tuto_trigger/TutoTrigger.tscn
Normal file
69
scenes/tuto_trigger/TutoTrigger.tscn
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
[gd_scene load_steps=4 format=3 uid="uid://b8aet6m4m2i83"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bnqhh6b5iusam" path="res://scenes/tuto_trigger/tuto_trigger.gd" id="1_w8mpv"]
|
||||||
|
|
||||||
|
[sub_resource type="LabelSettings" id="LabelSettings_4vbx1"]
|
||||||
|
font_size = 30
|
||||||
|
|
||||||
|
[sub_resource type="LabelSettings" id="LabelSettings_g04tr"]
|
||||||
|
font_size = 30
|
||||||
|
|
||||||
|
[node name="TutoTrigger" type="Area3D"]
|
||||||
|
collision_layer = 0
|
||||||
|
script = ExtResource("1_w8mpv")
|
||||||
|
|
||||||
|
[node name="Control" type="Control" parent="."]
|
||||||
|
visible = false
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
|
[node name="PanelContainer" type="PanelContainer" parent="Control"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = -1
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.7
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.7
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
|
[node name="MarginContainer" type="MarginContainer" parent="Control/PanelContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/margin_left = 10
|
||||||
|
theme_override_constants/margin_top = 10
|
||||||
|
theme_override_constants/margin_right = 10
|
||||||
|
theme_override_constants/margin_bottom = 10
|
||||||
|
|
||||||
|
[node name="HBoxContainer" type="HBoxContainer" parent="Control/PanelContainer/MarginContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/separation = 20
|
||||||
|
|
||||||
|
[node name="MultipleInputsContainer" type="HBoxContainer" parent="Control/PanelContainer/MarginContainer/HBoxContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/separation = 0
|
||||||
|
|
||||||
|
[node name="FirstInput" type="TextureRect" parent="Control/PanelContainer/MarginContainer/HBoxContainer/MultipleInputsContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="ComplexInputLabel" type="Label" parent="Control/PanelContainer/MarginContainer/HBoxContainer/MultipleInputsContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
label_settings = SubResource("LabelSettings_4vbx1")
|
||||||
|
|
||||||
|
[node name="SecondInput" type="TextureRect" parent="Control/PanelContainer/MarginContainer/HBoxContainer/MultipleInputsContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="TutoText" type="Label" parent="Control/PanelContainer/MarginContainer/HBoxContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
label_settings = SubResource("LabelSettings_g04tr")
|
||||||
|
|
||||||
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||||
|
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
||||||
37
scenes/tuto_trigger/tuto_trigger.gd
Normal file
37
scenes/tuto_trigger/tuto_trigger.gd
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
extends Area3D
|
||||||
|
|
||||||
|
@onready var control: Control = $Control
|
||||||
|
|
||||||
|
@onready var multiple_inputs_container: HBoxContainer = %MultipleInputsContainer
|
||||||
|
@onready var first_input: TextureRect = %FirstInput
|
||||||
|
@onready var complex_input_label: Label = %ComplexInputLabel
|
||||||
|
@onready var second_input: TextureRect = %SecondInput
|
||||||
|
@onready var tuto_label: Label = %TutoText
|
||||||
|
|
||||||
|
|
||||||
|
@export var first_input_texture: CompressedTexture2D
|
||||||
|
@export var second_input_texture: CompressedTexture2D
|
||||||
|
@export var complex_input_text: String
|
||||||
|
@export var tuto_text: String
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
tuto_label.text = tuto_text
|
||||||
|
first_input.texture = first_input_texture
|
||||||
|
second_input.texture = second_input_texture
|
||||||
|
complex_input_label.text = complex_input_text
|
||||||
|
|
||||||
|
if second_input_texture != null:
|
||||||
|
complex_input_label.text = "+"
|
||||||
|
|
||||||
|
if second_input_texture == null and complex_input_text.is_empty():
|
||||||
|
complex_input_label.visible = false
|
||||||
|
second_input.visible = false
|
||||||
|
|
||||||
|
|
||||||
|
func _on_body_entered(body: Node3D) -> void:
|
||||||
|
control.visible = true
|
||||||
|
|
||||||
|
|
||||||
|
func _on_body_exited(body: Node3D) -> void:
|
||||||
|
control.visible = false
|
||||||
1
scenes/tuto_trigger/tuto_trigger.gd.uid
Normal file
1
scenes/tuto_trigger/tuto_trigger.gd.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://bnqhh6b5iusam
|
||||||
@@ -20,19 +20,17 @@ public partial class DashSystem: Node3D
|
|||||||
|
|
||||||
public bool ShouldMantle { get; set; }
|
public bool ShouldMantle { get; set; }
|
||||||
public Vector3 PlannedMantleLocation { get; set; }
|
public Vector3 PlannedMantleLocation { get; set; }
|
||||||
|
public MantleSystem MantleSystem { get; set; }
|
||||||
|
|
||||||
private Node3D _head;
|
private Node3D _head;
|
||||||
private ShapeCast3D _dashCast3D;
|
private ShapeCast3D _dashCast3D;
|
||||||
private ShapeCast3D _playerCast3D;
|
|
||||||
private Camera3D _camera;
|
private Camera3D _camera;
|
||||||
private TweenQueueSystem _tweenQueueSystem;
|
|
||||||
private Vector3 _dashDirection = Vector3.Zero;
|
private Vector3 _dashDirection = Vector3.Zero;
|
||||||
|
|
||||||
private ShapeCast3D _dashCastDrop;
|
private ShapeCast3D _dashCastDrop;
|
||||||
private MeshInstance3D _dashDropIndicator;
|
private MeshInstance3D _dashDropIndicator;
|
||||||
private MeshInstance3D _dashDropLocationIndicator;
|
private MeshInstance3D _dashDropLocationIndicator;
|
||||||
|
|
||||||
private MantleSystem _mantleSystem;
|
|
||||||
private MeshInstance3D _dashTarget;
|
private MeshInstance3D _dashTarget;
|
||||||
private CpuParticles3D _dashIndicator;
|
private CpuParticles3D _dashIndicator;
|
||||||
private AnimationPlayer _dashIndicatorAnim;
|
private AnimationPlayer _dashIndicatorAnim;
|
||||||
@@ -48,13 +46,10 @@ public partial class DashSystem: Node3D
|
|||||||
public delegate void DashProgressEventHandler(float progress);
|
public delegate void DashProgressEventHandler(float progress);
|
||||||
|
|
||||||
private Vector3 _globalDashPosition = Vector3.Zero;
|
private Vector3 _globalDashPosition = Vector3.Zero;
|
||||||
|
|
||||||
private float _playerHeight;
|
|
||||||
private float _playerRadius;
|
|
||||||
|
|
||||||
public float DashCastRadius { get; set; }
|
public float DashCastRadius { get; set; }
|
||||||
|
|
||||||
public void Init(Node3D head, Camera3D camera, TweenQueueSystem tweenQueueSystem)
|
public void Init(Node3D head, Camera3D camera)
|
||||||
{
|
{
|
||||||
_dashCast3D = GetNode<ShapeCast3D>("DashCast3D");
|
_dashCast3D = GetNode<ShapeCast3D>("DashCast3D");
|
||||||
var dashShape = _dashCast3D.GetShape() as SphereShape3D;
|
var dashShape = _dashCast3D.GetShape() as SphereShape3D;
|
||||||
@@ -66,17 +61,11 @@ public partial class DashSystem: Node3D
|
|||||||
_dashDropLocationIndicator = GetNode<MeshInstance3D>("DashDropLocationIndicator");
|
_dashDropLocationIndicator = GetNode<MeshInstance3D>("DashDropLocationIndicator");
|
||||||
_dashDropLocationIndicator.Visible = false;
|
_dashDropLocationIndicator.Visible = false;
|
||||||
|
|
||||||
_playerCast3D = GetNode<ShapeCast3D>("PlayerShapeCast3D");
|
|
||||||
var playerShape = _playerCast3D.GetShape() as CapsuleShape3D;
|
|
||||||
_playerHeight = playerShape!.Height;
|
|
||||||
_playerRadius = playerShape!.Radius;
|
|
||||||
|
|
||||||
_head = head;
|
_head = head;
|
||||||
_camera = camera;
|
_camera = camera;
|
||||||
_tweenQueueSystem = tweenQueueSystem;
|
|
||||||
|
|
||||||
_mantleSystem = GetNode<MantleSystem>("MantleSystem");
|
MantleSystem = GetNode<MantleSystem>("MantleSystem");
|
||||||
_mantleSystem.Init();
|
MantleSystem.Init();
|
||||||
|
|
||||||
_dashTarget = GetNode<MeshInstance3D>("DashTarget");
|
_dashTarget = GetNode<MeshInstance3D>("DashTarget");
|
||||||
_dashTarget.SetVisible(false);
|
_dashTarget.SetVisible(false);
|
||||||
@@ -111,14 +100,15 @@ public partial class DashSystem: Node3D
|
|||||||
|
|
||||||
(HasHit, PlannedLocation, CollisionPoint, CollisionNormal) = ComputeDashLocation();
|
(HasHit, PlannedLocation, CollisionPoint, CollisionNormal) = ComputeDashLocation();
|
||||||
|
|
||||||
ShouldMantle = false;
|
// TODO: Position mantle system to planned location, aligned with ground planned and facing the same way as the dash
|
||||||
var mantleLocation = Vector3.Zero;
|
// Then query it being careful when dashing underneath a platform and such
|
||||||
if (HasHit && Mathf.Abs(CollisionNormal.Y) < 0.5f)
|
MantleSystem.SetGlobalPosition(PlannedLocation);
|
||||||
{
|
MantleSystem.SetRotation(new Vector3(
|
||||||
var mantleResult = _mantleSystem.FindMantleLocationAtPoint(PlannedLocation, CollisionNormal);
|
MantleSystem.Rotation.X,
|
||||||
ShouldMantle = mantleResult.IsSome(out mantleLocation);
|
_head.Rotation.Y,
|
||||||
}
|
MantleSystem.Rotation.Z));
|
||||||
PlannedMantleLocation = mantleLocation;
|
MantleSystem.ProcessMantle(false);
|
||||||
|
ShouldMantle = MantleSystem.IsMantlePossible;
|
||||||
|
|
||||||
// Setup dash target
|
// Setup dash target
|
||||||
var targetColor = HasHit ? new Color(1f, 0.2f, 0.2f) : new Color(1f, 1f, 1f);
|
var targetColor = HasHit ? new Color(1f, 0.2f, 0.2f) : new Color(1f, 1f, 1f);
|
||||||
@@ -126,7 +116,7 @@ public partial class DashSystem: Node3D
|
|||||||
var targetMaterial = (StandardMaterial3D) _dashTarget.GetSurfaceOverrideMaterial(0);
|
var targetMaterial = (StandardMaterial3D) _dashTarget.GetSurfaceOverrideMaterial(0);
|
||||||
targetMaterial.SetAlbedo(targetColor);
|
targetMaterial.SetAlbedo(targetColor);
|
||||||
_dashTarget.SetVisible(true);
|
_dashTarget.SetVisible(true);
|
||||||
var targetLocation = ShouldMantle ? PlannedMantleLocation : PlannedLocation;
|
var targetLocation = ShouldMantle ? MantleSystem.FirstMantleProfilePoint : PlannedLocation;
|
||||||
_dashTarget.SetGlobalPosition(targetLocation);
|
_dashTarget.SetGlobalPosition(targetLocation);
|
||||||
|
|
||||||
var shouldShowDropIndicator = !HasHit && !ShouldMantle;
|
var shouldShowDropIndicator = !HasHit && !ShouldMantle;
|
||||||
@@ -162,6 +152,5 @@ public partial class DashSystem: Node3D
|
|||||||
public void StartPreparingDash()
|
public void StartPreparingDash()
|
||||||
{
|
{
|
||||||
_dashTarget.SetVisible(true);
|
_dashTarget.SetVisible(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
[gd_scene load_steps=10 format=3 uid="uid://cqduhd4opgwvm"]
|
[gd_scene load_steps=9 format=3 uid="uid://cqduhd4opgwvm"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://dwoppk8j5fxeg" path="res://systems/dash/DashSystem.cs" id="1_hwig2"]
|
[ext_resource type="Script" uid="uid://dwoppk8j5fxeg" path="res://systems/dash/DashSystem.cs" id="1_hwig2"]
|
||||||
[ext_resource type="Shape3D" uid="uid://keseacdcooot" path="res://player_controller/resources/PlayerShape.tres" id="2_jngg2"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://wq1okogkhc5l" path="res://systems/mantle/mantle_system.tscn" id="2_pff7b"]
|
[ext_resource type="PackedScene" uid="uid://wq1okogkhc5l" path="res://systems/mantle/mantle_system.tscn" id="2_pff7b"]
|
||||||
[ext_resource type="PackedScene" uid="uid://hd0868f4pb63" path="res://systems/dash/dash_indicator.tscn" id="2_tqt6i"]
|
[ext_resource type="PackedScene" uid="uid://hd0868f4pb63" path="res://systems/dash/dash_indicator.tscn" id="2_tqt6i"]
|
||||||
|
|
||||||
@@ -24,19 +23,12 @@ outer_radius = 0.5
|
|||||||
script = ExtResource("1_hwig2")
|
script = ExtResource("1_hwig2")
|
||||||
DashIndicatorScene = ExtResource("2_tqt6i")
|
DashIndicatorScene = ExtResource("2_tqt6i")
|
||||||
|
|
||||||
[node name="PlayerShapeCast3D" type="ShapeCast3D" parent="."]
|
|
||||||
visible = false
|
|
||||||
shape = ExtResource("2_jngg2")
|
|
||||||
target_position = Vector3(0, 0, 0)
|
|
||||||
collision_mask = 2
|
|
||||||
debug_shape_custom_color = Color(0.863327, 0.636844, 0, 1)
|
|
||||||
|
|
||||||
[node name="DashCast3D" type="ShapeCast3D" parent="."]
|
[node name="DashCast3D" type="ShapeCast3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
|
||||||
shape = SubResource("SphereShape3D_jngg2")
|
shape = SubResource("SphereShape3D_jngg2")
|
||||||
target_position = Vector3(0, 0, -12)
|
target_position = Vector3(0, 0, -12)
|
||||||
max_results = 1
|
max_results = 1
|
||||||
collision_mask = 2
|
collision_mask = 256
|
||||||
debug_shape_custom_color = Color(0.911631, 0.11884, 0.656218, 1)
|
debug_shape_custom_color = Color(0.911631, 0.11884, 0.656218, 1)
|
||||||
|
|
||||||
[node name="DashCastDrop" type="ShapeCast3D" parent="."]
|
[node name="DashCastDrop" type="ShapeCast3D" parent="."]
|
||||||
@@ -44,7 +36,7 @@ transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 1
|
|||||||
shape = SubResource("SphereShape3D_jngg2")
|
shape = SubResource("SphereShape3D_jngg2")
|
||||||
target_position = Vector3(0, 0, -50)
|
target_position = Vector3(0, 0, -50)
|
||||||
max_results = 1
|
max_results = 1
|
||||||
collision_mask = 2
|
collision_mask = 256
|
||||||
debug_shape_custom_color = Color(0.911631, 0.11884, 0.656218, 1)
|
debug_shape_custom_color = Color(0.911631, 0.11884, 0.656218, 1)
|
||||||
|
|
||||||
[node name="DashTarget" type="MeshInstance3D" parent="."]
|
[node name="DashTarget" type="MeshInstance3D" parent="."]
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using Godot;
|
using Godot;
|
||||||
|
using RustyOptions;
|
||||||
|
|
||||||
namespace Movementtests.systems;
|
namespace Movementtests.systems;
|
||||||
|
|
||||||
@@ -7,18 +8,48 @@ public partial class HeadSystem : Node3D
|
|||||||
{
|
{
|
||||||
private Camera3D _camera;
|
private Camera3D _camera;
|
||||||
private Marker3D _cameraAnchor;
|
private Marker3D _cameraAnchor;
|
||||||
|
private AnimationPlayer _animationPlayer;
|
||||||
|
|
||||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||||
public float LookSensitivity { get; set; } = 1f;
|
public float LookSensitivity { get; set; } = 1f;
|
||||||
|
|
||||||
|
[Export(PropertyHint.Range, "0.1,50,0.1,or_greater")]
|
||||||
|
public double CameraInclineAcceleration { get; set; } = 10f;
|
||||||
|
|
||||||
|
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||||
|
public float WallRunCameraIncline { get; set; } = 5f;
|
||||||
|
|
||||||
|
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||||
|
public float GroundedCameraIncline { get; set; } = 5f;
|
||||||
|
|
||||||
|
[Export(PropertyHint.Range, "0,2,0.1,or_greater")]
|
||||||
|
public float SlidingCameraHeightOffset { get; set; } = 1.0f;
|
||||||
|
|
||||||
|
[Export(PropertyHint.Range, "0,1,0.01,or_greater")]
|
||||||
|
public float SlidingJitterFrequency { get; set; } = 0.01f;
|
||||||
|
|
||||||
|
[Export(PropertyHint.Range, "0,1,0.01,or_greater")]
|
||||||
|
public float SlidingJitterAmplitude { get; set; } = 0.1f;
|
||||||
|
|
||||||
|
private FastNoiseLite _slidingNoise = new FastNoiseLite();
|
||||||
|
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
Input.SetMouseMode(Input.MouseModeEnum.Captured);
|
Input.SetMouseMode(Input.MouseModeEnum.Captured);
|
||||||
_camera = GetNode<Camera3D>("CameraSmooth/Camera3D");
|
_camera = GetNode<Camera3D>("CameraSmooth/Camera3D");
|
||||||
_cameraAnchor = GetNode<Marker3D>("CameraAnchor");
|
_cameraAnchor = GetNode<Marker3D>("CameraAnchor");
|
||||||
|
_animationPlayer = GetNode<AnimationPlayer>("AnimationPlayer");
|
||||||
|
|
||||||
|
_slidingNoise.NoiseType = FastNoiseLite.NoiseTypeEnum.Perlin;
|
||||||
|
_slidingNoise.SetFrequency(SlidingJitterFrequency);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void LookAround(Vector2 lookDir, float sensitivitMultiplier = 1f)
|
public void OnMantle()
|
||||||
|
{
|
||||||
|
_animationPlayer.Play("mantle");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void LookAround(double delta, Vector2 lookDir, Vector3 playerInput, Vector3 playerVelocity, Vector3? wallContactPoint = null, float sensitivitMultiplier = 1f, bool isSliding = false)
|
||||||
{
|
{
|
||||||
// Horizontal movement of head
|
// Horizontal movement of head
|
||||||
float angleForHorizontalRotation = lookDir.X * LookSensitivity * sensitivitMultiplier;
|
float angleForHorizontalRotation = lookDir.X * LookSensitivity * sensitivitMultiplier;
|
||||||
@@ -28,11 +59,46 @@ public partial class HeadSystem : Node3D
|
|||||||
Vector3 currentCameraRotation = _cameraAnchor.Rotation;
|
Vector3 currentCameraRotation = _cameraAnchor.Rotation;
|
||||||
currentCameraRotation.X += Convert.ToSingle(lookDir.Y * LookSensitivity * sensitivitMultiplier);
|
currentCameraRotation.X += Convert.ToSingle(lookDir.Y * LookSensitivity * sensitivitMultiplier);
|
||||||
currentCameraRotation.X = Mathf.Clamp(currentCameraRotation.X, Mathf.DegToRad(-90f), Mathf.DegToRad(90f));
|
currentCameraRotation.X = Mathf.Clamp(currentCameraRotation.X, Mathf.DegToRad(-90f), Mathf.DegToRad(90f));
|
||||||
|
|
||||||
|
// Camera incline on Wall and more
|
||||||
|
var isWallRunning = wallContactPoint.HasValue && wallContactPoint.Value.Length() > Mathf.Epsilon;
|
||||||
|
float cameraIncline;
|
||||||
|
if (isWallRunning)
|
||||||
|
{
|
||||||
|
var directionToWall = (wallContactPoint.Value - GlobalPosition).Normalized();
|
||||||
|
var cameraInclineFactor = ComputeCameraInclineFactor(directionToWall);
|
||||||
|
cameraIncline = Mathf.DegToRad(WallRunCameraIncline * cameraInclineFactor);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var cameraInclineFactor = ComputeCameraInclineFactor(playerInput);
|
||||||
|
cameraIncline = Mathf.DegToRad(GroundedCameraIncline * cameraInclineFactor * -1.0f);
|
||||||
|
}
|
||||||
|
currentCameraRotation.Z = (float) Mathf.Lerp(currentCameraRotation.Z, cameraIncline, delta * CameraInclineAcceleration);
|
||||||
_cameraAnchor.Rotation = currentCameraRotation;
|
_cameraAnchor.Rotation = currentCameraRotation;
|
||||||
|
|
||||||
|
if (isSliding)
|
||||||
|
{
|
||||||
|
_cameraAnchor.Position = Vector3.Down*SlidingCameraHeightOffset;
|
||||||
|
float noise1D = _slidingNoise.GetNoise1D(Time.GetTicksMsec());
|
||||||
|
float noiseAmplitude = SlidingJitterAmplitude*Mathf.Clamp(playerVelocity.Length(), 0f, 1f);
|
||||||
|
_cameraAnchor.Position += Vector3.Up*noise1D*noiseAmplitude;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_cameraAnchor.Position = Vector3.Zero;
|
||||||
|
}
|
||||||
|
|
||||||
_camera.GlobalTransform = _cameraAnchor.GetGlobalTransformInterpolated();
|
_camera.GlobalTransform = _cameraAnchor.GetGlobalTransformInterpolated();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public float ComputeCameraInclineFactor(Vector3 direction)
|
||||||
|
{
|
||||||
|
var forward = GetForwardHorizontalVector().Normalized();
|
||||||
|
var crossProduct = forward.Cross(direction);
|
||||||
|
return crossProduct.Length()*Mathf.Sign(crossProduct.Y);
|
||||||
|
}
|
||||||
|
|
||||||
public Vector3 GetForwardHorizontalVector()
|
public Vector3 GetForwardHorizontalVector()
|
||||||
{
|
{
|
||||||
return GetGlobalTransform().Basis.Z;
|
return GetGlobalTransform().Basis.Z;
|
||||||
|
|||||||
@@ -1,14 +1,63 @@
|
|||||||
[gd_scene load_steps=6 format=3 uid="uid://0ysqmqphq6mq"]
|
[gd_scene load_steps=5 format=3 uid="uid://0ysqmqphq6mq"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://dtkdrnsmlwm67" path="res://systems/head/HeadSystem.cs" id="1_8abgy"]
|
[ext_resource type="Script" uid="uid://dtkdrnsmlwm67" path="res://systems/head/HeadSystem.cs" id="1_8abgy"]
|
||||||
[ext_resource type="Material" uid="uid://dtq8i1ka1f2pn" path="res://player_controller/Assets/Materials/Health/CameraVignette.tres" id="2_urko7"]
|
|
||||||
[ext_resource type="Material" uid="uid://nyh5tn1yoxeu" path="res://player_controller/Assets/Materials/Health/CameraDistortion.tres" id="3_0hyrq"]
|
|
||||||
[ext_resource type="Shader" uid="uid://btw6vsb6sa7sn" path="res://player_controller/Shaders/Blur.gdshader" id="4_ubhf8"]
|
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_o1np4"]
|
[sub_resource type="Animation" id="Animation_urko7"]
|
||||||
shader = ExtResource("4_ubhf8")
|
length = 0.001
|
||||||
shader_parameter/limit = 0.0
|
tracks/0/type = "bezier"
|
||||||
shader_parameter/blur = 0.0
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath("..:rotation:x")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/keys = {
|
||||||
|
"handle_modes": PackedInt32Array(0),
|
||||||
|
"points": PackedFloat32Array(0, -0.15, 0, 0.15, 0),
|
||||||
|
"times": PackedFloat32Array(0)
|
||||||
|
}
|
||||||
|
tracks/1/type = "bezier"
|
||||||
|
tracks/1/imported = false
|
||||||
|
tracks/1/enabled = true
|
||||||
|
tracks/1/path = NodePath("..:rotation:z")
|
||||||
|
tracks/1/interp = 1
|
||||||
|
tracks/1/loop_wrap = true
|
||||||
|
tracks/1/keys = {
|
||||||
|
"handle_modes": PackedInt32Array(0),
|
||||||
|
"points": PackedFloat32Array(0, -0.15, 0, 0.15, 0),
|
||||||
|
"times": PackedFloat32Array(0)
|
||||||
|
}
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id="Animation_8abgy"]
|
||||||
|
resource_name = "mantle"
|
||||||
|
length = 0.3
|
||||||
|
tracks/0/type = "bezier"
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath("..:rotation:x")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/keys = {
|
||||||
|
"handle_modes": PackedInt32Array(2, 2, 2),
|
||||||
|
"points": PackedFloat32Array(0, 0, 0, 0.050000004, 0, -0.17453292, -0.050000004, 0, 0.050000004, 0, 0, -0.050000004, 0, 0, 0),
|
||||||
|
"times": PackedFloat32Array(0, 0.15, 0.3)
|
||||||
|
}
|
||||||
|
tracks/1/type = "bezier"
|
||||||
|
tracks/1/imported = false
|
||||||
|
tracks/1/enabled = true
|
||||||
|
tracks/1/path = NodePath("..:rotation:z")
|
||||||
|
tracks/1/interp = 1
|
||||||
|
tracks/1/loop_wrap = true
|
||||||
|
tracks/1/keys = {
|
||||||
|
"handle_modes": PackedInt32Array(2, 2, 2, 2),
|
||||||
|
"points": PackedFloat32Array(0.00011616433, 0, 0, 0.033333335, 0, -0.05235988, -0.033333335, 0, 0.033333335, 0, 0.05235988, -0.033333335, 0, 0.03333334, 0, 0, -0.03333334, 0, 0, 0),
|
||||||
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3)
|
||||||
|
}
|
||||||
|
|
||||||
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_0hyrq"]
|
||||||
|
_data = {
|
||||||
|
&"RESET": SubResource("Animation_urko7"),
|
||||||
|
&"mantle": SubResource("Animation_8abgy")
|
||||||
|
}
|
||||||
|
|
||||||
[node name="HeadSystem" type="Node3D"]
|
[node name="HeadSystem" type="Node3D"]
|
||||||
script = ExtResource("1_8abgy")
|
script = ExtResource("1_8abgy")
|
||||||
@@ -16,46 +65,14 @@ script = ExtResource("1_8abgy")
|
|||||||
[node name="CameraSmooth" type="Node3D" parent="."]
|
[node name="CameraSmooth" type="Node3D" parent="."]
|
||||||
|
|
||||||
[node name="Camera3D" type="Camera3D" parent="CameraSmooth"]
|
[node name="Camera3D" type="Camera3D" parent="CameraSmooth"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994, 0, 0, 0)
|
||||||
current = true
|
current = true
|
||||||
fov = 90.0
|
fov = 90.0
|
||||||
|
|
||||||
[node name="CLVignette(Layer_1)" type="CanvasLayer" parent="CameraSmooth/Camera3D"]
|
|
||||||
|
|
||||||
[node name="HealthVignetteRect" type="ColorRect" parent="CameraSmooth/Camera3D/CLVignette(Layer_1)"]
|
|
||||||
material = ExtResource("2_urko7")
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
mouse_filter = 2
|
|
||||||
|
|
||||||
[node name="CLDistortion(Layer_2)" type="CanvasLayer" parent="CameraSmooth/Camera3D"]
|
|
||||||
layer = 2
|
|
||||||
|
|
||||||
[node name="HealthDistortionRect" type="ColorRect" parent="CameraSmooth/Camera3D/CLDistortion(Layer_2)"]
|
|
||||||
material = ExtResource("3_0hyrq")
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
mouse_filter = 2
|
|
||||||
|
|
||||||
[node name="CLBlur(Layer_2)" type="CanvasLayer" parent="CameraSmooth/Camera3D"]
|
|
||||||
layer = 2
|
|
||||||
|
|
||||||
[node name="BlurRect" type="ColorRect" parent="CameraSmooth/Camera3D/CLBlur(Layer_2)"]
|
|
||||||
material = SubResource("ShaderMaterial_o1np4")
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
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="."]
|
[node name="CameraAnchor" type="Marker3D" parent="."]
|
||||||
|
|
||||||
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||||
|
root_node = NodePath("../CameraSmooth/Camera3D")
|
||||||
|
libraries = {
|
||||||
|
&"": SubResource("AnimationLibrary_0hyrq")
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://7wm8ywvujwf"]
|
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_36r6u"]
|
|
||||||
|
|
||||||
[resource]
|
|
||||||
script = ExtResource("1_36r6u")
|
|
||||||
name = &""
|
|
||||||
action_value_type = 0
|
|
||||||
block_lower_priority_actions = true
|
|
||||||
emit_as_godot_actions = false
|
|
||||||
is_remappable = false
|
|
||||||
display_name = ""
|
|
||||||
display_category = ""
|
|
||||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
[gd_resource type="Resource" script_class="GUIDEMappingContext" load_steps=102 format=3 uid="uid://bl5crtu1gkrtr"]
|
[gd_resource type="Resource" script_class="GUIDEMappingContext" load_steps=161 format=3 uid="uid://bl5crtu1gkrtr"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://cpplm41b5bt6m" path="res://addons/guide/guide_action_mapping.gd" id="1_qmhk6"]
|
[ext_resource type="Script" uid="uid://cpplm41b5bt6m" path="res://addons/guide/guide_action_mapping.gd" id="1_qmhk6"]
|
||||||
[ext_resource type="Resource" uid="uid://htqvokm8mufq" path="res://systems/inputs/base_mode/move.tres" id="2_g6bbx"]
|
[ext_resource type="Resource" uid="uid://htqvokm8mufq" path="res://systems/inputs/base_mode/move.tres" id="2_g6bbx"]
|
||||||
@@ -12,25 +12,32 @@
|
|||||||
[ext_resource type="Script" uid="uid://bbhoxsiqwo07l" path="res://addons/guide/inputs/guide_input_joy_axis_1d.gd" id="10_cvxqo"]
|
[ext_resource type="Script" uid="uid://bbhoxsiqwo07l" path="res://addons/guide/inputs/guide_input_joy_axis_1d.gd" id="10_cvxqo"]
|
||||||
[ext_resource type="Script" uid="uid://bjm4myqxg4phm" path="res://addons/guide/modifiers/guide_modifier_scale.gd" id="11_j3axn"]
|
[ext_resource type="Script" uid="uid://bjm4myqxg4phm" path="res://addons/guide/modifiers/guide_modifier_scale.gd" id="11_j3axn"]
|
||||||
[ext_resource type="Script" uid="uid://ckggy40lm0vjc" path="res://addons/guide/modifiers/guide_modifier_negate.gd" id="12_kxb2c"]
|
[ext_resource type="Script" uid="uid://ckggy40lm0vjc" path="res://addons/guide/modifiers/guide_modifier_negate.gd" id="12_kxb2c"]
|
||||||
|
[ext_resource type="Script" uid="uid://b6bwb7ie85kl1" path="res://addons/guide/inputs/guide_input_mouse_axis_1d.gd" id="13_j3axn"]
|
||||||
[ext_resource type="Resource" uid="uid://ccrb5xsnphc8" path="res://systems/inputs/base_mode/rotate_floorplane.tres" id="13_v2ywt"]
|
[ext_resource type="Resource" uid="uid://ccrb5xsnphc8" path="res://systems/inputs/base_mode/rotate_floorplane.tres" id="13_v2ywt"]
|
||||||
[ext_resource type="Resource" uid="uid://c3e0ivgaxrsyb" path="res://systems/inputs/base_mode/aim_down.tres" id="14_yp12v"]
|
[ext_resource type="Resource" uid="uid://c3e0ivgaxrsyb" path="res://systems/inputs/base_mode/aim_down.tres" id="14_yp12v"]
|
||||||
[ext_resource type="Script" uid="uid://b52rqq28tuqpg" path="res://addons/guide/triggers/guide_trigger_pressed.gd" id="15_fykw6"]
|
[ext_resource type="Script" uid="uid://b52rqq28tuqpg" path="res://addons/guide/triggers/guide_trigger_pressed.gd" id="15_fykw6"]
|
||||||
[ext_resource type="Script" uid="uid://b4cdrn4paoj3i" path="res://addons/guide/triggers/guide_trigger_down.gd" id="15_g6bbx"]
|
[ext_resource type="Script" uid="uid://b4cdrn4paoj3i" path="res://addons/guide/triggers/guide_trigger_down.gd" id="15_g6bbx"]
|
||||||
[ext_resource type="Resource" uid="uid://b334rau1yxmm7" path="res://systems/inputs/base_mode/empower_down.tres" id="16_0qat1"]
|
[ext_resource type="Script" uid="uid://cgy4anjdob2tp" path="res://addons/guide/modifiers/guide_modifier_window_relative.gd" id="15_rvpjj"]
|
||||||
[ext_resource type="Resource" uid="uid://bebstkm608wxx" path="res://systems/inputs/base_mode/aim_pressed.tres" id="16_li5ak"]
|
[ext_resource type="Resource" uid="uid://bebstkm608wxx" path="res://systems/inputs/base_mode/aim_pressed.tres" id="16_li5ak"]
|
||||||
[ext_resource type="Resource" uid="uid://j1o5ud0plk4" path="res://systems/inputs/base_mode/aim_release.tres" id="16_rvpjj"]
|
[ext_resource type="Resource" uid="uid://j1o5ud0plk4" path="res://systems/inputs/base_mode/aim_release.tres" id="16_rvpjj"]
|
||||||
|
[ext_resource type="Script" uid="uid://vgjlx6p007lp" path="res://addons/guide/inputs/guide_input_mouse_button.gd" id="17_kxb2c"]
|
||||||
[ext_resource type="Script" uid="uid://biiggjw6tv4uq" path="res://addons/guide/triggers/guide_trigger_released.gd" id="17_s8kjn"]
|
[ext_resource type="Script" uid="uid://biiggjw6tv4uq" path="res://addons/guide/triggers/guide_trigger_released.gd" id="17_s8kjn"]
|
||||||
[ext_resource type="Resource" uid="uid://7wm8ywvujwf" path="res://systems/inputs/base_mode/aim_cancel.tres" id="18_vibkn"]
|
|
||||||
[ext_resource type="Resource" uid="uid://bbce5wfwxpns1" path="res://systems/inputs/base_mode/empower_release.tres" id="19_li5ak"]
|
|
||||||
[ext_resource type="Script" uid="uid://rvttn472ix6v" path="res://addons/guide/inputs/guide_input_joy_button.gd" id="19_qkgmj"]
|
[ext_resource type="Script" uid="uid://rvttn472ix6v" path="res://addons/guide/inputs/guide_input_joy_button.gd" id="19_qkgmj"]
|
||||||
[ext_resource type="Resource" uid="uid://bdit2jy5gbpts" path="res://systems/inputs/base_mode/jump.tres" id="21_818lq"]
|
[ext_resource type="Resource" uid="uid://bdit2jy5gbpts" path="res://systems/inputs/base_mode/jump.tres" id="21_818lq"]
|
||||||
[ext_resource type="Resource" uid="uid://b5gx3q8nvu72e" path="res://systems/inputs/base_mode/hit.tres" id="22_2hs2y"]
|
[ext_resource type="Resource" uid="uid://b5gx3q8nvu72e" path="res://systems/inputs/base_mode/hit.tres" id="22_2hs2y"]
|
||||||
[ext_resource type="Resource" uid="uid://d2r0ur8k3cuu3" path="res://systems/inputs/base_mode/dash.tres" id="23_g6bbx"]
|
[ext_resource type="Resource" uid="uid://d2r0ur8k3cuu3" path="res://systems/inputs/base_mode/dash.tres" id="23_g6bbx"]
|
||||||
[ext_resource type="Script" uid="uid://dsa1dnifd6w32" path="res://addons/guide/guide_mapping_context.gd" id="23_llfhp"]
|
[ext_resource type="Script" uid="uid://dsa1dnifd6w32" path="res://addons/guide/guide_mapping_context.gd" id="23_llfhp"]
|
||||||
[ext_resource type="Resource" uid="uid://bw5k2gsv3jqcv" path="res://systems/inputs/base_mode/throw.tres" id="24_yp12v"]
|
[ext_resource type="Resource" uid="uid://bbce5wfwxpns1" path="res://systems/inputs/base_mode/slide_pressed.tres" id="23_rvpjj"]
|
||||||
|
[ext_resource type="Resource" uid="uid://b334rau1yxmm7" path="res://systems/inputs/base_mode/slide_released.tres" id="25_rvpjj"]
|
||||||
[ext_resource type="Resource" uid="uid://55b0dsvioj08" path="res://systems/inputs/base_mode/jump_pressed.tres" id="25_si4d4"]
|
[ext_resource type="Resource" uid="uid://55b0dsvioj08" path="res://systems/inputs/base_mode/jump_pressed.tres" id="25_si4d4"]
|
||||||
[ext_resource type="Resource" uid="uid://dgluj0ql5vth7" path="res://systems/inputs/base_mode/pause.tres" id="29_q86qg"]
|
[ext_resource type="Resource" uid="uid://dgluj0ql5vth7" path="res://systems/inputs/base_mode/pause.tres" id="29_q86qg"]
|
||||||
[ext_resource type="Script" uid="uid://cw71o87tvdx3q" path="res://addons/guide/inputs/guide_input_key.gd" id="30_cvxqo"]
|
[ext_resource type="Script" uid="uid://cw71o87tvdx3q" path="res://addons/guide/inputs/guide_input_key.gd" id="30_cvxqo"]
|
||||||
|
[ext_resource type="Resource" uid="uid://spo3pbqjx0eb" path="res://systems/inputs/base_mode/parry.tres" id="30_rvpjj"]
|
||||||
|
[ext_resource type="Resource" uid="uid://dxy0071ic1wdj" path="res://systems/inputs/base_mode/slam.tres" id="32_s8kjn"]
|
||||||
|
[ext_resource type="Resource" uid="uid://s1l0n1iitc6m" path="res://systems/inputs/base_mode/move_back.tres" id="33_fykw6"]
|
||||||
|
[ext_resource type="Resource" uid="uid://brswsknpgwal2" path="res://systems/inputs/base_mode/move_front.tres" id="34_rvpjj"]
|
||||||
|
[ext_resource type="Resource" uid="uid://f3vs6l4m623s" path="res://systems/inputs/base_mode/move_left.tres" id="35_s8kjn"]
|
||||||
|
[ext_resource type="Resource" uid="uid://t612lts1wi1s" path="res://systems/inputs/base_mode/move_right.tres" id="36_vibkn"]
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_vkvga"]
|
[sub_resource type="Resource" id="Resource_vkvga"]
|
||||||
script = ExtResource("4_1rw8g")
|
script = ExtResource("4_1rw8g")
|
||||||
@@ -73,10 +80,24 @@ script = ExtResource("3_yp12v")
|
|||||||
input = SubResource("Resource_05q5j")
|
input = SubResource("Resource_05q5j")
|
||||||
modifiers = Array[ExtResource("5_0qat1")]([SubResource("Resource_tn8ci"), SubResource("Resource_1koh7"), SubResource("Resource_eep0a")])
|
modifiers = Array[ExtResource("5_0qat1")]([SubResource("Resource_tn8ci"), SubResource("Resource_1koh7"), SubResource("Resource_eep0a")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_mfl87"]
|
||||||
|
script = ExtResource("13_j3axn")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_1n4k0"]
|
||||||
|
script = ExtResource("15_rvpjj")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_ukc1w"]
|
||||||
|
script = ExtResource("12_kxb2c")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_4pf65"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_mfl87")
|
||||||
|
modifiers = Array[ExtResource("5_0qat1")]([SubResource("Resource_1n4k0"), SubResource("Resource_ukc1w")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_tgr2g"]
|
[sub_resource type="Resource" id="Resource_tgr2g"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("9_q86qg")
|
action = ExtResource("9_q86qg")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_dew8i")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_dew8i"), SubResource("Resource_4pf65")])
|
||||||
metadata/_guide_input_mappings_collapsed = false
|
metadata/_guide_input_mappings_collapsed = false
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_pf0ii"]
|
[sub_resource type="Resource" id="Resource_pf0ii"]
|
||||||
@@ -98,10 +119,25 @@ script = ExtResource("3_yp12v")
|
|||||||
input = SubResource("Resource_pf0ii")
|
input = SubResource("Resource_pf0ii")
|
||||||
modifiers = Array[ExtResource("5_0qat1")]([SubResource("Resource_nh7x4"), SubResource("Resource_04n84"), SubResource("Resource_m3aj7")])
|
modifiers = Array[ExtResource("5_0qat1")]([SubResource("Resource_nh7x4"), SubResource("Resource_04n84"), SubResource("Resource_m3aj7")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_2ioub"]
|
||||||
|
script = ExtResource("13_j3axn")
|
||||||
|
axis = 1
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_fvpbi"]
|
||||||
|
script = ExtResource("12_kxb2c")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_7l3h2"]
|
||||||
|
script = ExtResource("15_rvpjj")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_fyd0i"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_2ioub")
|
||||||
|
modifiers = Array[ExtResource("5_0qat1")]([SubResource("Resource_fvpbi"), SubResource("Resource_7l3h2")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_iarn8"]
|
[sub_resource type="Resource" id="Resource_iarn8"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("13_v2ywt")
|
action = ExtResource("13_v2ywt")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_qu2wi")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_qu2wi"), SubResource("Resource_fyd0i")])
|
||||||
metadata/_guide_input_mappings_collapsed = false
|
metadata/_guide_input_mappings_collapsed = false
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_si4d4"]
|
[sub_resource type="Resource" id="Resource_si4d4"]
|
||||||
@@ -116,10 +152,22 @@ script = ExtResource("3_yp12v")
|
|||||||
input = SubResource("Resource_si4d4")
|
input = SubResource("Resource_si4d4")
|
||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_2tfaw")])
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_2tfaw")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_o031f"]
|
||||||
|
script = ExtResource("17_kxb2c")
|
||||||
|
button = 2
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_3s858"]
|
||||||
|
script = ExtResource("15_g6bbx")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_wh232"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_o031f")
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_3s858")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_cvxqo"]
|
[sub_resource type="Resource" id="Resource_cvxqo"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("14_yp12v")
|
action = ExtResource("14_yp12v")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_q86qg")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_q86qg"), SubResource("Resource_wh232")])
|
||||||
metadata/_guide_input_mappings_collapsed = false
|
metadata/_guide_input_mappings_collapsed = false
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_llfhp"]
|
[sub_resource type="Resource" id="Resource_llfhp"]
|
||||||
@@ -134,10 +182,22 @@ script = ExtResource("3_yp12v")
|
|||||||
input = SubResource("Resource_llfhp")
|
input = SubResource("Resource_llfhp")
|
||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_ib0yi")])
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_ib0yi")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_xh105"]
|
||||||
|
script = ExtResource("17_kxb2c")
|
||||||
|
button = 2
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_30oue"]
|
||||||
|
script = ExtResource("15_fykw6")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_2supu"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_xh105")
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_30oue")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_tb8ii"]
|
[sub_resource type="Resource" id="Resource_tb8ii"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("16_li5ak")
|
action = ExtResource("16_li5ak")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_r6kml")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_r6kml"), SubResource("Resource_2supu")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_cqc4k"]
|
[sub_resource type="Resource" id="Resource_cqc4k"]
|
||||||
script = ExtResource("10_cvxqo")
|
script = ExtResource("10_cvxqo")
|
||||||
@@ -151,63 +211,83 @@ script = ExtResource("3_yp12v")
|
|||||||
input = SubResource("Resource_cqc4k")
|
input = SubResource("Resource_cqc4k")
|
||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_vanwy")])
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_vanwy")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_omo75"]
|
||||||
|
script = ExtResource("17_kxb2c")
|
||||||
|
button = 2
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_npyga"]
|
||||||
|
script = ExtResource("17_s8kjn")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_yxj6r"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_omo75")
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_npyga")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_iihs4"]
|
[sub_resource type="Resource" id="Resource_iihs4"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("16_rvpjj")
|
action = ExtResource("16_rvpjj")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_bkx7d")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_bkx7d"), SubResource("Resource_yxj6r")])
|
||||||
metadata/_guide_input_mappings_collapsed = false
|
metadata/_guide_input_mappings_collapsed = false
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_fykw6"]
|
|
||||||
script = ExtResource("10_cvxqo")
|
|
||||||
axis = 5
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_rvpjj"]
|
|
||||||
script = ExtResource("15_fykw6")
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_s8kjn"]
|
|
||||||
script = ExtResource("3_yp12v")
|
|
||||||
input = SubResource("Resource_fykw6")
|
|
||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_rvpjj")])
|
|
||||||
metadata/_guide_triggers_collapsed = false
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_vibkn"]
|
|
||||||
script = ExtResource("1_qmhk6")
|
|
||||||
action = ExtResource("16_0qat1")
|
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_s8kjn")])
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_qkgmj"]
|
[sub_resource type="Resource" id="Resource_qkgmj"]
|
||||||
script = ExtResource("10_cvxqo")
|
script = ExtResource("10_cvxqo")
|
||||||
axis = 5
|
axis = 5
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_st2ej"]
|
[sub_resource type="Resource" id="Resource_st2ej"]
|
||||||
|
script = ExtResource("15_g6bbx")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_s8kjn"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_qkgmj")
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_st2ej")])
|
||||||
|
metadata/_guide_triggers_collapsed = false
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_wcvib"]
|
||||||
|
script = ExtResource("30_cvxqo")
|
||||||
|
key = 4194326
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_8ifoc"]
|
||||||
|
script = ExtResource("15_g6bbx")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_imjft"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_wcvib")
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_8ifoc")])
|
||||||
|
metadata/_guide_triggers_collapsed = false
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_vibkn"]
|
||||||
|
script = ExtResource("1_qmhk6")
|
||||||
|
action = ExtResource("23_rvpjj")
|
||||||
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_s8kjn"), SubResource("Resource_imjft")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_f3pn5"]
|
||||||
|
script = ExtResource("10_cvxqo")
|
||||||
|
axis = 5
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_rvpjj"]
|
||||||
script = ExtResource("17_s8kjn")
|
script = ExtResource("17_s8kjn")
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_818lq"]
|
[sub_resource type="Resource" id="Resource_818lq"]
|
||||||
script = ExtResource("3_yp12v")
|
script = ExtResource("3_yp12v")
|
||||||
input = SubResource("Resource_qkgmj")
|
input = SubResource("Resource_f3pn5")
|
||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_st2ej")])
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_rvpjj")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_qksfw"]
|
||||||
|
script = ExtResource("30_cvxqo")
|
||||||
|
key = 4194326
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_bhf7o"]
|
||||||
|
script = ExtResource("17_s8kjn")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_woy8j"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_qksfw")
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_bhf7o")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_2hs2y"]
|
[sub_resource type="Resource" id="Resource_2hs2y"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("19_li5ak")
|
action = ExtResource("25_rvpjj")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_818lq")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_818lq"), SubResource("Resource_woy8j")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_lfx76"]
|
|
||||||
script = ExtResource("19_qkgmj")
|
|
||||||
button = 2
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_oruo7"]
|
|
||||||
script = ExtResource("15_fykw6")
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_4ee3d"]
|
|
||||||
script = ExtResource("3_yp12v")
|
|
||||||
input = SubResource("Resource_lfx76")
|
|
||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_oruo7")])
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_0s4kt"]
|
|
||||||
script = ExtResource("1_qmhk6")
|
|
||||||
action = ExtResource("18_vibkn")
|
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_4ee3d")])
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_1fkas"]
|
[sub_resource type="Resource" id="Resource_1fkas"]
|
||||||
script = ExtResource("19_qkgmj")
|
script = ExtResource("19_qkgmj")
|
||||||
@@ -221,10 +301,22 @@ input = SubResource("Resource_1fkas")
|
|||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_6pxii")])
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_6pxii")])
|
||||||
metadata/_guide_triggers_collapsed = false
|
metadata/_guide_triggers_collapsed = false
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_pv160"]
|
||||||
|
script = ExtResource("30_cvxqo")
|
||||||
|
key = 32
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_ra6lx"]
|
||||||
|
script = ExtResource("15_fykw6")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_q44n6"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_pv160")
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_ra6lx")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_d2r0d"]
|
[sub_resource type="Resource" id="Resource_d2r0d"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("25_si4d4")
|
action = ExtResource("25_si4d4")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_jy4f1")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_jy4f1"), SubResource("Resource_q44n6")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_oapce"]
|
[sub_resource type="Resource" id="Resource_oapce"]
|
||||||
script = ExtResource("19_qkgmj")
|
script = ExtResource("19_qkgmj")
|
||||||
@@ -234,10 +326,18 @@ script = ExtResource("3_yp12v")
|
|||||||
input = SubResource("Resource_oapce")
|
input = SubResource("Resource_oapce")
|
||||||
metadata/_guide_triggers_collapsed = false
|
metadata/_guide_triggers_collapsed = false
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_assli"]
|
||||||
|
script = ExtResource("30_cvxqo")
|
||||||
|
key = 32
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_x5v0d"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_assli")
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_xt1x5"]
|
[sub_resource type="Resource" id="Resource_xt1x5"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("21_818lq")
|
action = ExtResource("21_818lq")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_8w5gu")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_8w5gu"), SubResource("Resource_x5v0d")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_li5ak"]
|
[sub_resource type="Resource" id="Resource_li5ak"]
|
||||||
script = ExtResource("19_qkgmj")
|
script = ExtResource("19_qkgmj")
|
||||||
@@ -251,10 +351,50 @@ script = ExtResource("3_yp12v")
|
|||||||
input = SubResource("Resource_li5ak")
|
input = SubResource("Resource_li5ak")
|
||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_paxxe")])
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_paxxe")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_pdblu"]
|
||||||
|
script = ExtResource("17_kxb2c")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_q0e5d"]
|
||||||
|
script = ExtResource("15_fykw6")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_a8sqk"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_pdblu")
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_q0e5d")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_ew1hw"]
|
[sub_resource type="Resource" id="Resource_ew1hw"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("22_2hs2y")
|
action = ExtResource("22_2hs2y")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_500v3")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_500v3"), SubResource("Resource_a8sqk")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_kx31q"]
|
||||||
|
script = ExtResource("19_qkgmj")
|
||||||
|
button = 9
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_oux88"]
|
||||||
|
script = ExtResource("15_fykw6")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_b7w5s"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_kx31q")
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_oux88")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_jk2g8"]
|
||||||
|
script = ExtResource("30_cvxqo")
|
||||||
|
key = 70
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_y7p41"]
|
||||||
|
script = ExtResource("15_fykw6")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_3uxou"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_jk2g8")
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_y7p41")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_3frwi"]
|
||||||
|
script = ExtResource("1_qmhk6")
|
||||||
|
action = ExtResource("30_rvpjj")
|
||||||
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_b7w5s"), SubResource("Resource_3uxou")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_g6bbx"]
|
[sub_resource type="Resource" id="Resource_g6bbx"]
|
||||||
script = ExtResource("19_qkgmj")
|
script = ExtResource("19_qkgmj")
|
||||||
@@ -268,28 +408,52 @@ script = ExtResource("3_yp12v")
|
|||||||
input = SubResource("Resource_g6bbx")
|
input = SubResource("Resource_g6bbx")
|
||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_yp12v")])
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_yp12v")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_xbeov"]
|
||||||
|
script = ExtResource("30_cvxqo")
|
||||||
|
key = 4194325
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_rt8uw"]
|
||||||
|
script = ExtResource("15_fykw6")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_hj46p"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_xbeov")
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_rt8uw")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_0qat1"]
|
[sub_resource type="Resource" id="Resource_0qat1"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("23_g6bbx")
|
action = ExtResource("23_g6bbx")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_1rw8g")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_1rw8g"), SubResource("Resource_hj46p")])
|
||||||
metadata/_guide_input_mappings_collapsed = false
|
metadata/_guide_input_mappings_collapsed = false
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_j3axn"]
|
[sub_resource type="Resource" id="Resource_o5yys"]
|
||||||
script = ExtResource("19_qkgmj")
|
script = ExtResource("19_qkgmj")
|
||||||
button = 3
|
button = 2
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_kxb2c"]
|
[sub_resource type="Resource" id="Resource_06f1o"]
|
||||||
script = ExtResource("15_fykw6")
|
script = ExtResource("15_g6bbx")
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_v2ywt"]
|
[sub_resource type="Resource" id="Resource_v2ywt"]
|
||||||
script = ExtResource("3_yp12v")
|
script = ExtResource("3_yp12v")
|
||||||
input = SubResource("Resource_j3axn")
|
input = SubResource("Resource_o5yys")
|
||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_kxb2c")])
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_06f1o")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_qpgnj"]
|
||||||
|
script = ExtResource("30_cvxqo")
|
||||||
|
key = 69
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_g5tel"]
|
||||||
|
script = ExtResource("15_g6bbx")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_s6d3g"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_qpgnj")
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_g5tel")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_vtk18"]
|
[sub_resource type="Resource" id="Resource_vtk18"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("24_yp12v")
|
action = ExtResource("32_s8kjn")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_v2ywt")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_v2ywt"), SubResource("Resource_s6d3g")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_s4bc4"]
|
[sub_resource type="Resource" id="Resource_s4bc4"]
|
||||||
script = ExtResource("30_cvxqo")
|
script = ExtResource("30_cvxqo")
|
||||||
@@ -333,7 +497,59 @@ action = ExtResource("29_q86qg")
|
|||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_ai85f"), SubResource("Resource_1ycft"), SubResource("Resource_k8i2y")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_ai85f"), SubResource("Resource_1ycft"), SubResource("Resource_k8i2y")])
|
||||||
metadata/_guide_input_mappings_collapsed = false
|
metadata/_guide_input_mappings_collapsed = false
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_kcylj"]
|
||||||
|
script = ExtResource("30_cvxqo")
|
||||||
|
key = 83
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_yq6lj"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_kcylj")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_fjku4"]
|
||||||
|
script = ExtResource("1_qmhk6")
|
||||||
|
action = ExtResource("33_fykw6")
|
||||||
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_yq6lj")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_wt677"]
|
||||||
|
script = ExtResource("30_cvxqo")
|
||||||
|
key = 87
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_ly2iy"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_wt677")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_odnhd"]
|
||||||
|
script = ExtResource("1_qmhk6")
|
||||||
|
action = ExtResource("34_rvpjj")
|
||||||
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_ly2iy")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_i62p1"]
|
||||||
|
script = ExtResource("30_cvxqo")
|
||||||
|
key = 65
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_3d0gd"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_i62p1")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_0eff7"]
|
||||||
|
script = ExtResource("1_qmhk6")
|
||||||
|
action = ExtResource("35_s8kjn")
|
||||||
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_3d0gd")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_uqqnm"]
|
||||||
|
script = ExtResource("30_cvxqo")
|
||||||
|
key = 68
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_7io5e"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
input = SubResource("Resource_uqqnm")
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_gt77e"]
|
||||||
|
script = ExtResource("1_qmhk6")
|
||||||
|
action = ExtResource("36_vibkn")
|
||||||
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_7io5e")])
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("23_llfhp")
|
script = ExtResource("23_llfhp")
|
||||||
mappings = Array[ExtResource("1_qmhk6")]([SubResource("Resource_88x08"), SubResource("Resource_tgr2g"), SubResource("Resource_iarn8"), SubResource("Resource_cvxqo"), SubResource("Resource_tb8ii"), SubResource("Resource_iihs4"), SubResource("Resource_vibkn"), SubResource("Resource_2hs2y"), SubResource("Resource_0s4kt"), SubResource("Resource_d2r0d"), SubResource("Resource_xt1x5"), SubResource("Resource_ew1hw"), SubResource("Resource_0qat1"), SubResource("Resource_vtk18"), SubResource("Resource_weyro")])
|
mappings = Array[ExtResource("1_qmhk6")]([SubResource("Resource_88x08"), SubResource("Resource_tgr2g"), SubResource("Resource_iarn8"), SubResource("Resource_cvxqo"), SubResource("Resource_tb8ii"), SubResource("Resource_iihs4"), SubResource("Resource_vibkn"), SubResource("Resource_2hs2y"), SubResource("Resource_d2r0d"), SubResource("Resource_xt1x5"), SubResource("Resource_ew1hw"), SubResource("Resource_3frwi"), SubResource("Resource_0qat1"), SubResource("Resource_vtk18"), SubResource("Resource_weyro"), SubResource("Resource_fjku4"), SubResource("Resource_odnhd"), SubResource("Resource_0eff7"), SubResource("Resource_gt77e")])
|
||||||
metadata/_custom_type_script = "uid://dsa1dnifd6w32"
|
metadata/_custom_type_script = "uid://dsa1dnifd6w32"
|
||||||
|
|||||||
8
systems/inputs/base_mode/move_back.tres
Normal file
8
systems/inputs/base_mode/move_back.tres
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://s1l0n1iitc6m"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_7ljxs"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_7ljxs")
|
||||||
|
action_value_type = 1
|
||||||
|
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||||
8
systems/inputs/base_mode/move_front.tres
Normal file
8
systems/inputs/base_mode/move_front.tres
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://brswsknpgwal2"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_6kcci"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_6kcci")
|
||||||
|
action_value_type = 1
|
||||||
|
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||||
8
systems/inputs/base_mode/move_left.tres
Normal file
8
systems/inputs/base_mode/move_left.tres
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://f3vs6l4m623s"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_u1qdq"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_u1qdq")
|
||||||
|
action_value_type = 1
|
||||||
|
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||||
8
systems/inputs/base_mode/move_right.tres
Normal file
8
systems/inputs/base_mode/move_right.tres
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://t612lts1wi1s"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_gd7dq"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_gd7dq")
|
||||||
|
action_value_type = 1
|
||||||
|
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||||
7
systems/inputs/base_mode/parry.tres
Normal file
7
systems/inputs/base_mode/parry.tres
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://spo3pbqjx0eb"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_hlutc"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_hlutc")
|
||||||
|
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||||
7
systems/inputs/base_mode/slam.tres
Normal file
7
systems/inputs/base_mode/slam.tres
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://dxy0071ic1wdj"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_6evmc"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_6evmc")
|
||||||
|
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://bw5k2gsv3jqcv"]
|
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_7f0q6"]
|
|
||||||
|
|
||||||
[resource]
|
|
||||||
script = ExtResource("1_7f0q6")
|
|
||||||
name = &""
|
|
||||||
action_value_type = 0
|
|
||||||
block_lower_priority_actions = true
|
|
||||||
emit_as_godot_actions = false
|
|
||||||
is_remappable = false
|
|
||||||
display_name = ""
|
|
||||||
display_category = ""
|
|
||||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
|
||||||
@@ -6,7 +6,11 @@ class_name InputController
|
|||||||
|
|
||||||
@export_group("Move actions")
|
@export_group("Move actions")
|
||||||
@export var move:GUIDEAction
|
@export var move:GUIDEAction
|
||||||
@export var rotate_y:GUIDEAction
|
@export var move_left:GUIDEAction
|
||||||
|
@export var move_right:GUIDEAction
|
||||||
|
@export var move_front:GUIDEAction
|
||||||
|
@export var move_back:GUIDEAction
|
||||||
|
@export var rotate_vertical:GUIDEAction
|
||||||
@export var rotate_floorplane:GUIDEAction
|
@export var rotate_floorplane:GUIDEAction
|
||||||
|
|
||||||
@export_group("Trigger actions")
|
@export_group("Trigger actions")
|
||||||
@@ -17,17 +21,22 @@ class_name InputController
|
|||||||
@export_subgroup("Jump")
|
@export_subgroup("Jump")
|
||||||
@export var jump:GUIDEAction
|
@export var jump:GUIDEAction
|
||||||
@export var jump_pressed:GUIDEAction
|
@export var jump_pressed:GUIDEAction
|
||||||
|
@export_subgroup("Slide")
|
||||||
|
@export var slide_pressed:GUIDEAction
|
||||||
|
@export var slide_released:GUIDEAction
|
||||||
@export_subgroup("Other")
|
@export_subgroup("Other")
|
||||||
@export var empower_down:GUIDEAction
|
|
||||||
@export var empower_released:GUIDEAction
|
|
||||||
@export var aim_canceled:GUIDEAction
|
|
||||||
@export var hit:GUIDEAction
|
@export var hit:GUIDEAction
|
||||||
|
@export var parry:GUIDEAction
|
||||||
@export var dash:GUIDEAction
|
@export var dash:GUIDEAction
|
||||||
@export var throw:GUIDEAction
|
@export var slam:GUIDEAction
|
||||||
|
|
||||||
|
signal input_device_changed(is_gamepad: bool)
|
||||||
|
var _using_gamepad = false
|
||||||
|
|
||||||
signal input_move(value: Vector3)
|
signal input_move(value: Vector3)
|
||||||
signal input_rotate_y(value: float)
|
signal input_rotate_y(value: float)
|
||||||
signal input_rotate_floorplane(value: float)
|
signal input_rotate_floorplane(value: float)
|
||||||
|
signal input_move_keyboard(value: Vector3)
|
||||||
|
|
||||||
# Jump
|
# Jump
|
||||||
signal input_jump_started
|
signal input_jump_started
|
||||||
@@ -38,13 +47,13 @@ signal input_aim_pressed
|
|||||||
signal input_aim_down
|
signal input_aim_down
|
||||||
signal input_aim_released
|
signal input_aim_released
|
||||||
|
|
||||||
signal input_empower_down
|
signal input_slide_started
|
||||||
signal input_empower_released
|
signal input_slide_ended
|
||||||
signal input_aim_canceled
|
|
||||||
|
|
||||||
signal input_hit
|
signal input_hit
|
||||||
|
signal input_parry
|
||||||
signal input_dash
|
signal input_dash
|
||||||
signal input_throw
|
signal input_slam
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
GUIDE.enable_mapping_context(base_mode)
|
GUIDE.enable_mapping_context(base_mode)
|
||||||
@@ -52,55 +61,69 @@ func _ready() -> void:
|
|||||||
aim_down.triggered.connect(on_input_aim_down)
|
aim_down.triggered.connect(on_input_aim_down)
|
||||||
aim_pressed.triggered.connect(on_input_aim_pressed)
|
aim_pressed.triggered.connect(on_input_aim_pressed)
|
||||||
aim_released.triggered.connect(on_input_aim_released)
|
aim_released.triggered.connect(on_input_aim_released)
|
||||||
empower_down.triggered.connect(on_input_empower_down)
|
|
||||||
empower_released.triggered.connect(on_input_empower_released)
|
|
||||||
aim_canceled.triggered.connect(on_input_aim_canceled)
|
|
||||||
|
|
||||||
jump_pressed.triggered.connect(on_input_jump_started)
|
jump_pressed.triggered.connect(on_input_jump_started)
|
||||||
jump.triggered.connect(on_input_jump_ongoing)
|
jump.triggered.connect(on_input_jump_ongoing)
|
||||||
jump.completed.connect(on_input_jump_ended)
|
jump.completed.connect(on_input_jump_ended)
|
||||||
|
|
||||||
hit.triggered.connect(on_input_hit)
|
slide_pressed.triggered.connect(on_input_slide_started)
|
||||||
dash.triggered.connect(on_input_dash)
|
slide_released.triggered.connect(on_input_slide_ended)
|
||||||
throw.triggered.connect(on_input_throw)
|
|
||||||
|
|
||||||
func on_input_dash():
|
|
||||||
input_dash.emit()
|
|
||||||
|
|
||||||
func on_input_throw():
|
hit.triggered.connect(on_input_hit)
|
||||||
input_throw.emit()
|
parry.triggered.connect(on_input_parry)
|
||||||
|
dash.triggered.connect(on_input_dash)
|
||||||
|
slam.triggered.connect(on_input_slam)
|
||||||
|
|
||||||
|
|
||||||
func on_input_hit():
|
func on_input_hit():
|
||||||
input_hit.emit()
|
input_hit.emit()
|
||||||
|
func on_input_parry():
|
||||||
|
input_parry.emit()
|
||||||
|
func on_input_dash():
|
||||||
|
input_dash.emit()
|
||||||
|
func on_input_slam():
|
||||||
|
input_slam.emit()
|
||||||
|
|
||||||
func on_input_jump_started():
|
func on_input_jump_started():
|
||||||
input_jump_started.emit()
|
input_jump_started.emit()
|
||||||
|
|
||||||
func on_input_jump_ongoing():
|
func on_input_jump_ongoing():
|
||||||
input_jump_ongoing.emit()
|
input_jump_ongoing.emit()
|
||||||
|
|
||||||
func on_input_jump_ended():
|
func on_input_jump_ended():
|
||||||
input_jump_ended.emit()
|
input_jump_ended.emit()
|
||||||
|
|
||||||
func on_input_aim_down():
|
func on_input_aim_down():
|
||||||
input_aim_down.emit()
|
input_aim_down.emit()
|
||||||
|
|
||||||
func on_input_aim_pressed():
|
func on_input_aim_pressed():
|
||||||
input_aim_pressed.emit()
|
input_aim_pressed.emit()
|
||||||
|
|
||||||
func on_input_aim_released():
|
func on_input_aim_released():
|
||||||
input_aim_released.emit()
|
input_aim_released.emit()
|
||||||
|
|
||||||
|
func on_input_slide_started():
|
||||||
|
input_slide_started.emit()
|
||||||
|
func on_input_slide_ended():
|
||||||
|
input_slide_ended.emit()
|
||||||
|
|
||||||
func on_input_empower_down():
|
func _input(event: InputEvent) -> void:
|
||||||
input_empower_down.emit()
|
if event is InputEventKey:
|
||||||
|
if _using_gamepad:
|
||||||
func on_input_empower_released():
|
_using_gamepad = false
|
||||||
input_empower_released.emit()
|
input_device_changed.emit(_using_gamepad)
|
||||||
|
elif event is InputEventJoypadMotion:
|
||||||
func on_input_aim_canceled():
|
if !_using_gamepad:
|
||||||
input_aim_canceled.emit()
|
if abs(event.axis_value) > 0.5:
|
||||||
|
_using_gamepad = true
|
||||||
|
input_device_changed.emit(_using_gamepad)
|
||||||
|
elif event is InputEventJoypadButton:
|
||||||
|
if !_using_gamepad:
|
||||||
|
_using_gamepad = true
|
||||||
|
input_device_changed.emit(_using_gamepad)
|
||||||
|
|
||||||
func _process(_delta: float) -> void:
|
func _process(_delta: float) -> void:
|
||||||
|
var value_horizontal = -move_left.value_axis_1d + move_right.value_axis_1d
|
||||||
|
var value_vertical = -move_front.value_axis_1d + move_back.value_axis_1d
|
||||||
|
var keyboard_input_vector = Vector3(value_horizontal, 0, value_vertical)
|
||||||
|
|
||||||
|
input_move_keyboard.emit(keyboard_input_vector)
|
||||||
input_move.emit(move.value_axis_3d)
|
input_move.emit(move.value_axis_3d)
|
||||||
input_rotate_y.emit(rotate_y.value_axis_1d)
|
input_rotate_y.emit(rotate_vertical.value_axis_1d)
|
||||||
input_rotate_floorplane.emit(rotate_floorplane.value_axis_1d)
|
input_rotate_floorplane.emit(rotate_floorplane.value_axis_1d)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[gd_resource type="Resource" script_class="GUIDEMappingContext" load_steps=78 format=3 uid="uid://c2hpxkcujyc13"]
|
[gd_resource type="Resource" script_class="GUIDEMappingContext" load_steps=66 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="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="Resource" uid="uid://ck43v3q5ype3f" path="res://systems/inputs/menu_mode/back.tres" id="2_6sfub"]
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
[ext_resource type="Resource" uid="uid://by80bubgg0dpx" path="res://systems/inputs/menu_mode/left.tres" id="13_sy651"]
|
[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://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://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"]
|
[sub_resource type="Resource" id="Resource_tp5dr"]
|
||||||
script = ExtResource("4_q6ncx")
|
script = ExtResource("4_q6ncx")
|
||||||
@@ -30,16 +29,11 @@ script = ExtResource("3_scydb")
|
|||||||
input = SubResource("Resource_tp5dr")
|
input = SubResource("Resource_tp5dr")
|
||||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_lvbl0")])
|
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"]
|
[sub_resource type="Resource" id="Resource_17mt7"]
|
||||||
script = ExtResource("7_m88dc")
|
script = ExtResource("7_m88dc")
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_23hmj"]
|
[sub_resource type="Resource" id="Resource_23hmj"]
|
||||||
script = ExtResource("3_scydb")
|
script = ExtResource("3_scydb")
|
||||||
input = SubResource("Resource_h2f8g")
|
|
||||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_17mt7")])
|
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_17mt7")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_len71"]
|
[sub_resource type="Resource" id="Resource_len71"]
|
||||||
@@ -225,48 +219,7 @@ script = ExtResource("1_xno0b")
|
|||||||
action = ExtResource("15_2j2sf")
|
action = ExtResource("15_2j2sf")
|
||||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_3owmx")])
|
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]
|
[resource]
|
||||||
script = ExtResource("2_w5wm7")
|
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")])
|
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")])
|
||||||
metadata/_custom_type_script = "uid://dsa1dnifd6w32"
|
metadata/_custom_type_script = "uid://dsa1dnifd6w32"
|
||||||
|
|||||||
@@ -14,44 +14,100 @@ public partial class MantleSystem: Node3D
|
|||||||
|
|
||||||
private ShapeCast3D _wallInFrontCast3D;
|
private ShapeCast3D _wallInFrontCast3D;
|
||||||
private ShapeCast3D _mantleCast3D;
|
private ShapeCast3D _mantleCast3D;
|
||||||
private RayCast3D _mantleCheckCast3D;
|
|
||||||
|
private ShapeCast3D _inAirWallDetect;
|
||||||
|
private ShapeCast3D _groundedWallDetect;
|
||||||
|
public Curve3D MantleCurve { get; private set; }
|
||||||
|
public Vector3 FirstMantleProfilePoint { get; private set; } = Vector3.Zero;
|
||||||
|
|
||||||
private Option<Vector3> _mantleLocation;
|
public bool IsMantlePossible { get; private set; } = false;
|
||||||
|
public bool EndedOnOtherSideOfWall { get; private set; } = false;
|
||||||
|
public bool FoundGround { get; private set; } = false;
|
||||||
|
public const int WallProfileCastCount = 7;
|
||||||
|
|
||||||
|
private ShapeCast3D[] _wallProfileShapecasts = new ShapeCast3D[WallProfileCastCount];
|
||||||
|
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
_wallInFrontCast3D = GetNode<ShapeCast3D>("WallInFrontCast3D");
|
_wallInFrontCast3D = GetNode<ShapeCast3D>("WallInFrontCast3D");
|
||||||
_mantleCast3D = GetNode<ShapeCast3D>("MantleCast3D");
|
_mantleCast3D = GetNode<ShapeCast3D>("MantleCast3D");
|
||||||
}
|
|
||||||
|
_inAirWallDetect = GetNode<ShapeCast3D>("InAirWallDetect");
|
||||||
public Option<Vector3> FindMantleForHeadRotation(float rotation)
|
_groundedWallDetect = GetNode<ShapeCast3D>("GroundedWallDetect");
|
||||||
{
|
for (int i = 0; i < _wallProfileShapecasts.Length; i++)
|
||||||
_wallInFrontCast3D.SetRotation(new Vector3(
|
|
||||||
_wallInFrontCast3D.Rotation.X,
|
|
||||||
rotation,
|
|
||||||
_wallInFrontCast3D.Rotation.Z));
|
|
||||||
|
|
||||||
if (!_wallInFrontCast3D.IsColliding())
|
|
||||||
{
|
{
|
||||||
return Option<Vector3>.None;
|
_wallProfileShapecasts[i] = GetNode<ShapeCast3D>($"WallProfileShapeCasts/ShapeCast{i + 1}");
|
||||||
}
|
}
|
||||||
|
|
||||||
var collisionPoint = _wallInFrontCast3D.GetCollisionPoint(0);
|
|
||||||
var collisionNormal = _wallInFrontCast3D.GetCollisionNormal(0);
|
|
||||||
return FindMantleLocationAtPoint(collisionPoint, collisionNormal);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Option<Vector3> FindMantleLocationAtPoint(Vector3 point, Vector3 wallNormal)
|
private void SetCastsEnabled(bool enabled)
|
||||||
{
|
{
|
||||||
var horizontalEndLocation = point - wallNormal * MantleEndLocationDistanceFromWall;
|
foreach (var wallProfileShapecast in _wallProfileShapecasts)
|
||||||
var shapeCastStartLocation = horizontalEndLocation + Vector3.Up * MantleHeightCastStart;
|
{
|
||||||
|
wallProfileShapecast.SetEnabled(enabled);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ProcessMantle(bool isGrounded)
|
||||||
|
{
|
||||||
|
_inAirWallDetect.SetEnabled(!isGrounded);
|
||||||
|
_groundedWallDetect.SetEnabled(isGrounded);
|
||||||
|
var isColliding = _inAirWallDetect.IsColliding() || _groundedWallDetect.IsColliding();
|
||||||
|
SetCastsEnabled(isColliding);
|
||||||
|
|
||||||
_mantleCast3D.SetGlobalPosition(shapeCastStartLocation);
|
// Reset state
|
||||||
var targetLocation = Vector3.Down * MantleHeightCastStart + Vector3.Up * MaxStepHeight;
|
IsMantlePossible = false;
|
||||||
_mantleCast3D.SetTargetPosition(targetLocation);
|
EndedOnOtherSideOfWall = false;
|
||||||
|
FoundGround = false;
|
||||||
|
if (!isColliding) return;
|
||||||
|
|
||||||
if (_mantleCast3D.IsColliding() && _mantleCast3D.GetCollisionNormal(0).Y >= 0.1f)
|
// Check if face something wall-like that should be climbable
|
||||||
return Option.Some(_mantleCast3D.GetCollisionPoint(0));
|
var collisionNormal = isGrounded ? _groundedWallDetect.GetCollisionNormal(0) : _inAirWallDetect.GetCollisionNormal(0);
|
||||||
return Option<Vector3>.None;
|
if (collisionNormal.Y > 0.7f) return;
|
||||||
|
|
||||||
|
var spaceState = GetWorld3D().DirectSpaceState;
|
||||||
|
|
||||||
|
MantleCurve = new Curve3D();
|
||||||
|
MantleCurve.AddPoint(Vector3.Zero);
|
||||||
|
var hasFirstProfileHit = false;
|
||||||
|
var previousProfilePoint = GlobalPosition;
|
||||||
|
foreach (var wallProfileShapecast in _wallProfileShapecasts)
|
||||||
|
{
|
||||||
|
// Haven't met the wall yet
|
||||||
|
if (!wallProfileShapecast.IsColliding() && !hasFirstProfileHit) continue;
|
||||||
|
|
||||||
|
var globalTargetPosition = wallProfileShapecast.GlobalPosition + wallProfileShapecast.TargetPosition;
|
||||||
|
|
||||||
|
// Got to the other side of the wall, we stop there
|
||||||
|
if (!wallProfileShapecast.IsColliding())
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
var profilePoint = wallProfileShapecast.GetCollisionPoint(0);
|
||||||
|
var profileNormal = wallProfileShapecast.GetCollisionNormal(0);
|
||||||
|
var shape = wallProfileShapecast.Shape as SphereShape3D;
|
||||||
|
var shapeRadius = shape == null ? 0.125f : shape.Radius;
|
||||||
|
var centerOfShape = profilePoint + profileNormal * shapeRadius;
|
||||||
|
|
||||||
|
// Check if we collided parallel to a wall
|
||||||
|
var isCollisionSameAsTarget = globalTargetPosition.IsEqualApprox(centerOfShape);
|
||||||
|
var isCollidingWithWall = profileNormal.Y < 0.1f;
|
||||||
|
if (isCollisionSameAsTarget || isCollidingWithWall) continue;
|
||||||
|
|
||||||
|
// Check if the path from the previous point makes us go through a wall
|
||||||
|
var query = PhysicsRayQueryParameters3D.Create(previousProfilePoint, centerOfShape, wallProfileShapecast.CollisionMask);
|
||||||
|
var result = spaceState.IntersectRay(query);
|
||||||
|
if (result.Count > 0) break; // We are going through a wall, we stop there
|
||||||
|
|
||||||
|
// We have a valid collision
|
||||||
|
if (!hasFirstProfileHit) FirstMantleProfilePoint = centerOfShape;
|
||||||
|
hasFirstProfileHit = true;
|
||||||
|
previousProfilePoint = centerOfShape;
|
||||||
|
MantleCurve.AddPoint(ToLocal(centerOfShape));
|
||||||
|
}
|
||||||
|
if (MantleCurve.PointCount == 1) return;
|
||||||
|
|
||||||
|
IsMantlePossible = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4
systems/mantle/find_wall_shape.tres
Normal file
4
systems/mantle/find_wall_shape.tres
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
[gd_resource type="SphereShape3D" format=3 uid="uid://dp2p8v7demb5j"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
radius = 0.25
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=4 format=3 uid="uid://wq1okogkhc5l"]
|
[gd_scene load_steps=7 format=3 uid="uid://wq1okogkhc5l"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://bja6tis1vaysu" path="res://systems/mantle/MantleSystem.cs" id="1_2oobp"]
|
[ext_resource type="Script" uid="uid://bja6tis1vaysu" path="res://systems/mantle/MantleSystem.cs" id="1_2oobp"]
|
||||||
|
|
||||||
@@ -8,22 +8,97 @@ height = 1.7
|
|||||||
[sub_resource type="SphereShape3D" id="SphereShape3D_2oobp"]
|
[sub_resource type="SphereShape3D" id="SphereShape3D_2oobp"]
|
||||||
radius = 0.75
|
radius = 0.75
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2oobp"]
|
||||||
|
radius = 0.25
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_i32qj"]
|
||||||
|
radius = 0.25
|
||||||
|
height = 1.5
|
||||||
|
|
||||||
|
[sub_resource type="SphereShape3D" id="SphereShape3D_i32qj"]
|
||||||
|
radius = 0.125
|
||||||
|
|
||||||
[node name="MantleSystem" type="Node3D"]
|
[node name="MantleSystem" type="Node3D"]
|
||||||
script = ExtResource("1_2oobp")
|
script = ExtResource("1_2oobp")
|
||||||
MantleEndLocationDistanceFromWall = 0.2
|
MantleEndLocationDistanceFromWall = 0.2
|
||||||
MantleHeightCastStart = 3.0
|
MantleHeightCastStart = 3.0
|
||||||
|
|
||||||
[node name="MantleCast3D" type="ShapeCast3D" parent="."]
|
[node name="MantleCast3D" type="ShapeCast3D" parent="."]
|
||||||
|
visible = false
|
||||||
shape = SubResource("CapsuleShape3D_4coqe")
|
shape = SubResource("CapsuleShape3D_4coqe")
|
||||||
target_position = Vector3(0, 0, 0)
|
target_position = Vector3(0, 0, 0)
|
||||||
max_results = 1
|
max_results = 1
|
||||||
collision_mask = 2
|
collision_mask = 256
|
||||||
debug_shape_custom_color = Color(1, 0, 0, 1)
|
debug_shape_custom_color = Color(1, 0, 0, 1)
|
||||||
|
|
||||||
[node name="WallInFrontCast3D" type="ShapeCast3D" parent="."]
|
[node name="WallInFrontCast3D" type="ShapeCast3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||||
|
visible = false
|
||||||
shape = SubResource("SphereShape3D_2oobp")
|
shape = SubResource("SphereShape3D_2oobp")
|
||||||
target_position = Vector3(0, 0, -1.5)
|
target_position = Vector3(0, 0, -1.5)
|
||||||
max_results = 1
|
max_results = 1
|
||||||
collision_mask = 2
|
collision_mask = 256
|
||||||
debug_shape_custom_color = Color(0.911631, 0.11884, 0.656218, 1)
|
debug_shape_custom_color = Color(0.911631, 0.11884, 0.656218, 1)
|
||||||
|
|
||||||
|
[node name="InAirWallDetect" type="ShapeCast3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.01, 0)
|
||||||
|
shape = SubResource("CapsuleShape3D_2oobp")
|
||||||
|
target_position = Vector3(0, 0, -2)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="GroundedWallDetect" type="ShapeCast3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.26, 0)
|
||||||
|
shape = SubResource("CapsuleShape3D_i32qj")
|
||||||
|
target_position = Vector3(0, 0, -2)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="WallProfileShapeCasts" type="Node3D" parent="."]
|
||||||
|
|
||||||
|
[node name="ShapeCast1" type="ShapeCast3D" parent="WallProfileShapeCasts"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -0.5)
|
||||||
|
enabled = false
|
||||||
|
shape = SubResource("SphereShape3D_i32qj")
|
||||||
|
target_position = Vector3(0, -2.125, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="ShapeCast2" type="ShapeCast3D" parent="WallProfileShapeCasts"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -0.75)
|
||||||
|
enabled = false
|
||||||
|
shape = SubResource("SphereShape3D_i32qj")
|
||||||
|
target_position = Vector3(0, -2.125, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="ShapeCast3" type="ShapeCast3D" parent="WallProfileShapeCasts"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -1)
|
||||||
|
enabled = false
|
||||||
|
shape = SubResource("SphereShape3D_i32qj")
|
||||||
|
target_position = Vector3(0, -2.125, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="ShapeCast4" type="ShapeCast3D" parent="WallProfileShapeCasts"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -1.25)
|
||||||
|
enabled = false
|
||||||
|
shape = SubResource("SphereShape3D_i32qj")
|
||||||
|
target_position = Vector3(0, -2.125, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="ShapeCast5" type="ShapeCast3D" parent="WallProfileShapeCasts"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -1.5)
|
||||||
|
enabled = false
|
||||||
|
shape = SubResource("SphereShape3D_i32qj")
|
||||||
|
target_position = Vector3(0, -2.125, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="ShapeCast6" type="ShapeCast3D" parent="WallProfileShapeCasts"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -1.75)
|
||||||
|
enabled = false
|
||||||
|
shape = SubResource("SphereShape3D_i32qj")
|
||||||
|
target_position = Vector3(0, -2.125, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|
||||||
|
[node name="ShapeCast7" type="ShapeCast3D" parent="WallProfileShapeCasts"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -2)
|
||||||
|
enabled = false
|
||||||
|
shape = SubResource("SphereShape3D_i32qj")
|
||||||
|
target_position = Vector3(0, -2.125, 0)
|
||||||
|
collision_mask = 256
|
||||||
|
|||||||
@@ -1,221 +0,0 @@
|
|||||||
using Godot;
|
|
||||||
using Movementtests.player_controller.Scripts;
|
|
||||||
using RustyOptions;
|
|
||||||
|
|
||||||
namespace Movementtests.systems;
|
|
||||||
|
|
||||||
public partial class MoveSystem : Node3D
|
|
||||||
{
|
|
||||||
public enum JumpTypes
|
|
||||||
{
|
|
||||||
SimpleJump,
|
|
||||||
DoubleJump,
|
|
||||||
JumpFromDash,
|
|
||||||
JumpFromWall
|
|
||||||
}
|
|
||||||
|
|
||||||
public record MoveSystemParameters(
|
|
||||||
CharacterBody3D Parent,
|
|
||||||
Gravity Gravity,
|
|
||||||
MantleSystem MantleSystem,
|
|
||||||
TweenQueueSystem TweenQueueSystem,
|
|
||||||
HeadSystem HeadSystem,
|
|
||||||
CapsuleCollider CapsuleCollider);
|
|
||||||
|
|
||||||
public record MoveAroundParameters(
|
|
||||||
double Delta,
|
|
||||||
Vector3 MovementDirection,
|
|
||||||
bool IsOnFloor,
|
|
||||||
bool IsDead,
|
|
||||||
bool IsHeadTouchingCeiling,
|
|
||||||
bool isHanging,
|
|
||||||
bool isWallHugging
|
|
||||||
);
|
|
||||||
|
|
||||||
[Export(PropertyHint.Range, "0,20,0.1,or_greater")]
|
|
||||||
public float WalkSpeed { get; set; } = 5.0f;
|
|
||||||
[Export(PropertyHint.Range, "0,20,0.1,or_greater")]
|
|
||||||
public float SprintSpeed { get; set; } = 7.2f;
|
|
||||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
|
||||||
public float CrouchSpeed { get; set; } = 2.5f;
|
|
||||||
[Export(PropertyHint.Range, "0,100,0.1,or_greater")]
|
|
||||||
|
|
||||||
public float _currentSpeed;
|
|
||||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
|
||||||
public float AccelerationSpeedFactorFloor = 5.0f;
|
|
||||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
|
||||||
public float DecelerationSpeedFactorFloor = 5.0f;
|
|
||||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
|
||||||
public float DecelerationSpeedFactorAir = 1.0f;
|
|
||||||
[Export(PropertyHint.Range, "0,1,0.01,or_greater")]
|
|
||||||
public float ApexHoldTime = 0.0f;
|
|
||||||
private float _timeLeftAtApex = 0.0f;
|
|
||||||
private bool _wasGoingUpLastFrame = false;
|
|
||||||
|
|
||||||
public float CrouchTransitionSpeed { get; set; } = 20.0f;
|
|
||||||
[Export(PropertyHint.Range, "0,5,0.1,or_greater")]
|
|
||||||
public float WallHugGravityReducingFactor { get; set; } = 0.1f;
|
|
||||||
|
|
||||||
|
|
||||||
private Gravity _gravity;
|
|
||||||
private CharacterBody3D _parent;
|
|
||||||
private MantleSystem _mantleSystem;
|
|
||||||
private TweenQueueSystem _tweenQueueSystem;
|
|
||||||
private CapsuleCollider _capsuleCollider;
|
|
||||||
private HeadSystem _headSystem;
|
|
||||||
public void Init(MoveSystemParameters parameters)
|
|
||||||
{
|
|
||||||
_parent = parameters.Parent;
|
|
||||||
_gravity = parameters.Gravity;
|
|
||||||
_mantleSystem = parameters.MantleSystem;
|
|
||||||
_tweenQueueSystem = parameters.TweenQueueSystem;
|
|
||||||
_capsuleCollider = parameters.CapsuleCollider;
|
|
||||||
_headSystem = parameters.HeadSystem;
|
|
||||||
|
|
||||||
_currentSpeed = WalkSpeed;
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool IsGoingUp()
|
|
||||||
{
|
|
||||||
return _parent.Velocity.Y > 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void MoveAround(MoveAroundParameters param)
|
|
||||||
{
|
|
||||||
var (delta, movementDirection, isOnFloor, isDead, isHeadTouchingCeiling, isHanging, isWallHugging) = param;
|
|
||||||
|
|
||||||
var doesCapsuleHaveCrouchingHeight = _capsuleCollider.IsCrouchingHeight();
|
|
||||||
var doesCapsuleHaveDefaultHeight = _capsuleCollider.IsDefaultHeight();
|
|
||||||
|
|
||||||
if (IsGoingUp() || isOnFloor)
|
|
||||||
{
|
|
||||||
_wasGoingUpLastFrame = true;
|
|
||||||
_timeLeftAtApex = ApexHoldTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isHanging)
|
|
||||||
{
|
|
||||||
_parent.Velocity = Vector3.Zero;
|
|
||||||
_parent.MoveAndSlide();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (isWallHugging)
|
|
||||||
{
|
|
||||||
_parent.Velocity = new Vector3(
|
|
||||||
x: _parent.Velocity.X,
|
|
||||||
y: _parent.Velocity.Y - _gravity.CalculateGravityForce() * (float)delta * WallHugGravityReducingFactor,
|
|
||||||
z: _parent.Velocity.Z);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Adding the gravity
|
|
||||||
if (!isOnFloor)
|
|
||||||
{
|
|
||||||
if (!IsGoingUp() && _wasGoingUpLastFrame && _timeLeftAtApex > 0)
|
|
||||||
{
|
|
||||||
_parent.Velocity = new Vector3(
|
|
||||||
x: _parent.Velocity.X,
|
|
||||||
y: 0,
|
|
||||||
z: _parent.Velocity.Z);
|
|
||||||
_timeLeftAtApex -= (float) delta;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_parent.Velocity = new Vector3(
|
|
||||||
x: _parent.Velocity.X,
|
|
||||||
y: _parent.Velocity.Y - (_gravity.CalculateGravityForce() * (float)delta),
|
|
||||||
z: _parent.Velocity.Z);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// The code below is required to quickly adjust player's position on Y-axis when there's a ceiling on the
|
|
||||||
// trajectory of player's jump and player is standing
|
|
||||||
if (isHeadTouchingCeiling && doesCapsuleHaveDefaultHeight)
|
|
||||||
{
|
|
||||||
_parent.Velocity = new Vector3(
|
|
||||||
x: _parent.Velocity.X,
|
|
||||||
y: _parent.Velocity.Y - 2.0f,
|
|
||||||
z: _parent.Velocity.Z);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isDead)
|
|
||||||
{
|
|
||||||
|
|
||||||
// Used both for detecting the moment when we enter into crouching mode and the moment when we're already
|
|
||||||
// in the crouching mode
|
|
||||||
if (Input.IsActionPressed("crouch") ||
|
|
||||||
(doesCapsuleHaveCrouchingHeight && isHeadTouchingCeiling))
|
|
||||||
{
|
|
||||||
_capsuleCollider.Crouch((float)delta, CrouchTransitionSpeed);
|
|
||||||
_currentSpeed = CrouchSpeed;
|
|
||||||
}
|
|
||||||
// Used both for the moment when we exit the crouching mode and for the moment when we just walk
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_capsuleCollider.UndoCrouching((float)delta, CrouchTransitionSpeed);
|
|
||||||
_currentSpeed = WalkSpeed;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Each component of the boolean statement for sprinting is required
|
|
||||||
if (Input.IsActionPressed("sprint") && !isHeadTouchingCeiling &&
|
|
||||||
!doesCapsuleHaveCrouchingHeight && !isDead)
|
|
||||||
{
|
|
||||||
_currentSpeed = SprintSpeed;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Basis is a 3x4 matrix. It contains information about scaling and rotation of head.
|
|
||||||
// By multiplying our Vector3 by this matrix we're doing multiple things:
|
|
||||||
// a) We start to operate in global space;
|
|
||||||
// b) We're applying to Vector3 the current rotation of "head" object;
|
|
||||||
// c) We're applying to Vector3 the current scaling of "head" object;
|
|
||||||
Vector3 direction = _headSystem.Transform.Basis * movementDirection;
|
|
||||||
|
|
||||||
if (isDead)
|
|
||||||
{
|
|
||||||
direction = Vector3.Zero;
|
|
||||||
}
|
|
||||||
|
|
||||||
var accelerationFloorFactor = direction.Length() > 0 ? AccelerationSpeedFactorFloor : DecelerationSpeedFactorFloor;
|
|
||||||
var accelerationFactor = isOnFloor ? accelerationFloorFactor : DecelerationSpeedFactorAir;
|
|
||||||
|
|
||||||
float xAcceleration = Mathf.Lerp(_parent.Velocity.X, direction.X * _currentSpeed,
|
|
||||||
(float)delta * accelerationFactor);
|
|
||||||
float zAcceleration = Mathf.Lerp(_parent.Velocity.Z, direction.Z * _currentSpeed,
|
|
||||||
(float)delta * accelerationFactor);
|
|
||||||
_parent.Velocity = new Vector3(xAcceleration, _parent.Velocity.Y, zAcceleration);
|
|
||||||
|
|
||||||
if (isDead)
|
|
||||||
{
|
|
||||||
_parent.MoveAndSlide();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Jump(JumpTypes jumpType, Vector3? jumpDirection = null, float boost = 1.0f)
|
|
||||||
{
|
|
||||||
var effectiveJumpDirection = jumpDirection ?? Vector3.Up;
|
|
||||||
var jumpForce = 0.0f;
|
|
||||||
switch (jumpType)
|
|
||||||
{
|
|
||||||
case JumpTypes.DoubleJump:
|
|
||||||
jumpForce = _gravity.CalculateDoubleJumpForce();
|
|
||||||
break;
|
|
||||||
case JumpTypes.SimpleJump:
|
|
||||||
jumpForce = _gravity.CalculateJumpForce();
|
|
||||||
break;
|
|
||||||
case JumpTypes.JumpFromDash:
|
|
||||||
jumpForce = _gravity.CalculateJumpFromDashForce();
|
|
||||||
break;
|
|
||||||
case JumpTypes.JumpFromWall:
|
|
||||||
jumpForce = _gravity.CalculateJumpFromWallForce();
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
jumpForce = _gravity.CalculateJumpForce();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
var currentHorizontalVelocity = new Vector3(_parent.Velocity.X, 0, _parent.Velocity.Z);
|
|
||||||
var jumpVelocity = jumpForce * effectiveJumpDirection * boost;
|
|
||||||
_parent.Velocity = currentHorizontalVelocity + jumpVelocity;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://dyy5njw6pxoh4
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
[gd_resource type="Curve" format=3 uid="uid://buxwd3wd0nln5"]
|
|
||||||
|
|
||||||
[resource]
|
|
||||||
_data = [Vector2(0, 0), 0.0, 3.01651, 0, 0, Vector2(0.996169, 1), 0.0, 0.0, 0, 0]
|
|
||||||
point_count = 2
|
|
||||||
@@ -10,13 +10,10 @@ var active_tutorial: Control
|
|||||||
|
|
||||||
@onready var tuto_move_and_look: VBoxContainer = %TutoMoveAndLook
|
@onready var tuto_move_and_look: VBoxContainer = %TutoMoveAndLook
|
||||||
@onready var tuto_mantle_up: HBoxContainer = %TutoMantleUp
|
@onready var tuto_mantle_up: HBoxContainer = %TutoMantleUp
|
||||||
@onready var tuto_jump: HBoxContainer = %TutoJump
|
|
||||||
@onready var tuto_double_jump: HBoxContainer = %TutoDoubleJump
|
|
||||||
@onready var tuto_wall_jump: HBoxContainer = %TutoWallJump
|
@onready var tuto_wall_jump: HBoxContainer = %TutoWallJump
|
||||||
@onready var tuto_dash: HBoxContainer = %TutoDash
|
|
||||||
@onready var tuto_dash_weapon: HBoxContainer = %TutoDashWeapon
|
@onready var tuto_dash_weapon: HBoxContainer = %TutoDashWeapon
|
||||||
@onready var tuto_empowered_dash: HBoxContainer = %TutoEmpoweredDash
|
@onready var tuto_weapon_throw: HBoxContainer = %TutoWeaponThrow
|
||||||
@onready var tuto_empowered_jump: HBoxContainer = %TutoEmpoweredJump
|
@onready var tuto_enjoy: HBoxContainer = %TutoEnjoy
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
@@ -37,24 +34,21 @@ func handle_new_tutorial(tuto: Control) -> void:
|
|||||||
func _on_tuto_mantle_body_entered(body: Node3D) -> void:
|
func _on_tuto_mantle_body_entered(body: Node3D) -> void:
|
||||||
handle_new_tutorial(tuto_mantle_up)
|
handle_new_tutorial(tuto_mantle_up)
|
||||||
|
|
||||||
func _on_tuto_jump_body_entered(body: Node3D) -> void:
|
|
||||||
handle_new_tutorial(tuto_jump)
|
|
||||||
|
|
||||||
func _on_tuto_double_jump_body_entered(body: Node3D) -> void:
|
|
||||||
handle_new_tutorial(tuto_double_jump)
|
|
||||||
|
|
||||||
func _on_tuto_wall_jump_body_entered(body: Node3D) -> void:
|
func _on_tuto_wall_jump_body_entered(body: Node3D) -> void:
|
||||||
handle_new_tutorial(tuto_wall_jump)
|
handle_new_tutorial(tuto_wall_jump)
|
||||||
|
|
||||||
func _on_tuto_dash_body_entered(body: Node3D) -> void:
|
|
||||||
handle_new_tutorial(tuto_dash)
|
|
||||||
|
|
||||||
func _on_tuto_done_area_body_entered(body: Node3D) -> void:
|
func _on_tuto_done_area_body_entered(body: Node3D) -> void:
|
||||||
handle_new_tutorial(tuto_dash_weapon)
|
handle_new_tutorial(tuto_dash_weapon)
|
||||||
|
|
||||||
func _on_weapon_retrieved_body_entered(body: Node3D) -> void:
|
func _on_weapon_retrieved_body_entered(body: Node3D) -> void:
|
||||||
wait_to_show_blocking_tuto.start()
|
wait_to_show_blocking_tuto.start()
|
||||||
|
|
||||||
|
func _on_tuto_weapon_throw_body_entered(body: Node3D) -> void:
|
||||||
|
handle_new_tutorial(tuto_weapon_throw)
|
||||||
|
|
||||||
|
func _on_tuto_enjoy_body_entered(body: Node3D) -> void:
|
||||||
|
handle_new_tutorial(tuto_enjoy)
|
||||||
|
|
||||||
func _show_weapon_tutorial() -> void:
|
func _show_weapon_tutorial() -> void:
|
||||||
if already_shown_weapon_tuto:
|
if already_shown_weapon_tuto:
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -12,44 +12,47 @@ public partial class WallHugSystem : Node3D
|
|||||||
public delegate void WallDetectedEventHandler();
|
public delegate void WallDetectedEventHandler();
|
||||||
|
|
||||||
private List<RayCast3D> _raycasts;
|
private List<RayCast3D> _raycasts;
|
||||||
|
public Option<Vector3> WallHugLocation { get; private set; } = Option<Vector3>.None;
|
||||||
|
public Option<Vector3> WallHugNormal { get; private set; } = Option<Vector3>.None;
|
||||||
|
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
_raycasts = new List<RayCast3D>();
|
_raycasts = new List<RayCast3D>();
|
||||||
_raycasts.Add(GetNode<RayCast3D>("front"));
|
_raycasts.Add(GetNode<RayCast3D>("front"));
|
||||||
|
_raycasts.Add(GetNode<RayCast3D>("front2"));
|
||||||
_raycasts.Add(GetNode<RayCast3D>("back"));
|
_raycasts.Add(GetNode<RayCast3D>("back"));
|
||||||
|
_raycasts.Add(GetNode<RayCast3D>("back2"));
|
||||||
_raycasts.Add(GetNode<RayCast3D>("left"));
|
_raycasts.Add(GetNode<RayCast3D>("left"));
|
||||||
|
_raycasts.Add(GetNode<RayCast3D>("left2"));
|
||||||
_raycasts.Add(GetNode<RayCast3D>("right"));
|
_raycasts.Add(GetNode<RayCast3D>("right"));
|
||||||
|
_raycasts.Add(GetNode<RayCast3D>("right2"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void _PhysicsProcess(double delta)
|
public override void _PhysicsProcess(double delta)
|
||||||
{
|
{
|
||||||
base._PhysicsProcess(delta);
|
base._PhysicsProcess(delta);
|
||||||
|
CheckWallHugging();
|
||||||
if (IsWallHugging())
|
if (IsWallHugging())
|
||||||
EmitSignal(SignalName.WallDetected);
|
EmitSignal(SignalName.WallDetected);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsWallHugging()
|
public void CheckWallHugging()
|
||||||
{
|
{
|
||||||
foreach (RayCast3D raycast in _raycasts)
|
foreach (RayCast3D raycast in _raycasts)
|
||||||
{
|
{
|
||||||
if (raycast.IsColliding())
|
if (raycast.IsColliding() && Math.Abs(raycast.GetCollisionNormal().Y) < 0.3f)
|
||||||
{
|
{
|
||||||
return true;
|
WallHugLocation = raycast.GetCollisionPoint().Some();
|
||||||
|
WallHugNormal = raycast.GetCollisionNormal().Some();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
WallHugLocation = Option<Vector3>.None;
|
||||||
|
WallHugNormal = Option<Vector3>.None;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Option<Vector3> GetWallNormal()
|
public bool IsWallHugging()
|
||||||
{
|
{
|
||||||
foreach (RayCast3D raycast in _raycasts)
|
return !WallHugLocation.IsNone;
|
||||||
{
|
|
||||||
if (raycast.IsColliding())
|
|
||||||
{
|
|
||||||
return raycast.GetCollisionNormal().Some();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return Option<Vector3>.None;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ stencil_outline_thickness = 0.1
|
|||||||
material = SubResource("StandardMaterial3D_m0v1h")
|
material = SubResource("StandardMaterial3D_m0v1h")
|
||||||
|
|
||||||
[node name="Weapon" type="RigidBody3D"]
|
[node name="Weapon" type="RigidBody3D"]
|
||||||
collision_layer = 4
|
collision_layer = 65536
|
||||||
collision_mask = 2
|
collision_mask = 256
|
||||||
continuous_cd = true
|
continuous_cd = true
|
||||||
contact_monitor = true
|
contact_monitor = true
|
||||||
max_contacts_reported = 1
|
max_contacts_reported = 1
|
||||||
|
|||||||
16
tools/city_helpers.gd
Normal file
16
tools/city_helpers.gd
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
@tool
|
||||||
|
extends Node3D
|
||||||
|
|
||||||
|
@export_group("Place player")
|
||||||
|
@export_tool_button("Tuto start", "Callable") var player_tuto_start = place_player_tuto_start
|
||||||
|
@export_tool_button("Playground", "Callable") var player_playground = place_player_playground
|
||||||
|
|
||||||
|
|
||||||
|
@onready var player: CharacterBody3D = $Player
|
||||||
|
|
||||||
|
func place_player_tuto_start():
|
||||||
|
player.position = Vector3(0, -132.75, 118)
|
||||||
|
|
||||||
|
func place_player_playground():
|
||||||
|
player.position = Vector3(-6.0, 75.5, -13.5)
|
||||||
|
|
||||||
1
tools/city_helpers.gd.uid
Normal file
1
tools/city_helpers.gd.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://blenis2y55fmg
|
||||||
Reference in New Issue
Block a user