Finish the engine upgrade
Some checks failed
Basic checks / Basic build-and-test supertask (push) Failing after 2m1s

Events have been replaced with Messages, import paths have been updated
for new engine module layout, and minor API changes have been matched.
This commit is contained in:
2025-12-17 10:13:11 -06:00
parent 6e425e8eb9
commit a48dfc1d65
10 changed files with 873 additions and 1715 deletions

View File

@@ -3,8 +3,8 @@
//! Compile-time configurables can be found in the [`config`] module.
pub mod config;
mod messages;
mod machinery;
mod messages;
mod objects;
mod physics;
mod resources;
@@ -182,7 +182,7 @@ fn input_ship_shoot(
// If the weapon is ready and the player presses the trigger,
// spawn a bullet & reset the timer.
if weapon.finished() && keyboard_input.pressed(KeyCode::Space) {
if weapon.is_finished() && keyboard_input.pressed(KeyCode::Space) {
weapon.reset();
// Derive bullet velocity, add to the ship's velocity
let bullet_vel = (ship_pos.rotation * Vec3::X).xy() * BULLET_SPEED;