RPG Game
We built a full RPG game in the style of the classic Zelda games using the arcade editor
We first created our character and set up 2 variables, one called LEVEL and one called DIRECTION
These allow the computer to keep track of what level we are on and what direction we are pointing
After this we added the controls, lives and the countdown clock.
Next we set up our charter to turn in whatever direction we move using the arrow keys
Along with this, we set up our projectiles. We can throw our projectiles in whatever direction we are facing by pressing the space key
After this we created our function called CREATELEVEL to build and manage our levels.
Depending what level we are on, the function sets our tile map, our spawn point and also creates the enemies for our level
Each level has the same spawn point block and end point block
Once we get to the end point block, we have to clear the level of any enemies before we load the new one
Once we get through the last level, we win the game
Have a look at the full code below and test it in the simulator