Game boy emulation with golang
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 |
for normal run
$ go run .
for debug run
$ go run . -d
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()
}