Hello, readers!
Apologies for the lack of updates in the past couple of weeks; various projects have been keeping me busy, and I haven't had much time to work on the Final Project, and didn't see any point in providing updates with no progress to report. I have finally managed to pour a couple of hours into it today, however, and have settled on and set up a fairly nice central mechanic for the puzzle game I'll be building.
The player starts with a square grid of bubbles, which can be popped by clicking on them. Popping the bubble produces a nice little particle effect, and makes the sphere of the bubble vanish.
Once a bubble has been popped, the game pops the rest of the bubbles in lines above, below, left, and right of the clicked bubble in a short chain-reaction. The code for this was relatively simple, but took a little bit of thought to get them to pop in order, all at once. It was a fairly simple matter of having the four directions of popping in a single function with four Booleans detecting whether the edge or a blank space had been reached; the function was headed by a While Loop that checked if all of the Booleans had been completed, and included a yield WaitForSeconds delay at the bottom of the While Loop.
The bubbles are contained in a Two-Dimension Array to which they're added as they're created, similarly to the Maze Game I created in the first semester. This makes it incredibly easy to target specific bubbles within that Array, using the coordinates that are assigned to them.
Overall, I'm happy with this as a start to the game. It's a fairly nice puzzle mechanic which, with some basic level design, can make for some tricky levels. It also offers some room to develop one-off mechanics with the popping chain (such as a "bomb" bubble, which bursts all bubbles around it when it pops, or a way of bouncing the chain reaction around the board), and is generally just quite satisfying to watch. It wouldn't be incredibly hard to allow the player to set up some fairly intricate, almost domino-like patterns in the bubbles, which they could set off with a single click, sit back, and watch play out.
With another couple of weeks, I can hopefully develop this into something very pleasing to add to both this dissertation, and my portfolio.
I'll try to keep updates coming more regularly. Until the next one, have a fantastic day, readers.


No comments:
Post a Comment