One-Line Bouncing Ball: Commodore 64 BASIC @8_Bit
One-Line Bouncing Ball: Commodore 64 BASIC  @8_Bit
Uploaded May 2023 | Updated November 2026, 1 week ago
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: youtube.com/@JosipRetroBits

To support 8-Bit Show And Tell:
Become a patron: patreon.com/8BitShowAndTell
One-time donation: paypal.me/8BitShowAndTell
2nd channel: 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!
One-Line Bouncing Ball: Commodore 64 BASICKICKMAN C64 Mysteries: Authorship, Versions, Bugs & FixRobotron: 2084 One-Bit Fix and Many Other ThoughtsProgramming Pitfall Harry C64 Booklet - BASIC & Machine Language Code AnalysisUsing Commodore 64 BASIC Command Line Parameter to Change Border Colour #8bit #c64 #shorts8-Bit Era Electronic Arts Logo Easter Egg Hunt 1983-1992: Commodore 64, Amiga, and moreThe VIC-10 & VIC-30: Commodore UKs Cancelled ComputersA-Z Of Commodore 64 Hidden Gems - The Numbers - Unofficial!Simple Commodore 64 Disk Protection: Copy that Floppy, Remove Anti-Piracy MeasuresAtari 64: Commodore 64 BASIC & KERNAL Running On Atari 1200XLSize Optimizing Tricks in 10 PRINT Orthogonal for Commodore 64Examining the Commodore 64 Command Buffer With Machine Language Monitor #8bit #c64 #shorts
8-Bit Show And Tell |

One-Line Bouncing Ball: Commodore 64 BASIC

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER