Example #1
0
func main() {
	opts := engo.RunOptions{
		HeadlessMode:   true,
		StandardInputs: true,
	}

	engo.Run(opts, &PongGame{})
}
Example #2
0
func main() {
	opts := engo.RunOptions{
		Title:  "Scale Demo",
		Width:  1024,
		Height: 640,
	}
	engo.Run(opts, &DefaultScene{})
}
Example #3
0
func main() {
	opts := engo.RunOptions{
		Title:  "IncrementalCamera Demo",
		Width:  worldWidth,
		Height: worldHeight,
	}
	engo.Run(opts, &DefaultScene{})
}
Example #4
0
func main() {
	opts := engo.RunOptions{
		Title:  "EdgeScroller Demo",
		Width:  worldWidth,
		Height: worldHeight,
	}
	engo.Run(opts, &DefaultScene{})
}
Example #5
0
func main() {
	opts := engo.RunOptions{
		Title:  "MouseRotation Demo",
		Width:  worldWidth,
		Height: worldHeight,
	}
	engo.Run(opts, &DefaultScene{})
}
Example #6
0
func main() {
	opts := engo.RunOptions{
		Title:         "Pong Demo",
		Width:         800,
		Height:        800,
		ScaleOnResize: true,
	}
	engo.Run(opts, &PongGame{})
}
Example #7
0
func main() {
	opts := engo.RunOptions{
		Title:          "HUD Demo",
		Width:          worldWidth,
		Height:         worldHeight,
		StandardInputs: true,
	}
	engo.Run(opts, &DefaultScene{})
}
Example #8
0
func main() {
	opts := engo.RunOptions{
		Title:               "Exit Demo",
		Width:               1024,
		Height:              640,
		OverrideCloseAction: true,
	}
	engo.Run(opts, &DefaultScene{})
}
Example #9
0
func main() {
	opts := engo.RunOptions{
		Title:          "Falling Demo",
		Width:          1024,
		Height:         640,
		StandardInputs: true,
	}

	engo.Run(opts, &DefaultScene{})
}
Example #10
0
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{})
}
Example #11
0
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)
}