Icons now work way better and don't have the the 'Rayview cuts icons' bug. It actually was a bug in the lel-guecs Sprite class that was using the TextureRect from the source sprite. Now its initialized with the framesize from the .json. This also uses the new guecs::Icon, but I have to fix that as it doesn't scale correctly. Closes #2.

This commit is contained in:
Zed A. Shaw 2025-07-22 15:03:37 -04:00
parent b311713064
commit ff7111b006
22 changed files with 81 additions and 64 deletions

View file

@ -423,7 +423,7 @@ void Raycaster::draw(sf::RenderTarget& target) {
}
void Raycaster::update_sprite(DinkyECS::Entity ent, components::Sprite& sprite) {
auto sprite_txt = textures::get(sprite.name);
auto sprite_txt = textures::get_sprite(sprite.name);
$sprites.insert_or_assign(ent, sprite_txt);
}