adding assets and textures

This commit is contained in:
derek
2024-07-24 16:53:42 -05:00
parent f645d44243
commit 390fabbf70
22 changed files with 422 additions and 27 deletions

View File

@@ -88,7 +88,7 @@ func _unhandled_input(event):
if event is InputEventMouseMotion:
self.rotate_y(-event.relative.x * SENSITIVITY)
camera.rotate_x(-event.relative.y * SENSITIVITY)
camera.rotation.x = clamp(camera.rotation.x, deg_to_rad(-90), deg_to_rad(60))
camera.rotation.x = clamp(camera.rotation.x, deg_to_rad(-90), deg_to_rad(85))
mouse_input = event.relative
@@ -303,7 +303,7 @@ func weapon_bob(vel : float, delta):
func weapon_recoil(delta):
var recoil_to = camera.rotation.x + gun.recoil_amount
camera.rotation.x = clamp(lerp(camera.rotation.x,recoil_to, .05), deg_to_rad(-90), deg_to_rad(60))
camera.rotation.x = clamp(lerp(camera.rotation.x,recoil_to, .05), deg_to_rad(-90), deg_to_rad(85))
func die():
Engine.time_scale = .05