View Full Version : Bouncy Bubbles
Petr Schreiber
10-02-2026, 19:26
Hi,
here is a little work-in-progress experiment. This time with very basic physics and collisions.
Right now, the game plays itself, or rather, it runs endlessly.
You cannot interact with the environment yet, but it's fun to watch the interactions.
Petr
ErosOlmi
11-02-2026, 19:13
Thanks a lot Petr.
As usual great code super well organized inn different files easy to be maintained also showing thinBasic pseudo TYPE/END TYPE OOP possibilities
Program starts putting some fixed obstacles and a top falling ball will bounce when obstacle is hit.
Plus ball is the source of light and obstacles are illuminated by ball moves.
Running for almost 3 minutes: no high cpu, high frames rate, no memory left allocated.
Petr Schreiber
11-02-2026, 19:26
Thank you very much for the test!
While the rendering framerate is currently unlocked, the physics simulation runs at a fixed time step to ensure deterministic behavior.
I stress-tested the code for about an hour yesterday to verify stability.
Regarding the mechanics - since bubbles expand slightly upon impact, the ball occasionally got stuck between two enlarged bubbles in a kind of valley. To overcome this, I added logic where bubbles pop after reaching a certain size threshold.
I have some more ideas, will update the post once I have a newer version.
Petr