A.I, Data and Software Engineering

Search results forgame

Game Frame rate and character animations (part 2)

In part 1, we covered the principle of game frame rate and a useful game programming pattern for performance. This part shows the detailed implementation of a game scene with hundreds of moving characters using Android Studio and Kotlin. Image asset This game uses a free image from wild-refuge.net. Xmas girl 3 (URL) You can download any similar image (4 x 4 frames) and place it in the...

Game frame rate & Character animations (part 1)

A simple game does not always come with simple implementation w.r.t character animations. This articles will introduce a practical design pattern in game development to deal with this. How many animations in this game scene Let have a look at the famous game scene of flappy bird and try to identify how many animations. Fig 1. Flappy bird Visually, you may say there are two animations: the pipes...

Smooth nature snake – game redev with Kotlin (part 3)

In part 2, I introduced how to make the serpentine movement. We continue this article by covering the turning mechanism for the snake. Challenges in turning animation Fig 2: Classic snake game design with blocks and grids As we want our snake looks as smooth as possible, the two challenges are: Firstly, the head should slowly change to the target direction rather than a sudden turn. As the head...

Smooth nature snake – game re-dev with Kotlin (part 2)

This is the second part of creating a smooth nature snake game. You can read the first part here. In this part, we will cover the challenges in simulating the snake’s movement pattern. How snakes move Snakes move in zigzag patterns as demonstrated in the following figure. Smooth nature snake movement patterns We can see that the whole body of the snake forms a shape that is similar to the...

Smooth nature snake game – re-dev with Kotlin (part 1)

When my students proposed a snake game for their projects, I thought it is kind of boring. They are all the same old ideas. Nevertheless, how you want it to be do matter as the game mechanics and animations can be much varied. snake game Why I redev the snake game? Did I try to reinvent the wheel – Not quite! What I include in this post addresses several challenges to simulate a fully...

A.I, Data and Software Engineering

PetaMinds focuses on developing the coolest topics in data science, A.I, and programming, and make them so digestible for everyone to learn and create amazing applications in a short time.

Categories