3 ms·
A student of mine had an assignment to write a game using SFML, they wrote a FlappyBird clone and it was like a few hundred lines of code. It's not a very compl
by kgeist 2y ago
A student of mine had an assignment to write a game using SFML, they wrote a FlappyBird clone and it was like a few hundred lines of code. It's not a very complex program to write. To be honest, I think 4k is too much :)
- snvzz 2y agoTo be fair, Android itself requires some level of fluff. So does making the game work well in more than one device.
- dario_od 2y agoAre you including SFML loc in that total?
- kvemkon 2y ago3623 total - 1377 upng.c (3rd-party tiny PNG image decoding library) = 2246
- charles_f 2y agogame.c is 800 odd lines. There are some optimizations you could do here and there (e.g load digit sprites in an array to avoid the switch case 1/2/3... stuff). The bulk of the 3000 is fluff that you need because this is C on Android, not SFML.