scape

package
v0.0.0-...-2f5b0de Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxBuildings = 40
View Source
var MinBuildings = 28

Functions

This section is empty.

Types

type Building

type Building struct {
	Type    string
	Name    string
	Levels  int
	Cost    int
	Outline rl.Rectangle
	Color   Paint
	Windows []rl.Rectangle
}

type City

type City struct {
	Name       string
	Country    string
	Population int
	Elevation  int
	Latitude   float64
	Longitude  float64
	Time       time.Time
}

type Paint

type Paint struct {
	Color  color.RGBA
	Shadow color.RGBA
	Window color.RGBA
}

func Colors

func Colors(buildings int) []Paint

type Scape

type Scape struct {
	City      City
	Buildings []Building
	Backdrop  [][]Building
}

func InitScape

func InitScape(x, y int) Scape

Jump to

Keyboard shortcuts

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