PLEX Source Code Version 0.06
Total Time – 8 hours
I’ve fixed scrolling. The board now scrolls without a problem. To simplify things I’m currently working on selecting and moving blocks from only the top two levels. Another thing I fixed was making it so that when the character moved behind a tall block the lower half of their body is covered up by that block.
Right now I have it so you can select a block and then select the space you want to move the block to. I’m still working on updating both arrays so the block moves from one position to another. I have to do some blitting to remove the block from the screen and then to put it in its new position and add in some more calculations in my validMove function to make sure the character can’t move over water blocks or over spaces that don’t have blocks on them.
I’ve started downloading and incorporating sounds into the game as well. I now have a sound for moving a block, an error sound you’ll hear if the block can’t move to that position, and background music for the setup screens and different map screens. I tried to look for music that was upbeat and happy sounding. I ended up with mainly classical music although one or two of them sound kind of techno.
Here’s the source code with the sounds unimplemented (but some of the sound files in it). From here on out, since the sound files are so large, I’ll add them as a separate zip download and you’ll have to unzip them and add them in a folder called sounds before you run the game. That way I don’t have to upload the whole huge file with all the sounds each time.