Creating an html5 game like concentration

In this tutorial, we are going to explore various features of the phaser library by creating an html5 game like concentration. One of the advantages of using the phaser library is its cross-platform compatibility. And it is very easy to prototype a game. You can learn so much things by going into the phaser website.

There are so many tutorials on internet about phaser or this games. But here, we are going to explore various aspects like loading texturepacker spritesheet, using phaser custom signals, phaser tweens etc. It is not what you create, but how you create the game.

Continue reading

Designing UI for games in Unity

Designing UI for games takes some effort. And doing the same on mobile devices is very difficult. The variety of screen resolutions and dpis make the job not easy. Luckily, the guys that made Unity came up with a solution and that is Unity UI components. It is available from Unity 4.6 version.

Once you design a user interface using Unity UI, you will praise them. If you have already done some things in it, then you know it. Once we design the interface correctly, it will scale and align to all of the screens and resolutions perfectly. You also won’t have the problem of font scaling too. Continue reading

Fix CSS caching on WordPress

When you build a wordpress blog, the first thing you’ll want to have is a theme. Then you realize that you want to change something on the theme. You can directly edit on the theme files to quickly modify the blog’s appearance to fit to your tastes but there is a recommended way – i.e., creating child themes. This way, even if you update your main theme, you can be sure that your modifications are there to stay. Continue reading

Multiscreen development in phaser 2.4.2

Earlier, I posted a tutorial on scaling the game and assets for multiple devices. But it does not work very well in latest phaser version 2.4.2(as if the time of writing). So I thought it will be good to post an updated version for the latest phaser.

The idea is simple, Create a group and add all of your game objects into that group. After that, scale and position the group correctly to display the game fully inside the browser/device. The scaling and positioning is done such a way that there will be no black bars around the game and it will be in the correct aspect ratio. Continue reading

Using HTTPClient in Godot

Hi all,

While I was creating an openclipart plugin for the Godot Engine, I have created an HTTP class for downloading the data and images. Godot has built-in support for HTTP get/post data. An example on how to use the HTTPClient is already available on godot github wiki page.

The plugin loads multiple images simultaneously so I was in need of creating a class for that. Also there are multiple things are loaded, there is a chance of blocking the UI. Here comes multi-threading to the rescue. Godot wiki also has an example for background resource loading in another thread.

Continue reading

Resolution Switcher Plugin for Godot

Godot game engine is a free opensource game engine similar to Unity. It is a cross platform software that works flawlessly on Windows, Mac or Linux and can export to almost every platforms. However, this is a new born child in the game development community and it does have limited features. As a first attempt, I have created a plugin which can be used to switch the test resolutions while developing 2D games.

Continue reading