explosive car; dash no longer stuns or gives extra fire rate
This commit is contained in:
parent
d0bfe8d1be
commit
5a7c93a573
7 changed files with 309 additions and 7 deletions
|
|
@ -10,7 +10,7 @@ enum State {
|
|||
}
|
||||
|
||||
const MOVE_SPEED := 7.5
|
||||
const DASH_SPEED := 25.
|
||||
const DASH_SPEED := 35.
|
||||
const DASH_COST := .5
|
||||
|
||||
static var instance: Player
|
||||
|
|
@ -66,8 +66,8 @@ func _process_movement(delta: float) -> void:
|
|||
dash_direction = input
|
||||
state = State.DASHING
|
||||
await get_tree().create_timer(.25, false).timeout
|
||||
state = State.LOCKED
|
||||
await get_tree().create_timer(.5, false).timeout
|
||||
# state = State.LOCKED
|
||||
# await get_tree().create_timer(.5, false).timeout
|
||||
state = State.NORMAL
|
||||
|
||||
func _process_dash() -> void:
|
||||
|
|
@ -96,9 +96,9 @@ func _process_aim() -> void:
|
|||
func _process_shoot(delta: float) -> void:
|
||||
var clock_mul := 1.
|
||||
|
||||
match state:
|
||||
State.DASHING: clock_mul = 2.5
|
||||
State.LOCKED: clock_mul = 2.5
|
||||
# match state:
|
||||
# State.DASHING: clock_mul = 2.5
|
||||
# State.LOCKED: clock_mul = 2.5
|
||||
|
||||
gun.fire_clock -= delta * clock_mul
|
||||
if Input.is_action_pressed("fire") and gun.fire_clock <= 0.:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue