Track gas bomb cooldowns per bomber
This commit is contained in:
parent
1d9afcbc2e
commit
eb79efdafe
6 changed files with 193 additions and 49 deletions
|
|
@ -15,11 +15,14 @@ func _ready() -> void:
|
|||
main.get_node("EnemySpawner").set_process(false)
|
||||
main.get_node("AsteroidField").set_process(false)
|
||||
var fleet: Node = main.get_node("Fleet")
|
||||
fleet.spawn_ships(3, Vector2.ZERO, PackedStringArray([
|
||||
fleet.spawn_ships(4, Vector2.ZERO, PackedStringArray([
|
||||
GameState.VESSEL_INTERCEPTOR, GameState.VESSEL_SHIELD,
|
||||
GameState.VESSEL_GAS_BOMBER]))
|
||||
GameState.VESSEL_GAS_BOMBER, GameState.VESSEL_GAS_BOMBER]))
|
||||
var skill: GasBombController = main.get_node("GasBombController")
|
||||
skill._process(0.0)
|
||||
# Show both per-ship states in one frame: the first bomber is rearming,
|
||||
# while the second has the bright complete ready halo and supplies the aim.
|
||||
fleet.ships[2].get_component("gas_bomber").consume_shot(GasBombController.COOLDOWN)
|
||||
main.get_node("Camera2D").zoom = Vector2(1.8, 1.8)
|
||||
var button: Control = main.get_node("UI/GasBombButton")
|
||||
var press := InputEventScreenTouch.new()
|
||||
|
|
|
|||
Loading…
Reference in a new issue