All Projects → flozz → Gameboy Examples

flozz / Gameboy Examples

Licence: wtfpl
Example programs that run on the Nintendo GameBoy

Programming Languages

c
50402 projects - #5 most used programming language

Labels

Projects that are alternatives of or similar to Gameboy Examples

Pokeyellow
Disassembly of Pokemon Yellow
Stars: ✭ 383 (+1026.47%)
Mutual labels:  gameboy
Cartreader
A shield for the Arduino Mega that can back up video game cartridges.
Stars: ✭ 590 (+1635.29%)
Mutual labels:  gameboy
Evoland.gb
A fan-made demake of Evoland on GameBoy
Stars: ✭ 24 (-29.41%)
Mutual labels:  gameboy
Gameboy.live
🕹️ A basic gameboy emulator with terminal "Cloud Gaming" support
Stars: ✭ 4,263 (+12438.24%)
Mutual labels:  gameboy
Gearboy
Game Boy / Gameboy Color emulator for iOS, macOS, Raspberry Pi, Windows, Linux and RetroArch.
Stars: ✭ 528 (+1452.94%)
Mutual labels:  gameboy
Rgbds
Rednex Game Boy Development System - An assembly toolchain for the Nintendo Game Boy & Game Boy Color
Stars: ✭ 772 (+2170.59%)
Mutual labels:  gameboy
Worldwide
GameBoy Color emulator written in golang.
Stars: ✭ 300 (+782.35%)
Mutual labels:  gameboy
Coffee Gb
Gameboy emulator in Java 8.
Stars: ✭ 953 (+2702.94%)
Mutual labels:  gameboy
Mooneye Gb
A Game Boy research project and emulator written in Rust
Stars: ✭ 557 (+1538.24%)
Mutual labels:  gameboy
Gameboy
🎮 Game Boy emulator written in Rust
Stars: ✭ 17 (-50%)
Mutual labels:  gameboy
Pokemon Font
GAME BOY font from Pokémon R/G/B/Y/G/S/C, Unicode extended.
Stars: ✭ 437 (+1185.29%)
Mutual labels:  gameboy
Provenance
iOS & tvOS multi-emulator frontend, supporting various Atari, Bandai, NEC, Nintendo, Sega, SNK and Sony console systems… Get Started: https://wiki.provenance-emu.com |
Stars: ✭ 4,732 (+13817.65%)
Mutual labels:  gameboy
Giovanni
A Gameboy Emulator for the Apple Watch
Stars: ✭ 823 (+2320.59%)
Mutual labels:  gameboy
Coreboy
A GameBoy Emulator, in C#
Stars: ✭ 397 (+1067.65%)
Mutual labels:  gameboy
Rustboy
A game boy emulator in rust
Stars: ✭ 8 (-76.47%)
Mutual labels:  gameboy
Zgb
Game Boy / Color engine with lots of features
Stars: ✭ 375 (+1002.94%)
Mutual labels:  gameboy
Sameboy
Game Boy and Game Boy Color emulator written in C
Stars: ✭ 732 (+2052.94%)
Mutual labels:  gameboy
Wasmboy
Game Boy / Game Boy Color Emulator Library, 🎮written for WebAssembly using AssemblyScript. 🚀Demos built with Preact and Svelte. ⚛️
Stars: ✭ 963 (+2732.35%)
Mutual labels:  gameboy
Vba M Nx
WIP full featured port of VBA-M for Nintendo Switch
Stars: ✭ 11 (-67.65%)
Mutual labels:  gameboy
Gameboy
Full featured Cross-platform GameBoy emulator by Rust. Forever boys!.
Stars: ✭ 893 (+2526.47%)
Mutual labels:  gameboy

GameBoy Examples

This repository contains example programs for the Nintendo GameBoy video game console. The examples are related to articles on my blog (in French).

Examples Index

Screenshot Name Description
01 - Hello World Simple program that prints "Hello World" on the screen
02 - Gamepad Simple program shows how to use gamepad in a GameBoy program
03 - Tic Tac Toe A complete example project to show how to make a simple game for the GameBoy
04 - Graphics 1 Simple example to show how to draw tiles on the GameBoy
05 - Graphics 2 Convert an image using img2gb and display it
06 - Graphics 3 - background Background layer scrolling example
07 - Graphics 4 - sprites A complete sprite example with an animated player
08 - Graphics 5 - window Window layer example
09 - Graphics 6 - palettes Playing with color palettes
10 - Breakout Simple breakout game
11 - Custom Text Handle and display text

Compiling Examples

Linux

First you need to install some dependencies: SDCC (with its libraries), GNU Make, git. This can be installed with the following command on Debian / Ubuntu:

sudo apt install build-essential sdcc sdcc-libraries git

Then clone this repository and get submodules:

git clone https://github.com/flozz/gameboy-examples.git
cd gameboy-examples
git submodule init
git submodule update

Then you have to build the gbdk-n library (this needs to be done only once):

cd gbdk-n
make
cd ..

Finally, you can build examples with the make command from the directory of the example. For example, if you want to build the "Hello World" example, you will have to run the following commands:

cd 01-hello-world/
make

You can now run the generated .gb file with your favorite emulator.

If you want to cleanup the folder from all generated files (*.rel, *.lst, *.gb,...), you can use the following command:

make clean

Windows

To build the examples on Windows, you first have to download and install the latest SDCC version.

Then clone this repository and get submodules:

git clone https://github.com/flozz/gameboy-examples.git
cd gameboy-examples
git submodule init
git submodule update

Then you have to build the gbdk-n library (this needs to be done only once).

If you are using CMD.exe:

cd gbdk-n
make
cd ..

If you are using Git Bash:

cd gbdk-n
./Make.bat
cd ..

Finally go to an example folder:

cd 01-hello-world

And build it using the Make.bat file.

If you are using CMD.exe:

make

If you are using Git Bash:

./Make.bat

You can now run the generated .gb file with your favorite emulator.

If you want to cleanup the folder from all generated files (*.rel, *.lst, *.gb,...), you can use the following command:

If you are using CMD.exe:

make clean

If you are using Git Bash:

./Make.bat clean

Building assets

Some of the examples have assets (tilesets, tilemaps, sprites,...). If you changes the images, you will have to rebuild assets.

Linux

You will first need to install img2gb. This can be done with the following command:

sudo pip install img2gb

Then, just run the following command (from the example directory):

make assets

Windows

You first have to get the Windows version of img2gb :

Finally, open a terminal in the project's folder and use the following command to rebuild the assets :

make assets

The previous command will work if you are using CMD.exe, but if you are using Git Bash, type this one instead :

./Make.bat assets

License

The examples in this repository are licensed under WTFPL unless otherwise stated:

        DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004

 Copyright (C) 2004 Sam Hocevar <[email protected]>

 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as long
 as the name is changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. You just DO WHAT THE FUCK YOU WANT TO.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].