Documentation ¶
Overview ¶
Package generator returns procedurally generated parts of levels for Gopher Run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameObject ¶
type GameObject struct {
// contains filtered or unexported fields
}
GameObject corresponds to a Unity GameObject.
func GenerateBackground ¶
func GenerateBackground(start, end, speed float64) []GameObject
GenerateBackground determines positions for background objects.
func (GameObject) String ¶
func (o GameObject) String() string
type RequestData ¶
RequestData is the form in which requests for background generation come in.
Click to show internal directories.
Click to hide internal directories.