demoutils

package
v0.0.0-...-dcf2497 Latest Latest
Warning

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

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

README

demoutils

This is not a demo, but instead contains useful methods that other demos might use, in order to keep the code of those demos simple, and to avoid copying the same code to every single demo.

It is also code that most-likely won't be used in production.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Background

type Background struct {
	ecs.BasicEntity
	engo.RenderComponent
	engo.SpaceComponent
}

func NewBackground

func NewBackground(world *ecs.World, width, height int, colorA, colorB color.Color) *Background

NewBackground creates a background of colored tiles - might not be the most efficient way to do this It gets added to the world as well, so we won't return anything.

Jump to

Keyboard shortcuts

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