📜 ⬆️ ⬇️

Create a prototype of the game Flappy Bird for Android on LibGDX

Today morning at work began with a holivar on the topic of yesterday’s article : “Now iOS already has a physics engine, and in Android even the camera does not work normally ... The customer will come, the project will be ported from iOS to Android - you will estimate it at 120 hours, and the customer will say , as so, here under iOS for 8 hours they wrote ... ”. In short, I got a lot of emotions from scratch.

Therefore, I decided to put some dots above the “and” (is there such a saying in Russian, or only in Ukrainian? :)). So, the task:
- write a Flappy Bird prototype using any physics engine or framework as quickly as possible.

At first I wanted to go through the source code, but they turned out so primitive that I think there is no point. I took the LibGDX framework for development and tried to write a more or less beautiful code (this is an eternal topic, and everyone has the perfect code in his own way).
')
After one and a half hours of work and half a liter of kefir, a prototype turned out. This figure does not say anything, I am sure that there are dozens of programmers in Habré who implement this task 2-3 times faster. So if iOS developers say what they can write in 20 minutes, I will believe.

Findings:
- under Android you can write as fast as under iOS, it all depends on the experience of the programmer;
- we got not only a prototype of the game in 90 minutes, but also a cross platform, it will work under iOS, and under Android, and under Windows / Linux / BSD / MacOS ... wherever there is Java. If in the future a port is planned for other platforms, then I think it is not necessary to say that it is easier to write a game from scratch than to repeat the physics in an already written one. Therefore, if you need a cross platform, it is better to immediately choose something independent.
- yes, there are a lot of shoals in Android, there is no point in arguing which is better, Android or iOS - both have pros and cons. It is better to spend this time on family / work, besides, I do not want to provoke srach in the comments.

Sources on Bitbucket (MIT license).

PS If the author of this article writes in the comments or in a personal, how much time he took to develop - I will be very grateful.

Source: https://habr.com/ru/post/212383/


All Articles