Hack n Slash Coding

Slowly working on making my game’s handling of the gameboard less specific so I can make the level editor work. The level editor is the same as the main game, only there isn’t a laser drawn and you can choose what pieces you want to place instead of being given them.

It’s quite fun really. I had a big gameboard class that did everything. I’ve now chopped it up into two smaller classes which do specific things (maintain the state of the board and maintain the state of the game’s levels) that the gameboard class now uses. The actual game logic is now separate to the code that makes the game work. To make a level editor, all I need to do is replace the game logic with some that is different.