Does NOT work very well in (turbo mode) Commands: 1. space + n: goes to next world template 2. space + r: renders the current world template 3. space + c: clears all and resets everything 4. space + s: renders the world slowly so you can see what is going on #pen #platformer #physics #ninja #blocks #terrain #minecraft #terraria #world #level-generator
This project uses a backdrop with various colors to signify different tiles. Then the renderer goes over the background and stamps when it detects a color. If you want to make your own world just create a new background with the 20px by 20px grid and fill in the grid squares with the colors I have used for the different blocks To make a new tile just create a copy of the blank costume and design the tile in the space of the block. Then find a color that has not been used yet and use that color in the world template. The last thing is to add it to the rendering code by duplicating one of the if/else blocks that are already in use and change the color to the color you used and the costume it switches to, to the costume you just designed. If the block is also something the little ninja will be standing on make sure to add the color of the block to the ground detection in the ninja's sprite