Skip to content

Car Game

emutyworks edited this page May 15, 2024 · 187 revisions

This is a Game Boy game currently developing in Assembly language.

  • Related project
    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)
    GBCMapEditor
    Editor to Tile Maps for Game Boy Color.
    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.

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 →]
Learning Game Boy programming: Car Game

[Ver 0.46]

  • Changed the acceleration of rival cars.
  • Adjusted road surface drawing.
  • Changed road width.

Learning Game Boy programming: Car Game

Programming

rgbasm -H -o main.o main.asm
rgblink -t -o car_game03.gbc main.o
rgbfix -v -p 0 -C car_game03.gbc

Archive

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

Learning Game Boy programming: Car Game

Programming

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

Learning Game Boy programming: Car Game

Programming

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/

Learning Game Boy programming: Compress Map Editor for Car Game

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

Learning Game Boy programming: Car Game

Programming

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