Big Game: Week 3 and 4

It’s been a while longer since last time, due to the easter holidays. This post will cover the three days before easter and the four days this week. Instead of going through everything I did on a day to day basis, like I did in the previous posts, I’ll select the things that I felt were the most important.

 

  • I’ve implemented all the different matching powerups. There are three in total. You should be familiar with the match four powerup since before. It’s the one that clears a single row or column, depending on how you activate it. Then there’s the match five powerup if the player manages to match five materials horizontally or vertically. It grants a powerup that lets the player clear a single resource. The resource cleared is dependant on the resource you match the powerup with. The final powerup, currently dubbed match special is granted if the player manages to match five or more materials in an L or T shape.  It creates a bomb that can be activated when double clicked, clearing a large area of the board.
Capture

This is the match four powerup. Depending on the direction the powerup is dragged either a row or column is cleared, as depicted by this horrible paint edit!

 

  • It is no longer possible to move stuff around on the matching board without getting a match first. This was something I thought would be much more difficult to do than it was. Turned out I just needed an extra bool in the individual material script. Easy does it.

 

  • Another smaller thing that might be worth mentioning is that I added a highlighter for the selected material on the matching board so that it’s easier to see what the player has selected.

 

  • In addition to a highlighter for the selected material I also added a highlighter for a possible match if the player can’t find one. A hint really. This also ties into another feature, which is that if a match can’t be found by the code the board is reset so the player is never stuck without a way to get resources.

 

  • Last but not least I added the three hero abilities for the matching board. The first one currently clears the board of one resource that the player selects, much like the match five powerup. The second is like a superb version of the match four powerup. It clears two rows and two columns of the matching board. Important to remember is that the player gets all the resources from these special abilities. The final ability is a buff of sorts that gives the player a chance to receive extra resources with every match.

 

  • I almost forgot! One thing that I added the last weeks was the ability to drag materials to match them instead of having to click the two you wanted to move. I dreaded this as I thought it would be difficult to implement, but it only took a few hours. I just compare the mouse coordinates from the click with the current mouse position. If the mouse is still pressed and the mouse has been moved the required amount on the x or y axis the materials swap position, trying to match.

 

This was a different kind of blogpost, being more concise and to the point. That was my goal with this new formating at least, so I hope you feel the same. Next blogpost will cover how the alpha turned out!