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: https://www.youtube.com/@JosipRetroBits
To support 8-Bit Show And Tell:
Become a patron: https://patreon.com/8BitShowAndTell
One-time donation: https://paypal.me/8BitShowAndTell
2nd channel: https://youtube.com/channel/UCAgWzEh5c8391eJnELDy9OA
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!