Android 2d rotation and heading demo
In this project, we will put into practice everything we learned in part 1 and part 2 of the tutorial series on trigonometric functions. We will draw a simple triangle-shaped spaceship to the screen by drawing lines between three points/vertices. We will then see how we can do the math to smoothly rotate it and […]
Rotating graphics in 2d games: Using trigonometric functions part 2
In this second part of the series on trigonometric functions we will use the sine and cosine of an angle to rotateĀ a point around a specific central point. We will then see that by drawing multiple points around the central point and using the same calculation on each we can create the effect of an […]
Calculating heading in 2d games: Using trigonometric functions part 1
This article takes a high-level but hopefully useful look and some common trigonometric functions with the aim of clarifying how they can be used as solutions in our game coding to create some cool movement and drawing effects. As this article is aimed at beginners in game coding it makes no assumptions about the readers […]
Coding Android sprite sheet animations
This very simple tutorial will quickly bring your games to life by drawing the frames of animation from a row of frames drawn consecutively in the same file. We will see how to draw each of five frames one after the other and after we have drawn the last frame, loop back to the first. […]
Coding a Space Invaders game for Android
Welcome to the Space Invaders coding project for Android. In this game project, we will step through everything you need to know to have a fully playable Space Invaders clone running on your Android phone or tablet. The wave of invaders is genuinely challenging yet achievable and it would be simple for you to extend […]
Coding a Breakout (Arkanoid) game for Android
In this project, we will build a really simple but fun version of the classic Breakout game for Android. Often known as the “Brick breaker game” the history of the game is interesting and if you like nostalgia I urge you to read this history of Breakout. Breakout sometimes called Arkanoid was developed by Atari […]
Playing sound FX demo
In this mini-project, we will play a sound on an Android device. We will see how we use the SoundPool class to load a sound from a file and then play it. This is another significant step on the journey to build a complete game.
Create a new project
Create a new Android Studio project, call it […]
Building a simple game engine
In this mini-project we will draw a moving, controllable sprite to your Android device. We will draw Bob to the screen and when the screen is touched he will move to the right and when the screen is released he will stop. However, we will have achieved much more than this as this simple 2D […]
Drawing graphics demo
In this really simple mini-project, we will really harness the power of classes and objects by using classes from the Android API which allow us to draw graphics on the screen. We will see how we can draw shapes, lines, pixels, text, and even custom-designed graphics like game characters. We will do all of this […]








