Open Match-3. Developed in Unity

April 14 | 15

So I had this project for long time stored and didn’t know what to do with it so what a better idea than releasing it!.

Hopefully the community will learn from it, and if you find any better way of doing certain things I’ll be more than happy to receive some feedback!

This project is released under the MIT license, you can do whatever you want with it :).

As the title says is a match 3 that works in Unity. 4.x and 5.x. it contains:

  • Generates a move if the board doesn’t have any more moves left.
  • Supports any amount of gems (for the time being I just added 5 types of gems).
  • Works with any board size (width x height)
  • Generates an “explosion” effect when 3 or more adjacent gems are clicked.
  • Generates a hint (depending on a time in secs set in the inspector) of the largest adjacent gems.
  • Support for score multiplier when you click on several correctly adjacent gems before the hint kicks in.

Here are some screenshots of the game:

Screen Shot 2015-04-14 at 15.03.57















Also supporting any width x height (17×18) in this case.

Screen Shot 2015-04-14 at 15.05.21












Finally in order to modify certain parameters of the game, just click over the main camera object and set the desired values inside GameManager component.

Screen Shot 2015-04-14 at 15.07.54












Liked the project?, Here!, fork it!


Like this post?, feel free to subscribe to my posts, I’ll keep you posted on anything that I write :).


Any comments/suggestions/feedback let me know :).


Adding Transform.LookAt2D like it belongs to the Unity API

March 31 | 15

Unfortunately there is no Transform.LookAt2D in Unity as for now in Unity5. BUT with an extension method this can be added into the API quick and easy!.

Its pretty simple. We just need to have a namespace included wherever we want to use Transform.LookAt2D and thats pretty much!, here’s how:

Lets create the extension method for LookAt2D:

And then we just need to call it from any of our scripts as part of the Transform methods! here’s a quick example:

Quick, easy and clean!





Getting a random enum value and also be able to exclude some values

March 5 | 15

As the post says, in the game I am working on I needed to get a random value of an enumeration but on some cases I needed to exclude some values of the enumeration, so I came up with this small snippet of code that given an enum type and an array of enum excluded values it will return you a random value of the enumeration.

It works with any type of enum you create 😀

If you have a better way to do it _please_ let me know :).

Quick example on how to use it:


Let em Down. Old game from Unity 2.x still runs on Unity 4.x

February 4 | 14

So I was going trough my projects and found this iPhone game that I made all on my own (yes, including art) and surprisingly it “just runs” without any modification on the code on Unity 4.3.3 right now.

Of course there are some warnings but besides that it still just runs and compiles smoothly which is pretty amazing.

Without further ado, here’s a video of the game running on OSx

Make a Plane adjust itself to the whole screen being rendered regardless the distance.

November 7 | 13

So basically this script resizes a plane to fit on the whole area that the camera is rendering. I’m using it to play a movie on the back while animating a character.






And the code: