Create custom levels
Using the console for custom maps
Your custom map should be placed into the /maps/ folder.
Open the console using tilde (‘~’), and use the map command to load it.
map <mapname>
If there is no corresponding save file in the /sav/ folder, it will create a new instance of the level. Once you quit the game or change level, it will save a copy here.
You can load in new changes of the source .map file by deleting the save file.
.map format
You can find examples of .map files in the maps/ folder of the source code.
A good one to reference is principle 4 – [harrygodden.com] .
Overview
.map files are entirely text based, meaning you can edit them in notepad or whatever other text editor you would like.
cat maps/cmp_t04.map #############; ###-#####-###;a:aa,b:bb ## ##; ## ##; ## ##; ## ##; ## ##; ## ##; ######+######;ab:abab #############;
NOTE: map files are stored upside down!
Symbols
- ‘ ‘ Spaces denote a cell which you can place pieces into
- ‘#’ Pounds represent ‘wall’ tiles.
- ‘+’ Pluses represent input cells
- ‘-‘ Minuses represent output cells
- ‘;’ Semi-colons represent end of line
Attributes
Each input or output you define requires attributes to be written after the end of line marker.
Attributes are a string of letters, each ‘terminal’ seperated by a comma, and each ‘run’ of marbles is seperated by a colon. These create runs, and expected output runs of marbles where each letter (a-z or ‘ ‘) is a different colour marble.
This is all about Marble Computing – Create Custom Maps Levels; I hope you enjoy reading the Guide! If you feel like we should add more information or we forget/mistake, please let us know via commenting below, and thanks! See you soon!
- All Marble Computing Posts List
Leave a Reply