TIER 1: FUNDAMENTALS & STRUCTURE
Phase 0 - BASIC Gateway
Over 16 lessons, you'll learn the fundamentals of C64 BASIC programming and build structured programs. From your first PRINT to creating text adventures with state machines, you'll develop real skills while making programs that actually do something. No prior experience required!
What You'll Learn This Tier
Tier 1 covers essential programming fundamentals and structured programming techniques. By the end of these 16 lessons, you'll understand:
- Display output with PRINT, cursor resets, and colour changes
- Control flow with FOR...NEXT loops and IF...THEN decisions
- Data storage in variables and arrays
- Randomness for dynamic gameplay
- Animation and SID sound effects
- Code organization with GOSUB subroutines
- Text parsing for command-driven games
- State machines for game phase management
- Error handling and robust input validation
Prerequisites: None! Assume zero prior programming experience. You'll need access to a Commodore 64 (real hardware or emulator like VICE).
Lessons
Talk to Me
PRINT your first words and discover loops, colour, and the READY prompt.
Timing Is Everything
Master `FOR...NEXT` loops to pace output and build rhythmic effects.
Decisions, Decisions
Use `IF...THEN` with numbers and strings to make programs react.
Counting on You
Track scores and lives with numeric and string variables.
Random Encounters
Seed and use `RND` to add surprise, loot, and branching outcomes.
Simple Animation
Clear, position, and delay text to animate characters on screen.
Sound Off
Trigger SID voice 1 for bleeps, bloops, and celebratory cues.
Mini-Game: Typing Turmoil
Race random letters, score bonuses, and finish the first tier with a game.
Arrays Are Born
Dimension arrays to hold maps, inventories, and large data sets.
Subroutines and Structure
Organise code with `GOSUB...RETURN` to eliminate duplication.
Parsing Commands
Split input with `LEFT$`, `RIGHT$`, and `MID$` to build verb-noun systems.
Nested Logic
Combine conditions and nested `IF` blocks to handle intricate game rules.
State Machines
Model game phases (title, play, game-over) as numbered states.
Error Handling
Guard against invalid input and array bounds to avoid crashes.
Data Structures
Pack related values into parallel arrays to manage complex systems.
Mini-Game: Room Explorer
Build a text adventure framework with rooms, objects, and narrative.
Ready to Start?
Turn on your C64 (or boot your emulator), wait for the "READY." prompt, and let's write your first line of code!
Start Lesson 1: Talk to Me