Updated input component and player component handling to use tab to

cycle weapons.
This commit is contained in:
Henry Faber 2026-06-20 13:03:48 +01:00
parent e2cf516c90
commit 63ed0aae3a
4 changed files with 24 additions and 15 deletions

View file

@ -3,13 +3,12 @@ class_name InputComponent extends Node
var move_dir: Vector2 = Vector2.ZERO
var shoot_pressed: bool = false
var shooting: bool = false
var cycle_weapon: bool = false
func update() -> void:
move_dir = Input.get_vector("left", "right", "up", "down")
shoot_pressed = Input.is_action_just_pressed("shoot")
shooting = Input.is_action_pressed("shoot")
# Development Keys
# Cycle Available Weapons
cycle_weapon = Input.is_action_just_pressed("cycle")