diff options
-rw-r--r-- | anim/test-8x8.json | 12 | ||||
-rw-r--r-- | anim/test-8x8.png | bin | 0 -> 218 bytes | |||
-rw-r--r-- | test/loader.cpp | 4 | ||||
-rw-r--r-- | test/main.cpp | 1 |
4 files changed, 17 insertions, 0 deletions
diff --git a/anim/test-8x8.json b/anim/test-8x8.json new file mode 100644 index 00000000..9a0a6b57 --- /dev/null +++ b/anim/test-8x8.json @@ -0,0 +1,12 @@ +{ + "groups": [ + { "frames": [ {"size": "8 x 8"} ], + "ground": "4 x 4", + "name": "n" + } + ], + "nframes": 1, + "object_name": "test-8x8", + "pixel_size": "8 x 8", + "scale": [ "factor", 1 ] +} diff --git a/anim/test-8x8.png b/anim/test-8x8.png Binary files differnew file mode 100644 index 00000000..ff783da2 --- /dev/null +++ b/anim/test-8x8.png diff --git a/test/loader.cpp b/test/loader.cpp index a066c973..fbffc407 100644 --- a/test/loader.cpp +++ b/test/loader.cpp @@ -1,5 +1,6 @@ #include "app.hpp" #include "compat/assert.hpp" +#include "compat/prelude.hpp" #include "loader/loader.hpp" #include "src/tile-atlas.hpp" @@ -11,6 +12,9 @@ void test_app::test_loader() (void)loader.tile_atlases("floor.json", pass_mode::pass); fm_assert(loader.tile_atlas("texel")->pass_mode() == pass_mode::blocked); fm_assert(loader.tile_atlas("metal1")->pass_mode() == pass_mode::pass); + loader.sceneries(); + for (StringView name : loader.anim_atlas_list()) + loader.anim_atlas(name); } } // namespace floormat diff --git a/test/main.cpp b/test/main.cpp index 2187ba21..4b176048 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -26,6 +26,7 @@ int test_app::exec() test_entity(); test_loader(); test_bitmask(); + return 0; } |