Blicke is now available!


My new game Blicke is now available for iOS and Android!

Download it now!



About Blicke

Blicke is a puzzle game with simple but challenging gameplay, without long tutorials or different types of objects or items.

No lives; no time or move count limit; no IAP or ads. The game objective is to challenge the player to complete the puzzles and learn them in a natural process as he advances in levels.

This doesn’t mean that Blicke is an easy game. On the contrary: there are 72 levels, each increasing in difficulty. Players will have to work hard to solve them all.

Your feedback is appreciated!

Blicke – Release Date – July 27, 2016

Blicke Release Date

My new game Blicke will be released for iOS and Android July 27.

I developed Blicke with the objective to make a puzzle with simple gameplay, but challenging at the same time, and without long tutorials or different types of objects or items.

So there’s no lives, time or move count limit, nor IAP or ads. The game goal is to challenge the player to complete the puzzles and learn it in a natural process as it advances in levels.

This doesn’t mean that Blicke is an easy game. On the contrary, the 72 levels get increasingly difficult and the player will have to think hard to solve all.

The game is already approved and it will be released on July 27, 2016.

You can find more about Blicke and play the web demo here.

Unity – Creating Singleton From Prefab Tutorial

In the previous tutorial Reusable Singleton Tutorial I showed how to create a singleton class that can be reused extending it on subclasses, so you don’t need to write the singleton initializers in your classes.

Now you’ll learn how to use this singleton from a prefab. It is very useful that you can add scripts and set the properties values on your prefab using Unity Editor and have them loaded with your singleton.

Creating Singleton Base Class

First, you need to create the “Singleton.cs” script. All your own singleton classes will extend it. (You can also download this script here). It’s almost the same script created in the previous tutorial, but this time we’ll check for existing prefab on resources folder to instantiate it.

Creating Your Class

Create your class that you want to be a singleton, and make it extends Singleton.

Creating the Prefab

Create a game object and add your Singleton Class to it.

MySingletonExample Prefab

Convert your game object to prefab and put it on Resources Folder.
IMPORTANT: The prefab needs to have the same name as your Singleton Class (MySingletonExample in this example)

Resources Folder

Remove the Game Object from Scene (It will be created when you call MySingletonExample.Instance).

Usage Example

Now you can call your singleton class by Instance:

When you call your singleton it will check for existing prefab with the same name on Resources folder to instantiate it. If none prefab is found, the singleton will be created as new.

Now you can set values on your Singleton Prefab Object and have them loaded when your Singleton is instantiated.

You can download the source codes here.



Blicke – New Game with Demo Available


In the last few months I am developing a new puzzle game for iOS and Android.

I present you Blicke!

Blicke is a unique puzzle game in which you have to slide the blocks across the board to take each one of them to their target. Each block matches its own color.

The game is almost complete and it will be released in a few weeks, but you can play the web demo and try it now! Continue reading

Unity – Reusable Singleton Tutorial

Singletons are very useful in Unity. They can be used to store variable values and keep it after changing Scenes, e.g.

I like to use a MyApplication class as Singleton in my games, managing all variables, objects and configurations that need to persist throughout the game.

Searching for Unity Singleton Patterns on Google, most of the time you will find:

  • Simple and small codes, but with some issues;
  • Long codes that make your classes “dirty”.

But then I found a cool pattern in this wiki

I took this pattern, made some changes and now I share here what I called as Reusable Singleton.

It’s a Singleton design pattern that can be reused extending it on subclasses. Using this script, You will not need to write the singleton initializers in your classes. Just make your class extends Singleton and it will automatically have the singleton features! Just 1 line of code! Continue reading