diff options
| author | Ryan Symons <47405201+rsymons22@users.noreply.github.com> | 2025-11-07 20:13:51 -0500 |
|---|---|---|
| committer | Ryan Symons <47405201+rsymons22@users.noreply.github.com> | 2025-11-07 20:13:51 -0500 |
| commit | 2ed3362b566079faa825b0cd6e5435b92f085df2 (patch) | |
| tree | e0b6521790bdd9ffa0ebb9bba0056bcb08c41184 /game | |
| parent | remove unused assets (diff) | |
| download | DungeonCrawl-2ed3362b566079faa825b0cd6e5435b92f085df2.tar.gz DungeonCrawl-2ed3362b566079faa825b0cd6e5435b92f085df2.tar.bz2 DungeonCrawl-2ed3362b566079faa825b0cd6e5435b92f085df2.zip | |
Moved Enemy logic to Entity Struct, fixed enemy drift while moving
Diffstat (limited to 'game')
| -rw-r--r-- | game/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/src/main.rs b/game/src/main.rs index 919e22c..1c76abc 100644 --- a/game/src/main.rs +++ b/game/src/main.rs @@ -14,8 +14,8 @@ fn main() -> Result<()> { for enemy in dungeon.enemies.iter_mut() { enemy.handle_movement( dungeon.player.entity.pos, + dungeon.floor.tiles(), window.delta_time(), - dungeon.floor.tiles_mut(), ); } |