func main() { opts := engo.RunOptions{ HeadlessMode: true, StandardInputs: true, } engo.Run(opts, &PongGame{}) }
func main() { opts := engo.RunOptions{ Title: "Scale Demo", Width: 1024, Height: 640, } engo.Run(opts, &DefaultScene{}) }
func main() { opts := engo.RunOptions{ Title: "IncrementalCamera Demo", Width: worldWidth, Height: worldHeight, } engo.Run(opts, &DefaultScene{}) }
func main() { opts := engo.RunOptions{ Title: "EdgeScroller Demo", Width: worldWidth, Height: worldHeight, } engo.Run(opts, &DefaultScene{}) }
func main() { opts := engo.RunOptions{ Title: "MouseRotation Demo", Width: worldWidth, Height: worldHeight, } engo.Run(opts, &DefaultScene{}) }
func main() { opts := engo.RunOptions{ Title: "Pong Demo", Width: 800, Height: 800, ScaleOnResize: true, } engo.Run(opts, &PongGame{}) }
func main() { opts := engo.RunOptions{ Title: "HUD Demo", Width: worldWidth, Height: worldHeight, StandardInputs: true, } engo.Run(opts, &DefaultScene{}) }
func main() { opts := engo.RunOptions{ Title: "Exit Demo", Width: 1024, Height: 640, OverrideCloseAction: true, } engo.Run(opts, &DefaultScene{}) }
func main() { opts := engo.RunOptions{ Title: "Falling Demo", Width: 1024, Height: 640, StandardInputs: true, } engo.Run(opts, &DefaultScene{}) }
func main() { opts := engo.RunOptions{ Title: "Shapes Demo", Width: worldWidth, Height: worldHeight, StandardInputs: true, MSAA: 4, // This one is not mandatory, but makes the shapes look so much better when rotating the camera } engo.Run(opts, &DefaultScene{}) }
func main() { iconScene = &IconScene{} rockScene = &RockScene{} // Register other Scenes for later use, this can be done from anywhere, as long as it // happens before calling engo.SetSceneByName engo.RegisterScene(rockScene) opts := engo.RunOptions{ Title: "Scenes Demo", Width: 1024, Height: 640, } engo.Run(opts, iconScene) }