THE OFFICIAL NES BASIC BOOK / AVAILABLE ON AMAZON (opens in a new tab)
NES BASICTHE COMPLETE PROGRAMMING GUIDE

A BOOK BY NATHAN D. BAUGHMAN

NES BASICCOMPLETE
PROGRAMMING GUIDE

BRING YOUR RETRO
PROGRAMMING IDEAS TO LIFE

Start with a few lines of BASIC. Discover graphics, sprites, controllers and sound. Then build a complete falling-block game, one idea at a time.

Your curiosity. A classic machine. A place to begin.

READ. CREATE. REPEAT.01 / THE GUIDE
Official NES BASIC: The Complete Programming Guide cover by Nathan D. Baughman
FROM YOUR FIRST PRINT TO BLOCKDROP

29CHAPTERS TO EXPLORE

BASICCODE YOU CAN FOLLOW

BLOCKDROPBUILD IT STEP BY STEP

PRESS START

A small language.
A whole world
of possibilities.

For the curious beginner.
The returning BASIC fan.
The person who wants to know how it works.

There’s something special about making a machine do something you imagined.

The NES BASIC Complete Programming Guide takes that feeling seriously. Learn NDB Software’s own BASIC language, explore the Nintendo Entertainment System’s creative side, and put your knowledge to work in complete programs.

Begin with messages on the screen. Build up to sprites, game loops and collision detection. Then follow the Blockdrop project from an empty playfield to a complete game.

Nathan D. BaughmanAuthor · NDB Software

Learn the pieces.
Build something yours.

Real language features. Practical programs.
Each idea gives you the next piece.

01 / THE FOUNDATIONS

Think in BASIC.

Work with variables, strings, input, decisions, loops and subroutines. Learn how numbered statements become a program.

CHAPTERS 3–6
02 / PIXELS & PATTERNS

Make your mark.

Explore the graphics canvas, draw with pixels and lines, and understand the relationship between patterns and tiles.

CHAPTERS 7–8
03 / ART IN MOTION

Bring sprites to life.

Create custom sprite artwork. Position it, move it and explore animation on the NES.

CHAPTERS 9–10
04 / INPUT & AUDIO

Make it interactive.

Read keyboard and controller input. Add sound and music, and learn how timing connects your program to the player.

CHAPTERS 11–12
05 / THE GAME’S LOGIC

Give your game a brain.

Build game loops, check collisions, organize board data with arrays, and learn to debug and measure performance.

CHAPTERS 13–17
06 / PUT IT ALL TOGETHER

Build Blockdrop.

Turn the lessons into a complete falling-block puzzle game, from planning and piece geometry to scoring and game states.

MEET YOUR NEXT PROJECT
CODE IT. UNDERSTAND IT. MAKE IT YOURS.

From BASIC code
to playable games.

A falling piece is just the beginning.

Follow Blockdrop across ten chapters. Create the playfield and seven piece shapes. Add movement, rotation, collision and locking. Clear rows, keep score, and bring the game together with sound, pause and game-over logic.

  1. 01 Build the board and pieces
  2. 02 Connect movement and collision
  3. 03 Add scoring, sound and game states

Blockdrop is a learning project in interpreted BASIC. The book explains its slower pace, timing limits and the path toward faster NES programs.

ACTUAL NES BASIC OUTPUT 256 × 240
Actual Blockdrop game running in NES BASIC, with a falling piece, locked blocks, score, lines and level

The complete project: a falling piece, board state and score display.

Don’t just read it.
Run it.

Open the free browser playground and try NES BASIC for yourself. It runs the actual NES BASIC ROM, right in your browser. No account required.

Prefer an app? NES BASIC is also available within 8-Bit Impostor . Visit the product site for app details.

EXPLORE THE NES BASIC WEBSITE
CH03-HELLO.BASFROM THE BOOK
10 PRINT "HELLO FROM NES BASIC"
20 PRINT "I WROTE THIS PROGRAM"
30 END
YOUR FIRST LITTLE MOMENT OF MAGIC.

HELLO FROM NES BASIC
I WROTE THIS PROGRAM
READY.

REAL CODE. REAL BASIC.
PLANNED PRODUCT / FUTURE HARDWARE

NES BASIC is heading
to real NES hardware.

A standalone physical NES BASIC cartridge with onboard program storage is planned. Follow the main website for development updates and final specifications.

FOLLOW THE CARTRIDGE PROJECT

No release date, price or preorder has been announced.

NES BASIC: The Complete Programming Guide by Nathan D. Baughman

YOUR NEXT CHAPTER IS WAITING.

Ready to start
programming?

Meet the language. Explore the machine.
Build something you can call your own.

GET THE BOOK ON AMAZON (opens in a new tab)