Structure of the Game World

This article is not necessary for using and programming with AsciiMason. It is just here to provide more context behind how AsciiMason works.

Unlike most game engines, AsciiMason does not store the x and y coordinates of objects in the world. Instead, an object's position in a two-dimensional array gives us its x and y coordinates. This is done because it greatly improves performance, at the cost of making object storage more complicated.

For more detail on the structure of the game world, simply open an AsciiMason json file in a text editor. You can download the default game by opening AsciiMason and selecting "save game" in the game menu.

game
The variable called "game" contains all of the data for the game. This variable is saved as a json file when the user saves a game.