feat: add cursor-based node highlighting for debug

This commit is contained in:
2025-08-16 12:26:24 -05:00
parent 2140fbec1b
commit 90adaf9e84
4 changed files with 75 additions and 25 deletions

View File

@@ -47,7 +47,7 @@ use crate::{
constants,
events::GameCommand,
map::render::MapRenderer,
systems::input::Bindings,
systems::{debug::CursorPosition, input::Bindings},
texture::sprite::{AtlasMapper, SpriteAtlas},
};
@@ -198,6 +198,7 @@ impl Game {
world.insert_resource(RenderDirty::default());
world.insert_resource(DebugState::default());
world.insert_resource(AudioState::default());
world.insert_resource(CursorPosition::default());
world.add_observer(
|event: Trigger<GameEvent>, mut state: ResMut<GlobalState>, _score: ResMut<ScoreResource>| {