Bigmap
Home Up

 

Bigmap large map game demo

Bigmap was an old GM5.3 project that seemed like a good candidate for HTML5.

The only problem with this was my "clever" tile generation scheme that depended on creating sprites at runtime. It is possible to do this subject to certain frustrating limitations:

  • Generated sprites did not appear to have valid collision masks. This is not unreasonable given that the collision masks were probably generated by the IDE.
  • Objects using a generated sprite with a collision mask always appeared to use image zero of the collision mask. This is probably a consequence of the generated sprite having only one image.

In order to make it play nice with HTML5 the first task is to bypass the generation code and use fixed sprites instead. This works.

A second possibility is to overlay a static tile object providing the collision mask with a dynamic tile providing scenery. This is an attractive option since the way the program is coded it should correctly clean up stacked tiles.