Results 1 to 3 of 3

Thread: Bouncy Bubbles

  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,163
    Rep Power
    738

    Lightbulb Bouncy Bubbles

    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
    Attached Files Attached Files
    Last edited by Petr Schreiber; 10-02-2026 at 19:28.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    58
    Posts
    8,890
    Rep Power
    10
    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.
    Attached Images Attached Images
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,163
    Rep Power
    738
    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
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. Between the Bubbles - a game concept
    By Petr Schreiber in forum TBGL Scripts and Projects
    Replies: 45
    Last Post: 05-03-2020, 20:36
  2. Bubbles-Particle-Infection
    By peter in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 12
    Last Post: 12-06-2013, 12:41
  3. Code Bubbles: what an IDE !
    By ErosOlmi in forum Software discussion
    Replies: 3
    Last Post: 08-04-2010, 12:57

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •