Let's create an MPAGD game - Part 3 - The Block Editor
The Block editor is where you will create the 8px by 8px blocks that we will use to design the screens of our game.
MPAGD allows blocks to have different properties, these are called BLOCKTYPES.
When you first open up the Block Editor, you can see there are already two Blocks that have been created:
Similar to the Sprite Editor, the Block Editor lets us choose the foreground and background colours that we we can use, then we just click in the grid to design the block.
We can also change the Blocktype by clicking the current type on the right hand side to cycle through the available types.
At the bottom of the Block Editor is the bank of currently available blocks. Currently there are two, the first block, is an EMPTYBLOCK type. EMPTYBLOCKS allow the player to pass through them unhindered. Lets leave this one alone for now, it's best not to mess around with it as this is the block that will be used by default when you create a SCREEN.
Click on the other block, the one with a brickwork pattern
As we can see, this is a WALLBLOCK type. WALLBLOCKS cannot be passed through by the player, but in a platform game for example, you can use them for walls, floors and platforms that the player can walk on and jump on to.
Let's create a new Block. As with the SPRITE EDITOR we can press X to add a new one.
Next, we'll change the BLOCKTYPE to PLATFORMBLOCK. Keep clicking the blocktype until it reaches PLATFORMBLOCK. Then choose some colours, and design your PLATFORMBLOCK in the grid...
A PLATFORMBLOCK is similar to a WALLBLOCK in that a sprite can walk on it, however they can also jump through it to get on top of it. There are a number of other BLOCKTYPES available that I'll cover later, but for now, we have enough.
OK. We've got a player sprite, and a few blocks...next we'll create a screen that the player can play in.....next stop the SCREEN EDITOR...click the Editors Menu and select SCREENS.