Esempio n. 1
0
func main() {
	var winSpec nimble.WindowSpec = nil
	if devConfig {
		for _, fun := range profileStart() {
			defer fun()
		}
		if benchmarking {
			winSpec = &windowSpec{1920, 1080, "benchmark"}
		} else {
			winSpec = &windowSpec{1024, 600, "debug"}
		}
	}
	initMenuItem()
	rand.Seed(time.Now().UnixNano())
	nimble.AddRenderClient(context{})
	nimble.AddMouseObserver(context{})
	nimble.AddKeyObserver(context{})
	nimble.Run(winSpec)
}
// Requires visual inspection
func TestTeletype(t *testing.T) {
	Init("../Characters.png")
	nimble.AddRenderClient(&context{})
	nimble.AddKeyObserver(&context{})
	nimble.Run(windowSpec{1024, 600, "teletype"})
}