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:
parent
75ffb49a53
commit
d6c09e111d
6 changed files with 25 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue