edgescroller

command
Version: v0.0.0-...-544bd7e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2016 License: BSD-2-Clause Imports: 4 Imported by: 0

README

EdgeScroller Demo

What does it do?

It demonstrates how one can move the camera round, by keeping the cursor close to the edges of the window.

For doing so, it created a green background. This way, you'll notice the moving.

What are important aspects of the code?

This line is key in this demo:

  • game.AddSystem(engi.NewEdgeScroller(scrollSpeed, edgeMargin)), to enable moving the camera around by using the edges of the window.

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL