Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey, Delphi Android, Delphi IOS

Flappy Bird Clone Source Code For Delphi XE5 Firemonkey On Android And IOS

Delphi XE5 Firemonkey Flappy BirdIf you live in a cave you might have missed the ultra hard mobile game Flappy Bird that went viral recently. I wanted to build a proof of concept prototype version of Flappy Bird using Delphi XE5 Firemonkey and this is what I came up with. The game is called Flappy Firemonkey and I built it in a few hours. The code is very rough and it could use a lot of optimization and polish but it’s playable. It works best on Windows and I also tested it on Android and IOS but not OSX. It uses a TMemIniFile to save your best score, rudimentary collision detection, a game loop, opening a cross platform URL, and does some things with TFloatAnimation as well. Handling all of the different screen sizes was harder than I thought but I have run out of time for handling more screen sizes than a normal Android device and the Google Nexus 4 size device on Windows.

Things that worked out well:

Things that did not work out so well:

Download Flappy Firemonkey Prototype Source Code For Delphi XE5 Firemonkey.

Update: I created a second version that uses a Firemonkey 3D form and a Layer3D. It is still 2D but rendered on the 3D layer. Seems faster.

Download Flappy Firemonkey 3D Prototype Source Code For Delphi XE5 Firemonkey 3D or download the Win32 binary.

Update 2: Developer Croco Tronic updated my original version of the source and implemented a thread for the game loop in addition to a lot of other code optimizations.

Here is a custom themed version on Google Play called Aswang – Manananggal Edition.

Update 3 (4/4/2014): Developer Croco Tronic and I both put new code into his version which fixes some bugs with it.

You can download the updated version here: Delphi XE5 Firemonkey Flappy Bird Clone.

Update 4 (5/16/2014): New XE6 compatible versions available:

Download Flappy Firemonkey for XE6
Download Flappy Firemonkey 3D for XE6
Download Flappy Bird for XE6

Exit mobile version