To start the development server so you can start working on this project, you have to cd in src, install the node modules and run the vite server :
cd src
npm install
npm run dev
Here is how to build the map.json file :
level_1.json
{
"map": [
"b b",
" ",
" ",
" ",
" ",
" bbbbb ",
" bbbbbbb ",
" bBbbbBb ",
" rbbbbbg ",
" bbbbb ",
" ",
" ",
" ",
" ",
"b b"
],
"starting_pos": {
"x": 10,
"y": 7,
"dir": "right"
},
"functions": [5, 2, 15,6 ,7, 6 ,3 ,7]
}
"map"[] represents the map with a character norm
b = Blue tile.
r = Red tile.
g = Green tile.
When the letter is capitalized it means that a collectible places it on
B = Blue tile + collectible.
R = Red tile + collectible.
G = Green tile + collectible.
"starting_pos" represents the position of the player in x and y, "dir" indicates the direction with theses options :
"right" "left" "up" "down"
"functions" represents an array that contains all the functions and the number of statements it can contain.
example:
"functions" : [5, 3]
there are 2 instructions, an F1 with 5 boxes and an F2 with 3 boxes
