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:
parent
6fb20c5085
commit
e1d61dc2c1
9 changed files with 79 additions and 22 deletions
|
@ -21,6 +21,15 @@ TEST_CASE("test basic ops", "[lel]") {
|
|||
auto &name = row[colcount];
|
||||
if(name == "_") {
|
||||
REQUIRE(!parser.cells.contains(name));
|
||||
} else if(name == "_MAIN") {
|
||||
// it's the main cell which covers the whole area
|
||||
auto &cell = parser.cells.at(name);
|
||||
REQUIRE(cell.row == 0);
|
||||
REQUIRE(cell.col == 0);
|
||||
REQUIRE(cell.x == parser.grid_x);
|
||||
REQUIRE(cell.y == parser.grid_y);
|
||||
REQUIRE(cell.w == parser.grid_w);
|
||||
REQUIRE(cell.h == parser.grid_h);
|
||||
} else {
|
||||
auto &cell = parser.cells.at(name);
|
||||
REQUIRE(cell.row == int(rowcount));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue