The Commodore 64

From Maze

(Difference between revisions)
Jump to: navigation, search
(→Scrolling)
(→)
Line 6:Line 6:
40 GOTO 20
40 GOTO 20
−
After you carefully type it[2], you input "RUN". The screen erupts into motion as lines flow onto the screen. As each row fills with symbols, it starts drawing on the next line. When the screen is full, the entire maze moves up and leaves space at the bottom for new characters to fill. The result is a dynamic maze. The three-line program introduced here is nearly equivalent to the one-line namesake of this book with the only difference being that the condensed version doesn't clear the screen as in the first line of the expanded code.
+
Like many microcomputers of its day, the C64 came with a BASIC interpreter built in so that once you could begin writing programs right out of the box. After you carefully type in the program from the manual[2], you input "RUN". The screen erupts into motion as lines flow onto the screen. As each row fills with symbols, it starts drawing on the next line. When the screen is full, the entire maze moves up and leaves space at the bottom for new characters to fill. The result is a dynamic maze. The three-line program introduced here is nearly equivalent to the one-line namesake of this book with the only difference being that the condensed version doesn't clear the screen as in the first line of the expanded code.
[tk-Photos of the program running on an actual C64, since we have screenshots of it all over the place before now]
[tk-Photos of the program running on an actual C64, since we have screenshots of it all over the place before now]

Revision as of 16:16, 18 May 2011

View this revision of The Commodore 64.

Personal tools