tweaks and continued gd4.4 upgrading

This commit is contained in:
derek
2025-03-06 16:28:52 -06:00
parent 326351a595
commit cba8e22fb4
13 changed files with 2210 additions and 2672 deletions

View File

@@ -624,10 +624,13 @@ func grab_moveable(body):
held_item.set_collision_layer_value(1,false)
func hud_wobble(delta):
const HUD_WOBBLE_MAX : float = 20
const MOUSE_AMT = 10
const VELOCITY_AMT = 100
const HUD_SPEED = 10
var viewport_height_adj = (get_viewport().size.y/1080)
var HUD_WOBBLE_MAX : float = 20 * viewport_height_adj
var MOUSE_AMT = 10 * viewport_height_adj
var VELOCITY_AMT = 100 * viewport_height_adj
var HUD_SPEED = 10 * viewport_height_adj
var dir_mouse = Vector2(-mouse_input.x * MOUSE_AMT,-mouse_input.y * MOUSE_AMT)
var velocity_dir_transformed = velocity.normalized() * global_basis
var velocity_lengh_clamped = clamp(velocity.length(),-VELOCITY_AMT,VELOCITY_AMT)