mirror of
https://github.com/FOSS-Supremacy/OpenLiberty.git
synced 2025-04-28 20:07:57 +03:00
test
This commit is contained in:
parent
e33e9e11f6
commit
4b6bee6de5
6 changed files with 23 additions and 10 deletions
|
@ -1,6 +0,0 @@
|
|||
# Put your copy of GTA 3 here for debugging
|
||||
When launched from Godot's editor, this project uses this directory for GTA 3
|
||||
assets to make testing easier.
|
||||
|
||||
When you build this project as standalone, you should put its executable and
|
||||
`.pck` files into your copy of GTA 3 and launch it from there.
|
|
@ -133,6 +133,26 @@ night_toggle={
|
|||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":78,"key_label":0,"unicode":110,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
player_lefft={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
player_right={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
player_forward={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
player_backward={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
||||
[rendering]
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://dvolbv5rswbo4"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://bpy61iddtbrdu"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://yo0220jx0v3r" path="res://prefabs/actors/player/obj_player.tscn" id="1_glk4w"]
|
||||
[ext_resource type="Texture2D" uid="uid://t08wbyrcvylh" path="res://assets/textures/GroundPrototype/Dark/texture_08.png" id="2_u7u28"]
|
||||
|
|
|
@ -9,7 +9,6 @@ script = ExtResource("1_s3ncu")
|
|||
|
||||
[node name="sun" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.866023, -0.433016, 0.250001, 0, 0.499998, 0.866027, -0.500003, 0.749999, -0.43301, 0, 0, 0)
|
||||
shadow_enabled = true
|
||||
directional_shadow_max_distance = 50.0
|
||||
|
||||
[node name="moon" type="DirectionalLight3D" parent="."]
|
||||
|
|
|
@ -47,9 +47,9 @@ func movement_controller(delta):
|
|||
if CAN_MOVE:
|
||||
# Direction of movement based on player direction
|
||||
move_dir = Vector3(
|
||||
Input.get_action_strength("player_m_right") - Input.get_action_strength("player_m_left"),
|
||||
Input.get_action_strength("player_right") - Input.get_action_strength("player_left"),
|
||||
0.0,
|
||||
Input.get_action_strength("player_m_backward") - Input.get_action_strength("player_m_forward")
|
||||
Input.get_action_strength("player_backward") - Input.get_action_strength("player_forward")
|
||||
).normalized()
|
||||
|
||||
move_dir = move_dir.rotated(Vector3.UP, cam_pivot.rotation.y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue