Pong Wars on the Commodore 64
2 hours ago
- #Commodore 64
- #Assembly Programming
- #Retro Computing
- The post details the author's project to recreate Pong Wars, a mesmerizing animation of two balls battling to flip colors on a 20x20 grid, on a Commodore 64 using 6502 assembly language.
- Key implementation steps include setting up the screen and color RAM, using sprites for the balls, managing movement with fixed-point math and sine lookup tables, implementing edge and block collision detection with randomized bounce angles, and rendering the blockfield and scores.
- The game loop utilizes raster interrupts to run within the vertical blanking period, though performance is limited by copying the blockfield to color RAM each frame; potential optimizations are suggested, such as direct color RAM access and incremental score updates.