Skip to content

Commit

Permalink
fix(brackeys13): updated laser pool.
Browse files Browse the repository at this point in the history
  • Loading branch information
h0lybyte committed Feb 21, 2025
1 parent 687e995 commit 15a7e42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/gamejam/brackeys/13/scripts/game.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ extends Node2D
@onready var entity = $Entity
@onready var auto_save_timer = $AutoSaveTimer

const LASER_POOL_SIZE = 10
const AUTO_SAVE_INTERVAL = 30.0

func _ready():
spaceship.connect("laser_shot", _on_spaceship_laser_shot)
projectiles.initialize_pool(LASER_POOL_SIZE)
projectiles.initialize_pool(int(Global.get_starship_stat("laser_ammo")))
entity.initialize_pool(int(Global.get_environment_data("asteroids")))
entity.start_spawn()
Global.emit_signal("notification_received", "game_start", "Game Started! Ready for launch.", "info")
Expand Down

0 comments on commit 15a7e42

Please sign in to comment.