Bubble Shooter Game in Unity: Part 1

ray casting

This time, building on the previous series of tutorials on match three games, I’ll go over how to build a bubble shooter game. There are a number of ways to go about this, using a grid, or not using a grid, using physics or not using physics… I’ll show you one way of doing it, explaining the basics so you can extend to meet your game idea needs.

Read More

A Match Three Game in Unity: Part 8

adding neighbors to matches

The one thing left to explain is what to do if you want to remove not only the group of matched balls but all balls of the same type which are connected to the original match group.

Sounds more complicated than it is. All you need is one extra check wherever in your logic you first create the matchList.

Read More

A Match Three Game in Unity: Part 7

drag and drop

This is the most complicated of the types of Match Three games I’ve shown so far. The player can drag any ball either vertically or horizontally and when the ball is dropped the player can swap with any other ball in either the same row, or in the same column depending in which direction the player is dragging. There are no refreshes, the grid is finite, AND the grid must then collapse sideways.

Read More

A Match Three Game in Unity: Part 4

checking for matches

Finally we’re ready the add the last bit of logic for the match three game. We need to handle the selection of the balls, and the swapping of balls, as well as a couple of new animations. Then we need to check for matches, cause the grid to collapse and check for matches again until none are found.

Read More

A Match Three Game in Unity: Part 3

column collapse

In this step I’ll code the logic that causes the columns to collapse, for when matches are found. And once again I start by updating the Ball class.

I used GoKitLite for the tweening, and I’ll use that for all the main animations: the collapse, the swap, and the reset. The last two animations will be done in the next step of this tutorial, hopefully the last.

Read More