Add minimum jump height, fire rate configuration, and improve throw input handling
This commit is contained in:
@@ -40,6 +40,9 @@ func on_timer_timeout() -> void:
|
||||
|
||||
|
||||
func throw_brick(power_multiplier: float = 1.0) -> void:
|
||||
if not can_throw:
|
||||
return
|
||||
|
||||
var instance: Node2D = brick_scene.instantiate()
|
||||
var init := instance.get_node_or_null("ProjectileInitComponent") as ProjectileInitComponent
|
||||
if init and player_controller.current_movement is PlatformMovement:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
class_name TapThrowInputResource
|
||||
extends ThrowInputResource
|
||||
|
||||
func process_input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("attack"):
|
||||
func update(_delta: float) -> void:
|
||||
if Input.is_action_pressed("attack"):
|
||||
throw_requested.emit(1.0)
|
@@ -32,6 +32,8 @@ func _ready() -> void:
|
||||
else:
|
||||
continue_button.disabled = false
|
||||
|
||||
continue_button.grab_focus()
|
||||
|
||||
|
||||
func _on_new_game_button_pressed() -> void:
|
||||
if gm:
|
||||
|
Reference in New Issue
Block a user