Documentation
¶
Overview ¶
Package testcore is a tiny game written in Go: a square you move around a coloured field, a tone while a button is held, and a counter kept in save memory. It needs no third-party core or ROM, so the whole path from library to browser can be tested on any machine, including CI.
Index ¶
Constants ¶
View Source
const ( Width = 256 Height = 224 Rate = 44100 FPS = 60 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core implements engine.Engine.
func (*Core) LoadGame ¶
LoadGame reads the "ROM". Any non-empty file works: its checksum picks the colours, so two test games can be told apart.
func (*Core) SystemInfo ¶
func (c *Core) SystemInfo() engine.SystemInfo
Click to show internal directories.
Click to hide internal directories.