bglga/src
Harald Hoyer 68e3051f77 refactor: split game logic into library + binary entry point
Move the App setup and module declarations from src/main.rs into a new
src/lib.rs that exposes a single pub fn run(). src/main.rs becomes a
three-line entry point that calls bglga::run(). This is the standard
Bevy-book pattern and lets the game logic be consumed as a library
(e.g. for integration tests, headless tooling, or alternate entry
points) without duplicating the App wiring.

Also gate update_tractor_beam_visual with
run_if(any_with_component::<TractorBeam>) so the system only runs while
a boss has an active tractor beam, instead of every Update tick.
2026-05-06 20:54:09 +02:00
..
bullet.rs feat: add explosion animations on entity destruction 2026-05-06 16:43:16 +02:00
components.rs Merge branch 'gal-44-add-explosion-effects' 2026-05-06 20:33:23 +02:00
constants.rs Merge branch 'gal-44-add-explosion-effects' 2026-05-06 20:33:23 +02:00
enemy.rs fix: disjoint Transform queries in update_tractor_beam_visual 2026-05-06 20:54:02 +02:00
game_state.rs feat: add scrolling starfield background 2026-05-06 15:05:32 +02:00
lib.rs refactor: split game logic into library + binary entry point 2026-05-06 20:54:09 +02:00
main.rs refactor: split game logic into library + binary entry point 2026-05-06 20:54:09 +02:00
player.rs feat: add explosion animations on entity destruction 2026-05-06 16:43:16 +02:00
resources.rs feat: add restart from game over with R key 2026-05-04 22:15:16 +02:00
stage.rs iii 2025-04-11 10:43:48 +02:00
starfield.rs feat: add scrolling starfield background 2026-05-06 15:05:32 +02:00
systems.rs feat: add explosion animations on entity destruction 2026-05-06 16:43:16 +02:00