modulepackage
0.0.0-20221016211005-9480156f6350
Repository: https://github.com/let-scodesomething/goboy.git
Documentation: pkg.go.dev
# README
GoBoy
⚠️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()
}