C64 · BASIC V2 · gateway
Commodore 64 BASIC
Learn programming fundamentals before assembly
CPU
MOS 6510
RAM
64 KB
Language
BASIC V2
Games
Build complete games while you learn the fundamentals — variables, loops, and the C64's screen and memory. Start with Game 1 and work through in order.
02
First Programs
8 games 1
Skyline
Build a city by writing straight to the screen
POKE to screen memoryThe separate colour RAMScreen codes
2
Oracle
Ask a question, get an answer from the machine
RNDINPUTIF/THEN
3
Reflex
How fast can you press a key?
The jiffy clock (TI)GET for an instant keypressScreen flash (POKE 53281)
4
Tally
Roll two dice a thousand times and watch a bell curve appear
Numeric arrays as countersThe roll value as an indexA POKEd bar chart
5
Bleeper
Make the SID chip play a tune you must repeat
SID registers as a voiceA sequence stored in an arrayGET to read and check the echo
6
Safe Cracker
Crack the code by narrowing it down
The loop-with-a-goalHigher/lower deductionColour feedback and a guess limit
7
Rover
Drive a rover around the screen with a joystick
Joystick (PEEK 56320)The continuous game loopLook-ahead collision
8
Dropzone
Fight gravity to land safely
Velocity, gravity and thrustThe continuous physics loopWin, lose, and a fuel squeeze