This is the level building tool designed to speed up the level building process for Sigma Grind. It allows you to use image parsing to convert a .png file into code that Sigma Grind can understand and use to build a level for you to enjoy. With this tool the fun and creativity is endless!
https://www.youtube.com/watch?v=cjMHRbpUyd4
- Pull the repository from GitHub.
npm i
to install all needed packages for node.
- Using an image editing program of your choice, draw the level using the colors provided in the Color Coding Key.
- Save the file as a
.png
file. - Open
parser.js
and replace line 41IMAGE_NAME
with the name of your file (Assuming it is in the root directory) - If you plan to...
a) Add your own level, replace LEVEL_FUNCTION_NAME
with the name you want to give to your level.
b) Replace the third level, do not change it.
- run
node ./parser.js
in the terminal. This will generate the level code. - Copy the code from
level.txt
, and open the main sigma grind project. - If you want to simply replace the third level, open
levels/levelOne.js
and replace theloadTestLevel
function with the code you copied from level.txt. - If you want to add more levels to the game, please look through
SceneManager.js
and see how the level system is implemented.