A test suite should be developed and added to the framework to test tilemap functionality, as this is an area of functionality that is currently missing from the framework.
Requirements
The project should be up to date with 2024.4 release.
It should include facts/theories/testAsyncs that cover the following functions:
layer_tilemap_get_id
layer_tilemap_exists
layer_tilemap_create
layer_tilemap_destroy
tilemap_tileset
tilemap_clear
tilemap_x
tilemap_y
tilemap_set
tilemap_set_at_pixel
tilemap_set_mask
tilemap_set_global_mask
tilemap_set_width
tilemap_set_height
tilemap_get_mask
tilemap_get_global_mask
tilemap_get_tileset
tilemap_get_frame
tilemap_get_tile_width
tilemap_get_tile_height
tilemap_get_width
tilemap_get_height
tilemap_get_x
tilemap_get_y
tilemap_get
tilemap_get_at_pixel
tilemap_get_cell_x_at_pixel
tilemap_get_cell_y_at_pixel
draw_tilemap
tile_get_empty
tile_get_index
tile_get_flip
tile_get_mirror
tile_get_rotate
tile_set_empty
tile_set_index
tile_set_flip
tile_set_mirror
tile_set_rotate
draw_tile
These facts/theories/testAsyncs should test the functions in their expected use case, as well as how they handle invalid arguments.
Steps To The Task
[x] Create new testSuite "BasicTilemapTestSuite"
[x] Add facts/theories/testAsyncs to test the required functions. Most of these will include the following steps:
Create a layer and tilemap to use for the test
Test get function in core use case
Test get function with invalid arguments
Test set function in core use case
Test set function with invalid arguments
Destroy layer and tilemap
[x] Ensure tests are working correctly and in-line with documentation
[x] Any errors discovered in GameMaker functionality or documentation during development should be reported as issues in the GameMaker-Bugs repository
[x] Any errors with the framework itself should be reported as issues within this repository
Description
A test suite should be developed and added to the framework to test tilemap functionality, as this is an area of functionality that is currently missing from the framework.
Requirements
The project should be up to date with 2024.4 release.
It should include facts/theories/testAsyncs that cover the following functions:
These facts/theories/testAsyncs should test the functions in their expected use case, as well as how they handle invalid arguments.
Steps To The Task