Greetings!

The main purpose of this website is to support Android indie game developers with tutorials, reviews and promotion of their games. The main difficulty for the developers is not to make the game, but to get exposure. To get it out there. If you find anything useful here, please spread the word. Like my page on Facebook, follow me on Google+ or Twitter. Thank you!

Google+ Facebook Twitter

× close
Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Friday, 21 February 2014

Flying Mr. Dandelion - Flappy Bird Clone with Source Codes

Flappy Bird definitely had an impact on indie game scene. It seems that everyone should create at least one Flappy Bird clone. As a person who reviews games, I've seen about 20 flappy bird clones and I am sure that was just a fraction of all the flappy animals on the market.

Creating a similar game is actually very simple. You can make the whole thing in a matter of hours. I've re-used assets from my previous game Mr. Dandelion's Adventures and I've used AndEngine GLES2-Anchorcenter to create it. I've also used Box2D (the AndEngine's extension), but it was a bit overkill. Nevertheless using Box2D probably saved some time. It was a pleasant programming excercise!
Read more »

Wednesday, 12 February 2014

Poor Man's Source Code Backup and Version Control

This article will give you a simple tip how to backup your codes in a cloud and use version control at the same time and completely for free. This option uses Git that is included in Eclipse bundled with Android Development Tools and Dropbox.

Code backup

You are probably doing this already. One of the possibilities is to use a cloud storage service. You can use Google Drive or Dropbox, which is my favourite. If you don't have a Dropbox account, get one (this is a referral link. If you use it, we both get extra 500MB of space to use) and install Dropbox.

You can simply put your workspace or your project directory inside Dropbox (symbolic links work too).  Each change is automatically synced with Dropbox server. As a bonus you have your codes available from anywhere.
Read more »

Sunday, 6 October 2013

AndEngine Tutorial - Using Git and GitHub

This tutorial is part of AndEngine basics.


<< List of all tutorials

Using GitHub is simple, but can be intimidating if you've never worked with version control before. If you did, you probably don't need this tutorial. I will cover the simplest case: Cloning the repositories from GitHub to your local machine. This replaces the steps in previous tutorials: Getting Started and Extensions and Examples.

What is Git anyway? 

It's a version control tool. Basically a storage for source codes (and other files) that saves the initial commit and then incremental changes.  Imagine you have a file that contains string: "Hello". You commit this file to Git and it will be saved as "Hello". When you make a change on your PC to "Hello World" and commit, the change will be saved as "Hello" > "Hello World" and the number of the line where this change occured. This way you can roll back to older version and track changes.

It also helps collaboration, creating forks of the projects etc, but again, if you need to do that, then you should not need this tutorial!

What is GitHub?

A free Git hosting for Open Source public repositories and paid service for private repositories.

So how do I use it?

First you need to install Git client. Because you are most likely using Eclipse IDE (or Google's ADT which is Eclipse), the easiest way is to grab the Eclipse Git plugin.

Go to Help -> Install new software.



Click Add to add a new plugin repository and use this URL as location: http://download.eclipse.org/egit/updates


Click OK and Select All.


Then simply click Next and accept all licenses until you can press Finish. If you are asked to restart ADT (Eclipse), do it.

Clone the repository from GitHub to Desktop

Cloning in Git means making a copy from the repository into local machine. That is an exact copy that can be synchronized with the repository. As opposed to fork, which is a new copy... But don't worry about forks now.

In Eclipse, go to File -> Import and select Git -> Projects from Git


And then from the options select "Clone URI". Enter the repository of your choice as URI and the rest will be filled in by Eclipse:



To get the Git repository URI  e.g. https://github.com/sm4/AndEngine and copy the URL of the Git repository from this box:


On the next screen select only the branch that you are going to use. Branch is a separate version of the project - using the GLES2-AnchorCenter is recommended.






Then select local directory, I highly recommend using the workspace folder.


Wait for Eclipse to download the project and last step, select "Import Existing Projects"


Click Next, and then Finish and you have successfuly cloned Git repository to your desktop. Do this with any repository you need.

Conclusion

Having the cloned repository is useful, because you can then easily get latest changes without downloading everything again. But if this is easier than the download-zip method, I leave up to you!
Read more »