third level + km/h display

This commit is contained in:
Taevas 2025-02-23 14:27:35 +01:00
parent 203696e022
commit c19d1dffcb
27 changed files with 713 additions and 40 deletions

View file

@ -10,7 +10,7 @@ var player_ready = false
const normal = 7
const stronger = normal * 3
func _process(delta: float) -> void:
func _input(_event: InputEvent) -> void:
if player_ready:
var grav = stronger if Input.is_key_pressed(KEY_SHIFT) else normal
PhysicsServer3D.area_set_param(get_viewport().find_world_3d().space, PhysicsServer3D.AREA_PARAM_GRAVITY, grav)