Car Game - emutyworks/Learning-GB-Programming GitHub Wiki
I'm planning to develop a new car game for Game Boy in Assembly! :D
| Demo version ROM | ||
|---|---|---|
| car_game04_v08-test01.gbc | Smooth left and right movement. | |
| car_game04_v07.gbc | Smooth curve drawing test. | Source |
Programming
- Download this file.
https://github.com/emutyworks/Learning-GB-Programming/tree/main/car_game04
./a.sh main car_game04
Related project
GBCMapEditor
Editor to Tile Maps for Game Boy Color.
SoundEditor
This is a tool to check the sound parameters to set in assembly code.
SoundDriver
Sound driver for Game Boy developed in Assembly language. (Generate sound data from DefleMask .DMF file)
RunLengthEncodeDecode
Run-length encode binary data with php and decode it with assembly code.
GBAddClockCyclesTool
This tool to add clock cycles of CPU (LR35902) to Game Boy assembly code.
Archive
Changes from rgbds v0.6.1 to v0.9.1
The code on this page assumed the use of rgbds v0.6.1. When using rgbds v0.9.1, please modify as follows.
*Please use this older version when assembling the source for this page. -> hardware.inc
- Remove "-H" from options.
rgbasm -H -o main.o main.asm
-> rgbasm -o main.o main.asm
- Add DEF to the EQU declaration.
xxxxx EQU x
-> DEF xxxxx EQU x
| Demo version ROM | ||
|---|---|---|
| car_game_v047-test01.gbc | Adjusted road surface drawing. | YouTube |
| car_game_v046.gbc | YouTube / Source |
[← Ver 0.46 | Ver 0.47-test01 →]

[Ver 0.46]
- Changed the acceleration of rival cars.
- Adjusted road surface drawing.
- Changed road width.
Programming
- Download this file.
hardware.inc (GitHub)
https://github.com/emutyworks/Learning-GB-Programming/tree/main/car_game03
rgbasm -o main.o main.asm
rgblink -t -o car_game03.gbc main.o
rgbfix -v -p 0 -C car_game03.gbc
| Demo version ROM | Notes | |
|---|---|---|
| car_game_v031.gbc | Sprite and BG priority test 2! :D | |
| car_game_v029.gbc | Collision detection test 2. | YouTube |
| car_game_v028.gbc | Collision detection test. | YouTube |
Programming
- Download this file.
hardware.inc (GitHub)
https://github.com/emutyworks/Learning-GB-Programming/tree/main/car_game02
rgbasm -o main.o main.asm
rgblink -o car_game02.gbc main.o
rgbfix -v -p 0 -C car_game02.gbc
| Demo version ROM | Notes | |
|---|---|---|
| car_game_v020.gbc | Collision detection test3, improved drawing process! :D | |
| car_game_v019.gbc | Collision detection test2, Add enemy car. | YouTube |
Programming
- Download this file.
hardware.inc (GitHub)
https://github.com/emutyworks/Learning-GB-Programming/tree/main/car_game01
rgbasm -o main.o main.asm
rgblink -o car_game01.gbc main.o
rgbfix -v -p 0 -C car_game01.gbc
Compress Map Editor for Car Game
[Change log]
- Supported editing 32 tiles.
- Supported copy Map Part.
- Supported reverse Map Table order.
- Supported editing for 4 maps (32x2x2).
Demo:
https://emutyworks.github.io/Learning-GB-Programming/map_editor/
Compressed road data: Total 10 bytes per row *Compressed road data into quarters! :D
| Demo version ROM | Notes | |
|---|---|---|
| car_game_v011.gbc | Collision detection processing test! :D | |
| car_game_v010.gbc | Updated Sound Driver, Scroll synchronization test for multiple sprites. | YouTube |
Programming
- Download this file.
hardware.inc (GitHub)
https://github.com/emutyworks/Learning-GB-Programming/tree/main/car_game
rgbasm -o main.o main.asm
rgblink -o car_game.gbc main.o
rgbfix -v -p 0 -C car_game.gbc
Collision detection processing
Calculate Collision detection data address from the sprite position.
collision.xlsx






