This commit is contained in:
Michael Smith
2025-08-07 16:03:52 +02:00
parent 5c52038776
commit 4c224a51ec
6 changed files with 501 additions and 119 deletions

17
gb/console.go Normal file
View File

@@ -0,0 +1,17 @@
package gb
type Console struct {
Cartridge *Cartridge
}
func NewConsole(path string) (*Console, error) {
cartridge := InsertCartridge(path)
console := Console{cartridge}
return &console, nil
}
func (console *Console) Update(dt uint64) {
console.StepSeconds(dt)
}