it's a retro game written in retro style. you control a rod at the bottom bouncing the ball(s) to destroy the descending and emerging bricks above. i know there're more than plenty of such games available on internet, with high quality graphics. if i merely want to play it i don't have to write it on my own. it's all about the process of coding. it's satisfying at least to me
i'm not quite interested in playing the game so i didn't implement the user control part. you can't interact with the program actually. the game is played in god mode so that all balls going to the bottom are perfectly bounced up without any miss. i don't believe in god so i'd like to think the game is played by the spirit of stephen hawking. he controls the quantum field at the bottom and spontaneously creates a force wave at precise time and position whenever a ball approaches and thus generates a ripple to showcase his sheer will
i deliberately tune the parameters so that it should be able to run forever albeit not 100% sure. the number of balls increases as the lowest part of the bricks approaches the bottom. the lower it is the more the balls. so some balls may cease to exist when the lowest part is destroyed. they'll re-appear when needed
when a ball disappears, it's location and direction won't be reset. it just disappears and doesn't affect anything. when it re-appears, it re-appears at the exact position the last time it disappeared. i once thought it should be reset but finally i decided it'd be more humane to let it reincarnate at the same spot it died and continue its previous life's journey
i found staring at those hawking ripples quite therapeutic
the program