Controller Support added

This commit is contained in:
2024-12-03 21:01:00 +01:00
parent af0a145953
commit 28462f4c0d
3 changed files with 35 additions and 20 deletions

View File

@@ -37,10 +37,6 @@ func _process(delta: float) -> void:
if is_off_screen() and not has_exploded:
trigger_explosion()
# Check for spacebar press to explode, only if the bomb hasn't exploded
if Input.is_action_just_pressed("throw_bomb") and not has_exploded:
trigger_explosion()
# This function is used to set the velocity of the bomb when its thrown
func set_velocity(new_velocity: Vector2) -> void:
# Apply an impulse based on the new velocity