Open main menu

CDOT Wiki β

Changes

6502 Assembly Language Math Lab

86 bytes added, 15:38, 22 September 2021
Option I: Bouncing Graphic
# Encode that graphic in bytes using DCB (declare constant byte) instructions.
# Write code to make the graphic bounce around the screen, reflecting off the edges when it hits. Note: for simplicity, it is OK if the object always bounces at 45-degree angles.
# Make the speed keyboard-adjustable (faster/slower) and perturb the object's path once in a while(add a glitch - adjust the angle or nudge the obect over a pixel at random intervals).
Challenge: randomize the starting position, and make the object bounce at angles other than 45 degrees.