Now have the ability to load different textures for the floor, not ceiling though, it just matches the floor.

This commit is contained in:
Zed A. Shaw 2025-05-26 00:29:32 -04:00
parent 8453e7c3b9
commit e015652f4c
5 changed files with 40 additions and 22 deletions

View file

@ -38,7 +38,8 @@ struct Raycaster {
std::unordered_map<DinkyECS::Entity, textures::SpriteTexture> $sprites;
GameLevel $level;
Matrix $map;
Matrix $tiles;
Matrix $walls;
std::vector<double> $zbuffer; // width
Raycaster(int width, int height);