diff --git a/agrf/lib/building/layout_test.py b/agrf/lib/building/layout_test.py new file mode 100644 index 00000000..6937cc16 --- /dev/null +++ b/agrf/lib/building/layout_test.py @@ -0,0 +1,9 @@ +from agrf.lib.building.layout import ADefaultGroundSprite + + +def test_default_groundsprite(): + gs1012 = ADefaultGroundSprite(1012) + + graphics = gs1012.graphics(4, 32).to_image() + assert graphics.shape == (127, 256, 4) + assert graphics[64, 128, 1] == 67