Raycaster now has wall collision so won't go through walls. Next step is to render all the sprites being places and then implement the Systems.

This commit is contained in:
Zed A. Shaw 2025-02-04 14:13:00 -05:00
parent 75ffb49a53
commit d6c09e111d
6 changed files with 25 additions and 6 deletions

View file

@ -356,3 +356,9 @@ DinkyECS::Entity Raycaster::position_sprite(Point pos, string name) {
$collision.insert({pos.x, pos.y}, ent);
return ent;
}
void Raycaster::set_level(GameLevel level) {
$level = level;
auto& tiles = $level.map->tiles();
$map = $textures.convert_char_to_texture(tiles.$tile_ids);
}