Finish the engine upgrade
Some checks failed
Basic checks / Basic build-and-test supertask (push) Failing after 2m1s
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user