mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-13 06:12:17 -06:00
fix: FruitSprites resource for common tests, disable Exit command bindings on Emscripten, update ROADMAP.md
This commit is contained in:
@@ -28,7 +28,7 @@ A comprehensive list of features needed to complete the Pac-Man emulation, organ
|
|||||||
|
|
||||||
- [x] Fruit Spawning Mechanics
|
- [x] Fruit Spawning Mechanics
|
||||||
- [x] Spawn at pellet counts 70 and 170
|
- [x] Spawn at pellet counts 70 and 170
|
||||||
- [ ] Fruit display in bottom-right corner
|
- [x] Fruit display in bottom-right corner
|
||||||
- [x] Fruit collection and scoring
|
- [x] Fruit collection and scoring
|
||||||
- [x] Bonus point display system
|
- [x] Bonus point display system
|
||||||
|
|
||||||
|
|||||||
@@ -85,8 +85,12 @@ impl Default for Bindings {
|
|||||||
key_bindings.insert(Keycode::Space, GameCommand::ToggleDebug);
|
key_bindings.insert(Keycode::Space, GameCommand::ToggleDebug);
|
||||||
key_bindings.insert(Keycode::M, GameCommand::MuteAudio);
|
key_bindings.insert(Keycode::M, GameCommand::MuteAudio);
|
||||||
key_bindings.insert(Keycode::R, GameCommand::ResetLevel);
|
key_bindings.insert(Keycode::R, GameCommand::ResetLevel);
|
||||||
key_bindings.insert(Keycode::Escape, GameCommand::Exit);
|
|
||||||
key_bindings.insert(Keycode::Q, GameCommand::Exit);
|
#[cfg(not(target_os = "emscripten"))]
|
||||||
|
{
|
||||||
|
key_bindings.insert(Keycode::Escape, GameCommand::Exit);
|
||||||
|
key_bindings.insert(Keycode::Q, GameCommand::Exit);
|
||||||
|
}
|
||||||
|
|
||||||
let movement_keys = HashSet::from([
|
let movement_keys = HashSet::from([
|
||||||
Keycode::W,
|
Keycode::W,
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ use pacman::{
|
|||||||
graph::{Graph, Node},
|
graph::{Graph, Node},
|
||||||
},
|
},
|
||||||
systems::{
|
systems::{
|
||||||
item_collision_observer, AudioEvent, AudioState, BufferedDirection, Collider, DebugState, DeltaTime, EntityType, Ghost,
|
item_collision_observer, AudioEvent, AudioState, BufferedDirection, Collider, DebugState, DeltaTime, EntityType,
|
||||||
GhostCollider, GhostState, GlobalState, ItemCollider, MovementModifiers, PacmanCollider, PelletCount, PlayerControlled,
|
FruitSprites, Ghost, GhostCollider, GhostState, GlobalState, ItemCollider, MovementModifiers, PacmanCollider,
|
||||||
Position, ScoreResource, Velocity,
|
PelletCount, PlayerControlled, Position, ScoreResource, Velocity,
|
||||||
},
|
},
|
||||||
texture::sprite::{AtlasMapper, AtlasTile, SpriteAtlas},
|
texture::sprite::{AtlasMapper, AtlasTile, SpriteAtlas},
|
||||||
};
|
};
|
||||||
@@ -83,6 +83,7 @@ pub fn create_test_world() -> (World, Schedule) {
|
|||||||
world.insert_resource(Events::<pacman::error::GameError>::default());
|
world.insert_resource(Events::<pacman::error::GameError>::default());
|
||||||
world.insert_resource(Events::<AudioEvent>::default());
|
world.insert_resource(Events::<AudioEvent>::default());
|
||||||
world.insert_resource(ScoreResource(0));
|
world.insert_resource(ScoreResource(0));
|
||||||
|
world.insert_resource(FruitSprites::default());
|
||||||
world.insert_resource(AudioState::default());
|
world.insert_resource(AudioState::default());
|
||||||
world.insert_resource(GlobalState { exit: false });
|
world.insert_resource(GlobalState { exit: false });
|
||||||
world.insert_resource(DebugState::default());
|
world.insert_resource(DebugState::default());
|
||||||
|
|||||||
Reference in New Issue
Block a user