All Projects → pokemium → gbdk-go

pokemium / gbdk-go

Licence: MIT License
Experimental Go binding for GBDK(GameBoy Development Kit). You can develop GameBoy software using Go!

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to gbdk-go

doctorhow
A sample game for Gameboy created with gbdk, gbdk-lib-extension and GB Lemon tracker LP1.297a.
Stars: ✭ 25 (+31.58%)
Mutual labels:  gameboy, gbdk
gb-starter-kit
A customizable and ready-to-compile bundle for Game Boy RGBDS projects. Contains your bread and butter, guaranteed 100% kitchen sink-free.
Stars: ✭ 24 (+26.32%)
Mutual labels:  gameboy, gbdev
tobutobugirl-dx
An arcade platformer homebrew game for the Game Boy, Game Boy Color and Super Game Boy
Stars: ✭ 58 (+205.26%)
Mutual labels:  gameboy, gbdk
gbjam8
A Game Boy demake of The Binding of Isaac made for GBJAM8.
Stars: ✭ 18 (-5.26%)
Mutual labels:  gameboy, gbdk
Awesome Gbdev
Contribute
Stars: ✭ 3,016 (+15773.68%)
Mutual labels:  gameboy, gbdk
vtGBte
A simple GameBoy tile editor written in C using ncurses
Stars: ✭ 25 (+31.58%)
Mutual labels:  gameboy, gbdev
GBsnake
Snake game for Nintendo Gameboy written in C
Stars: ✭ 26 (+36.84%)
Mutual labels:  gameboy, gbdk
goboy
Playing GameBoy Emulation in GoLang (ported from https://github.com/racerxdl/GameBoyEmulator)
Stars: ✭ 37 (+94.74%)
Mutual labels:  gameboy
SkyEmu
Game Boy, Game Boy Color, and Game Boy Advanced Emulator
Stars: ✭ 59 (+210.53%)
Mutual labels:  gameboy
Goodboy
A pure OCaml Gameboy emulator
Stars: ✭ 75 (+294.74%)
Mutual labels:  gameboy
awesome-emu-resources
A curated list of emulator development resources
Stars: ✭ 26 (+36.84%)
Mutual labels:  gameboy
roboto-demo
Game Boy demo for Skrolli Party 2017.
Stars: ✭ 24 (+26.32%)
Mutual labels:  gameboy
Gameboy-Color-Cartridge
Board layout for an eeprom powered GB cartridge
Stars: ✭ 58 (+205.26%)
Mutual labels:  gameboy
Hades
🔥 A Nintendo Game Boy Advance emulator
Stars: ✭ 44 (+131.58%)
Mutual labels:  gameboy
dashboy
Gameboy Emulator implemented by pure Dart
Stars: ✭ 130 (+584.21%)
Mutual labels:  gameboy
gameboyGO
Gameboy emulator in go
Stars: ✭ 24 (+26.32%)
Mutual labels:  gameboy
gimp-tilemap-gb
Tilemap GB - Console App - AND - GIMP plugin for importing & exporting Game Boy game tilemaps and tilesets (as bitmap images or .GBM/.GBR files. Related tools: GBTD, GBMB, GBDK, Zal0-ZGB)
Stars: ✭ 42 (+121.05%)
Mutual labels:  gameboy
NeoGB-Printer
An open-source and standalone Gameboy Printer emulator 100% compatible with all officially released games (110 in total) that support the accessory. Just print and save the images as BMP
Stars: ✭ 61 (+221.05%)
Mutual labels:  gameboy
CrystalBoy
C# GameBoy Emulator
Stars: ✭ 93 (+389.47%)
Mutual labels:  gameboy
worldwide
A toy GameBoy Color emulator written in golang.
Stars: ✭ 563 (+2863.16%)
Mutual labels:  gameboy

gbdk-go

gbdk-go is a Go binding for GBDK. You can do GameBoy software development with Go.

Architecture

gbdk-go compiles Go source code and outputs C code.

The output C code is built into GB ROM by GBDK.

package main

import "github.com/Akatsuki-py/gbdk-go/api/stdio"

func main() {
	stdio.Printf("Hello World!")
	stdio.Printf("\n\nPress Start")
}

The above Go code is compiled into the following C code.

#include <stdio.h>
void main() {
    printf("Hello World!");
    printf("\n\nPress Start");
}

Install

You need to build binary from source.

Requirements:

  • Go 1.14
  • Make
$ git clone https://github.com/Akatsuki-py/gbdk-go.git
$ cd ./gbdk-go
$ make

Usage

Requirements:

  • gbdk-go/gbdkgo
  • gbdk-go/go2c
  • gbdk-go/gbdk2020

They must be in the same directory.

If you are doing the above Install step, there should be no problem.

$ gbdkgo [options] dir

Example

$ gbdkgo example/simple_shmup

API

gbdk-go API

The API is basically a GBDK binding.

Some are not yet implemented.

Project rules

  • ./main.go main file in project. ./main.c in gbdk.
  • ./**.go sub file in project. ./**.c in gbdk.
  • ./asset/**.go asset file in project. these file is converted into asset.h

You must create a Go directory project according to above format.

The directory structure also needs to be specific.

Linter

Although gbdk-go allows GB development with Go, there are some grammars such as defer and goroutine that cannot be used.

So I'm going to write a linter for gbdk-go.

Performance warning

gbdk-go outputs GB ROM with C in between.

When using C language, the performance is greatly inferior compared to the raw assembly.

You should read to_c_or_not_to_c.md.

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].