Programming the Game Boy - Temple Run

Inkbox April 20, 2024
Video Thumbnail

About

Assembly required.

Video Description

I programmed Temple Run for the Game Boy and Game Boy Color systems in assembly using the Rednex Game Boy Development System. The Game Boy, first released in 1989, runs of a custom SoC known as the DMG CPU, with its core SM83 being based off the Intel 8080 and Zilog Z80. It has 8KB of WRAM, 8KB of VRAM, along with various I/O and a 160x144px LCD display. Through clever use of the hardware, the Game Boy can display 4 different shades of "gray" (filtered green through the LCD). Later in 1998, the Game Boy Color was released and featured a new SoC known as the CGB CPU. It featured a CPU capable of running at up to double the DMG's clock speed (at the expense of using more battery power), increased the system's built in WRAM to 32KB, and VRAM to 16KB (Also moving VRAM directly into the SoC package). Try Temple Run for the Game Boy: https://notin.tokyo/gameboy/temple Try Rock Paper Scissors for the Game Boy: https://notin.tokyo/gameboy/RPS.html Hardware Analysis: https://www.copetti.org/writings/consoles/game-boy/ The Game Boy is programmed using RGBASM, which is based on Z80 assembly syntax. Development resources are found below: Game Boy PAN Docs: https://gbdev.io/pandocs/ RGBDS GitHub: https://github.com/gbdev/rgbds Assembly Programming Guide: https://gbdev.io/gb-asm-tutorial/ RGBASM Instructions: https://rgbds.gbdev.io/docs/v0.4.2/gbz80.7 BGR555 color tool: https://orangeglo.github.io/BGR555/ Rock Paper Scissors in Japan: https://archive.org/details/cultureofjapanas0000unse The Culture of Japan as Seen through Its Leisure. pp. 325–326. Gameboy cartridge by Maxence Béranger from Noun Project Game Boy by IYIKON from Noun Project pattern by Yasser Megahed from Noun Project This video was sponsored by Brilliant

Game Boy Dev Kit Essentials

AI-recommended products based on this video

Loading...
Carrying Case for Nintendo Switch,Travel Carry Cover Hard Shell Storage for Leaf Crossing NS Console and Accessories,Slim Protective Portable Travel Pouch Bag with 10 Game Card Slots for Girls Boys

Carrying Case for Nintendo Switch,Travel Carry Cover Hard Shell Storage for Leaf Crossing NS Console and Accessories,Slim Protective Portable Travel Pouch Bag with 10 Game Card Slots for Girls Boys

(5,125)
$18.99
FREE delivery Sun, Jun 15 on your first order
Loading...
Game Traveler Zelda Nintendo Switch Case - Switch OLED Case for Switch OLED & Switch, Adjustable Viewing Stand & Bonus Game Cases, Deluxe Carry Handle, Licensed Nintendo Switch Game Case

Game Traveler Zelda Nintendo Switch Case - Switch OLED Case for Switch OLED & Switch, Adjustable Viewing Stand & Bonus Game Cases, Deluxe Carry Handle, Licensed Nintendo Switch Game Case

(495)
$27.96
FREE delivery Sun, Jun 15 on your first order
Loading...
Nintendo Switch Game Deluxe System Case New

Nintendo Switch Game Deluxe System Case New

(262)
$29.99
FREE delivery Sun, Jun 15 on your first order
Loading...
Switch Game Case for Nintendo Switch - Portable Cartridge with 12 Game & 12 Micro SD Card Slots, Switch Card Case- Hard Shell, Soft Silicone Lining, Magnetic Closure

Switch Game Case for Nintendo Switch - Portable Cartridge with 12 Game & 12 Micro SD Card Slots, Switch Card Case- Hard Shell, Soft Silicone Lining, Magnetic Closure

(20)
$12.99
FREE delivery Sun, Jun 15 on your first order
Loading...
KDD Switch Controller Charging Dock Station Compatible with Nintendo Switch & OLED Model Joycons, Switch Controller Charger Dock Station with Upgraded 8 Game Storage for Nintendo Switch Joycon & Games

KDD Switch Controller Charging Dock Station Compatible with Nintendo Switch & OLED Model Joycons, Switch Controller Charger Dock Station with Upgraded 8 Game Storage for Nintendo Switch Joycon & Games

(14,085)
$15.83
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
RTX 2060 Super 8GB Placa De Video Gaming Graphics Card GDDR6 256Bit 8Pin PCI Express 3.0x16 RTX 2060 Super 8gb Game PC

RTX 2060 Super 8GB Placa De Video Gaming Graphics Card GDDR6 256Bit 8Pin PCI Express 3.0x16 RTX 2060 Super 8gb Game PC

(0)
$570.27
FREE delivery Apr 2 - 24
Loading...
Apple iPad with A16 chip: 11-inch Liquid Retina Display, 128 GB, Wi-Fi 6, 12MP Front/12MP Back Camera, Touch ID, All-Day Battery Life — Silver

Apple iPad with A16 chip: 11-inch Liquid Retina Display, 128 GB, Wi-Fi 6, 12MP Front/12MP Back Camera, Touch ID, All-Day Battery Life — Silver

(513)
$429.00
FREE delivery Sun, Aug 24
2K+ bought in past month
Loading...
Apple iPad with A16 chip: 11-inch Liquid Retina Display, 128 GB, Wi-Fi 6, 12MP Front/12MP Back Camera, Touch ID, All-Day Battery Life — Blue

Apple iPad with A16 chip: 11-inch Liquid Retina Display, 128 GB, Wi-Fi 6, 12MP Front/12MP Back Camera, Touch ID, All-Day Battery Life — Blue

(586)
$429.00
FREE delivery Tue, Sep 9
2K+ bought in past month
Loading...
2 Pack Micro Memory Card 128 GB with Adapter, C10/U3/UHS-I/A1, TransFlash Card, TF Card for Camera, Smartphone, Tablet, Drone (Red 128GB *2)

2 Pack Micro Memory Card 128 GB with Adapter, C10/U3/UHS-I/A1, TransFlash Card, TF Card for Camera, Smartphone, Tablet, Drone (Red 128GB *2)

(1,022)
$28.49
FREE delivery Sun, Aug 10 on your first order
500+ bought in past month
Loading...
KOOTION 5-Pack 64 GB Micro SD Card Class 10 Micro-SDXC Memory Card UHS-I, High Speed Flash TF Card for Security Camera/Smartphone/Drone/Dash Cam/Tablet/PC, C10, U1, 64 GB 5pack

KOOTION 5-Pack 64 GB Micro SD Card Class 10 Micro-SDXC Memory Card UHS-I, High Speed Flash TF Card for Security Camera/Smartphone/Drone/Dash Cam/Tablet/PC, C10, U1, 64 GB 5pack

(6,435)
$22.87
FREE delivery Sun, Aug 10 on your first order
400+ bought in past month