SFML FLAPPY BIRD banner

SFML FLAPPY BIRD

4 devlogs
2h 40m 52s

Flappy bird implemented on SFML

Repository

Loading README...

manolea_stefan

So for today that’s it.
Added some programmer art and started implementing a scaling system (W.I.P.)
Nextt thing I will implement the Pipe class

Attachment
0
manolea_stefan

Ok, so update.
I had to update a bit the game logic because my bird was jumping insanely high the more you waited to start the game.
I already had implemented a delta time dt but it just refused to do it’s job I thought.
Then I remembered that I start my clock when the game starts.

Tl;dr
If you face the same issue, it is because you, yes you dear developer, don t have your first delta time between frames. so when you divide the (i.e. acceleration) that you add to your object with your delta time, guess what, you haven’t accounted for the time between your first and second frame, so your time is useless.

The solution:
Instead of calling the function updateGame only when you are sure that the game Runs, enter the function and add an if that returns if you don’t have to update your game, but add your clock before that return :P

Attachment
0
manolea_stefan

Started by creating the basic mechanics for the game.

Attachment
0