One-Line Bouncing Ball: Commodore 64 BASIC

Published: 21 May 2023
on channel: 8-Bit Show And Tell
64,494
2.1k

Besides the famous 10 PRINT, one of my favourite type-in programs from the Commodore 64 User's Guide is "More Bouncing Balls" in which a ball bounces off the borders of the screen. Inspired by Josip Retro Bits' 2-line version of this program, I attempt to squeeze it down to one line, with some other diversions along the way.

Check out Josip's channel for more C64 programming:    / @josipretrobits  

To support 8-Bit Show And Tell:
Become a patron:   / 8bitshowandtell  
One-time donation: https://paypal.me/8BitShowAndTell
2nd channel:    / @8-bitshowandtell247  

Index:
0:00 The Commodore 64 User's Guide
2:52 Adding a clear screen to 10 PRINT
7:57 More Bouncing Balls
14:32 Josip Retro Bits' 2-line version
22:23 A different approach: what's it doing?
26:41 Implementing a simple oscillator
32:25 POKEing the ball back in!
35:44 The final one-line version
38:00 Potential improvements?
40:25 Thanks to Josip, my patrons, and you!


Watch video One-Line Bouncing Ball: Commodore 64 BASIC online, duration hours minute second in high quality that is uploaded to the channel 8-Bit Show And Tell 21 May 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 64,494 times and liked it 2.1 thousand visitors.