You can now set a sprite as a background in Background which will simplify a lot of games that just place sprites over a single image.

This commit is contained in:
Zed A. Shaw 2025-06-01 22:52:54 -04:00
parent 6fb20c5085
commit e1d61dc2c1
9 changed files with 79 additions and 22 deletions

View file

@ -143,7 +143,7 @@ namespace guecs {
bool UI::mouse(float x, float y, bool hover) {
int action_count = 0;
// BUG: use lel::Parser.hit instead of this
// BUG: Is Parser::hit useful?
query<lel::Cell>([&](auto ent, auto& cell) {
if((x >= cell.x && x <= cell.x + cell.w) &&