FlappyBird
Less than 100 Kilobytes. Works for Android 5.1 and above
Install / Use
/learn @VadimBoev/FlappyBirdREADME
🐦 Flappy Bird in C: APK Size < 100 Kilobytes! 🚀
📜 History:
It all started in 2021 when I stumbled upon rawdrawandroid. My goal was simple: to create a game with the minimal APK size, yet still be understandable and interesting. 🎯
The idea of making a Flappy Bird clone seemed logical, given that this game had already been ported to many languages. 🐤
In 2021, I also studied Raylib, but my first attempt to make a game in C++ using ImGui failed. 💔
The problems were everywhere: the APK size was around 1 MB, the game crashed, and the APK only contained the armeabi-v7a library (Google's 2022 requirements state that the arm64-v8a library must be included!). 🤯
💡 Motivation:
In September 2024, seeing Flappy Bird in C# in the Raylib Discord channel, I decided to try implementing this game in C for Android with an APK size of less than 100 KB. 🚀
The idea seemed crazy, but the competitive interest took over. 💪
🛠️ Implementation:
I started by compiling a "Hello World" in C and packaging the library into an APK. 📦
Sounds were compressed to MP3 format, and OpenSLES was used for playback. 🎵
For PNG file decoding, I chose upng. 🖼️
All of this was combined using OpenGL ES 2, shaders, and Android Native Activity. 🎮
🔧 Build:
Visual Studio (Windows)
- Download Visual Studio 2022.
- Install components: C++ Desktop Development and C++ Mobile Development.
- Download Android Studio (for apktool, sdk, ndk).
- Install NDK 27.1.12297006 and Android SDK Platform 30.
- Configure the project for "Debug ARM" and make changes to build.bat.
- Compile via CTRL + B. 🛠️
Linux and macOS (Makefile)
For Linux and macOS users, you can build the project using the provided Makefile:
- Install the Android command-line tools.
- Set up your environment variables in a
.envfile in the project root directory (see.env.examplefor an example). - Build the project:
cd FlappyBird make
For more detailed instructions, please refer to BUILDING.md.
The signed APK will be generated at:
FlappyBird/app/build/outputs/apk/FlappyBird-signed.apk
📄 Copyright:
I do not claim any copyright. The rights to the game and resources belong to DotGEARS. 📜
🌟 Inspiration:
🌠 Star History
🎉 Enjoy the game and don't forget to star it! 🌟
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
