finishing up and merging to main

This commit is contained in:
derek
2024-10-02 16:22:28 -05:00
parent 70a6a23604
commit db10037ff1
4 changed files with 14 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ config_version=5
[application]
config/name="First Person Test"
run/main_scene="res://scenes/test_level_2v2.tscn"
run/main_scene="res://scenes/test_level_2v2NOENEMIES.tscn"
config/features=PackedStringArray("4.3", "Forward Plus")
config/icon="res://icon.svg"

View File

@@ -4,7 +4,7 @@ const ASPECT_RATIO_STD = .5625 #9/16 for standard ratio
@export var padding_amount = .05 #multiplied by screen size
@onready var level_control = get_tree().current_scene
@onready var player = get_tree().current_scene.player
@onready var gun_anim = $"../gun/GunAnims"
var gun_index
# Called when the node enters the scene tree for the first time.

View File

@@ -315,7 +315,7 @@ func weapon_tilt(input_x, delta):
if weapon_holder:
weapon_holder.rotation.z = lerp(weapon_holder.rotation.z, -input_x * weapon_rotation_amount * 10, 4 * delta)
if camera:
camera.rotation.z = lerp(camera.rotation.z, -input_x * .1, 5 * delta)
camera.rotation.z = lerp(camera.rotation.z, -input_x * .075, 5 * delta)
func weapon_sway(delta):
mouse_input = lerp(mouse_input, Vector2.ZERO, 10 * delta)

11
scripts/weapon_recoil.gd Normal file
View File

@@ -0,0 +1,11 @@
extends Node3D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass