generator

package
v0.0.0-...-27c6416 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

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

type RequestData struct {
	Xmin  float64
	Xmax  float64
	Speed float64
}

RequestData is the form in which requests for background generation come in.

type Transform

type Transform struct {
	// contains filtered or unexported fields
}

Transform is information about the GameObject (corresponds to Unity Transform).

type Vector3

type Vector3 struct {
	X float64
	Y float64
	Z float64
}

Vector3 is 3-value vector.

Jump to

Keyboard shortcuts

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