"anri t'es vraiment trop cool"
This commit is contained in:
parent
4678b6d7b5
commit
81c4f5427c
2 changed files with 3 additions and 3 deletions
|
@ -17,11 +17,11 @@ config/icon="res://icon.svg"
|
||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
||||||
window/size/viewport_width=1920
|
window/size/viewport_width=1600
|
||||||
window/size/viewport_height=1080
|
window/size/viewport_height=1080
|
||||||
window/size/mode=2
|
window/size/mode=2
|
||||||
window/size/resizable=false
|
window/size/resizable=false
|
||||||
window/size/borderless=true
|
window/stretch/aspect="expand"
|
||||||
|
|
||||||
[input]
|
[input]
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ func _input(event):
|
||||||
# Trap the cursor on click
|
# Trap the cursor on click
|
||||||
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
||||||
|
|
||||||
func _physics_process(delta):
|
func _physics_process(_delta):
|
||||||
# Get the input direction and handle the movement/deceleration.
|
# Get the input direction and handle the movement/deceleration.
|
||||||
var input_dir = Input.get_vector("move_left", "move_right", "move_forward", "move_backward")
|
var input_dir = Input.get_vector("move_left", "move_right", "move_forward", "move_backward")
|
||||||
var direction = (transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized()
|
var direction = (transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized()
|
||||||
|
|
Reference in a new issue