headless

command
v0.0.0-...-8fc0beb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2016 License: MIT Imports: 8 Imported by: 0

README

Headless Pong Demo

What does it do?

It copies 100% of the code at pong/pong.go, but attempts to run it in headless mode (without graphical display).

What are important aspects of the code?

Originally, pong.go has:

opts := engo.RunOptions{
    Title:         "Pong Demo",
    Width:         800,
    Height:        800,
    ScaleOnResize: true,
}

In order to turn it into headless mode, all we had to do, was change it to this:

opts := engo.RunOptions{
    HeadlessMode: true,
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL