Controller Support added
This commit is contained in:
4
bomb.gd
4
bomb.gd
@@ -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 it’s thrown
|
||||
func set_velocity(new_velocity: Vector2) -> void:
|
||||
# Apply an impulse based on the new velocity
|
||||
|
||||
Reference in New Issue
Block a user