forked from team-sg/hero-mark-2
adjusted famira balancing
This commit is contained in:
parent
7240402776
commit
9e8abe19ef
19 changed files with 128 additions and 41 deletions
|
@ -19,10 +19,10 @@ export var shot_speed: float = 50.0
|
|||
export var move_speed: float = 30.0
|
||||
export var safe_from_breath: bool = false
|
||||
export var make_explosions: bool = false
|
||||
export var bullet_damage: float = 1.0
|
||||
export var bullet_energy: float = 5.0
|
||||
export var beam_energy: float = 50.0
|
||||
export var duck_energy: float = 10.0
|
||||
export var bullet_damage: float = 0.2
|
||||
export var bullet_energy: float = 0.0
|
||||
export var beam_energy: float = 75.0
|
||||
export var duck_energy: float = 0.15
|
||||
export var explosion_rect: Rect2
|
||||
export var famira_path: NodePath
|
||||
|
||||
|
@ -43,7 +43,6 @@ func _physics_process(delta: float) -> void:
|
|||
return
|
||||
State.STAND:
|
||||
if Input.is_action_pressed("move_down") and energy >= duck_energy:
|
||||
set_energy(energy - duck_energy)
|
||||
state = State.DUCK
|
||||
anims.play("Duck")
|
||||
elif Input.is_action_pressed("move_right"):
|
||||
|
@ -55,6 +54,8 @@ func _physics_process(delta: float) -> void:
|
|||
State.DUCK:
|
||||
if not Input.is_action_pressed("move_down") and anims.current_animation.empty():
|
||||
anims.play("UnDuck")
|
||||
energy -= duck_energy
|
||||
|
||||
State.FORWARD:
|
||||
move_and_slide(Vector2(move_speed, 0.0))
|
||||
State.BACK:
|
||||
|
@ -87,7 +88,7 @@ func land(duck: bool) -> void:
|
|||
|
||||
func shoot() -> void:
|
||||
set_energy(energy - bullet_energy)
|
||||
Audio.play_sound(Audio.a_bullet_barrage,Audio.ac_collectible)
|
||||
Audio.play_sound(Audio.a_vulcan,Audio.ac_menu)
|
||||
for pos in bullet_positions.get_children():
|
||||
var bullet = Bullet.instance()
|
||||
bullet.global_position = pos.global_position
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue