Devlog №8
Bird Physics & Rendering
-
Flicker-Free Rendering
To prevent screen flickering caused by redrawing the entire screen, I optimized the loop by clearing only the bird’s exact position before rendering its new frame.
-
Physics Implementation
Movement relies on both velocity and acceleration:
- Acceleration continuously increases the downward velocity (gravity).
- Jump mechanic resets the downward velocity to initial on every input.
Next Steps: Wall Generation
-
Obstacle Setup
I need to create an array of one dynamic wall.
-
Recycling Logic
- As soon as a wall reaches the left edge of the screen, it will wrap around to the right.
- The height/position will randomize each time it reappears to form a continuous level.
Comments 2
OMG this looks really cool! are you using any game libraries like pygame, or any graphical libraries?
@BeytiKebab Thanks! I write in C++ and build all the game logic myself from scratch. I only use the Adafruit_GFX library to render graphics on the screen.
Sign in to join the conversation.