Home » Android » Page 35

Android

Android Game Development – Measuring FPS

In the previous entry we have created a game loop that runs at a constant speed and constant (more or less) FPS. How can we measure it? Check the new MainThread.java class.           package net.obviam.droidz; import java.text.DecimalFormat; import android.graphics.Canvas; import android.util.Log; import android.view.SurfaceHolder; /** * @author impaler * * The Main thread which contains the game ...

Read More »

Android Game Development – The Game Loop

The game loop is the heartbeat of every game. We used a very rudimentary one so far (you can find it here) without any control over how fast or slow we update our game state and which frames to render. To recapitulate, the most rudimentary game loop is a while loop that keeps executing some instructions until we signal it ...

Read More »

Android Game Development – Moving Images on Screen

In the previous post we’ve displayed an image and implemented a very simple drag functionality. Things we should know by now following the series: launch an Android application in full screen use a separate thread which controls the application (the game loop) load an image from the resources acquire the canvas and draw the image onto it handle basic touch ...

Read More »

Android Game Development – Displaying Images with Android

Before moving to the actual game loop let’s display some graphics so we can get some measurements done. If you haven’t checked it out please do as it is imperative that you understand how a thread updates the screen. You can check it out here. Displaying an image using Android is extremely simple. To scale the problem down we will ...

Read More »

Android Game Development – A Basic Game Loop

Following the series so far you we have an understanding of the game architecture. Even if just briefly but we know that we need to take input in some form, update the internal state of the game and finally render it to the screen and also produce some sounds and/or vibrations. Furthermore we have created an example Android project for ...

Read More »

Android Game Development – A Basic Game Architecture

So we got our Android application up and running but you might be wondering what type of application is exactly a game. I will try to give you my understanding of it. The following diagram represents a game architecture. Game architecture on an Android phone In the schema above you see the Android OS running on the Phone and everything ...

Read More »

Android Game Development – Create The Project

Now that we have our idea let’s get the environment up and start coding. To install Android follow the steps found on the official documentation page. I use eclipse so if you are a Java guy it should be pretty familiar. If you have never developed in Java but did some other coding in C++ or C# for example it ...

Read More »

Android Game Development – The Game Idea

Coming up with an idea for the game This is the hardest part. Because I am just one guy having limited time I will choose one idea that is realisable in a short time and will contain all elements of an action game. So I came up with a story for the game. The story goes like this: The end ...

Read More »

JCG Studios – ArkDroid official launch

Hello all, Following the beta testing phase, I am pleased to announce the official launch of our very first Android game, ArkDroid. ArkDroid is essentially an Arkanoid clone for Android but it is also what we would like to call “brick breaker evolved”; an old school game that comes to enrich the world of classic “brick breaker” games with cinematic ...

Read More »