Open main menu

CDOT Wiki β

Changes

6502 Assembly Language Math Lab

9 bytes added, 04:40, 20 September 2021
Option 5: Line draw
Challenge: replay the drawing of the image, i.e., when a key is pressed, the screen is cleared and the pixels are redrawn to the screen in the order in which they were originally added by the user, with the kaleidoscope effect, as an animation.
<!-- ==== Option 5: Line draw ====
{{Admon/tip|Division|This option may be harder than the others and typically requires division arithmetic!}}
# Create code that has two pixel-sized cursors, moved by two separate sets of keys (e.g., cursor keys for one cursor, and a/w/s/z for the other cursor).
# Draw a line between the cursors which moves whenever one of the cursors is moved.
Challenge: extend the code to allow a line to be dropped onto the screen, i.e., it will be left behind while the cursors are moved to new locations.
-->
== Write-Up ==