Home » Android » games » canvas


Using bitmap fonts

With this example we are going to demonstrate how to use bitmap fonts in an Android Application. Android is running on a wide variety of devices with lots of different screen sizes and resolutions. So bitmap fonts can help you address the problem of using a consistent font face across different devices. For this tutorial we are going to use ...

Read More »

Particle Explosion example

In this tutorial we are going to see how can we create a Particle Explosion effect in our Android Application. An explosion is just a number of particles (pixels or small shapes in this occasion…) that move in random positions and with random speeds around the screen originated from the same source. In our tutorial we will assume that our ...

Read More »

Sprite Animation in Android

With this example we are going to demonstrate how to  create and display a Sprite animation in an Android Application. A Sprite animation is a moving image animation that you will have seen in a gif image. For example imagine a human walking.               To create this kind of animation in Android is simple. ...

Read More »

Moving Images on Screen

In this example we shall show you how to create and display moving Images on the screen in your Android Application. For example let’s have a moving image that will move through the screen and it bounces back when it hits the edge of the screen. This is an example of a very basic animation that you might want to ...

Read More »

Displaying Images with Android

With this example we are going to demonstrate how to display Images with Android using canvas. In short, to create and use a Sprite Animation you should: copy the image you want to display in one of the /res/drawable* resource folders of the Android Project lock the canvas for exclusive pixel editing model the image with a bitmap use canvas.drawBitmap to ...

Read More »