This commit is contained in:
asN6a 2024-08-18 12:50:08 -03:00
parent 7ab1542fb3
commit b7d5250f43
5 changed files with 10 additions and 3 deletions

0
gta/.gdignore Normal file
View file

6
gta/README.md Normal file
View file

@ -0,0 +1,6 @@
# 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.

View file

@ -59,4 +59,4 @@ environment = SubResource("Environment_q6cjc")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.800888, 0.598814, 0, -0.598814, 0.800888, 0, 4.4221, 0) transform = Transform3D(1, 0, 0, 0, 0.800888, 0.598814, 0, -0.598814, 0.800888, 0, 4.4221, 0)
shadow_enabled = true shadow_enabled = true

View file

@ -9,6 +9,7 @@ script = ExtResource("1_s3ncu")
[node name="sun" type="DirectionalLight3D" parent="."] [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) 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 directional_shadow_max_distance = 50.0
[node name="moon" type="DirectionalLight3D" parent="."] [node name="moon" type="DirectionalLight3D" parent="."]

View file

@ -65,9 +65,9 @@ func movement_controller(delta):
if CAN_MOVE: if CAN_MOVE:
# Direction of movement based on player direction # Direction of movement based on player direction
move_dir = Vector3( move_dir = Vector3(
Input.get_action_strength("player_right") - Input.get_action_strength("player_left"), Input.get_action_strength("player_m_right") - Input.get_action_strength("player_m_left"),
0.0, 0.0,
Input.get_action_strength("player_backward") - Input.get_action_strength("player_forward") Input.get_action_strength("player_m_backward") - Input.get_action_strength("player_m_forward")
).normalized() ).normalized()
move_dir = move_dir.rotated(Vector3.UP, cam_pivot.rotation.y) move_dir = move_dir.rotated(Vector3.UP, cam_pivot.rotation.y)