Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 1.32 KB

README.md

File metadata and controls

73 lines (52 loc) · 1.32 KB

GoBoy

Go Report Card version

⚠️Currently, In Development⚠️

Game boy emulation with golang

Control Key

Key Action
ArrowUP Up
ArrowDown Down
ArrowLeft Left
ArrowRight Right
a OR q A
z OR w B
Enter Start
Space Select
R Change Game

Usage

for normal run

$ go run .

for debug run

$ go run . -d

Create your Game Boy in Go

package main

import (
    goboy "github.com/Let-sCodeSomething/goboy/gb"
)


func main() {
	gb := new(goboy.Goboy)
	// mode :
	//		"debug" = open window with debugging information
	// 		"normal" = open the simple game window
	err := gb.Init("you path of rom", "normal")
	
	if err != nil {
        panic(err)
    }	
	// start game
	go gb.Run()
	
	// for open window
	gb.WindowMode()
	// or for get the current frame
	// gb.APIMode()
}

Collaborators