Skip to content

Let-sCodeSomething/goboy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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