ui

package
v0.0.0-...-40e17fa Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameofGame = "ship shape"

	PlanetSize     = 32
	PlanetDistance = 6 // lower numbers are denser

	WindowW           = 1024
	WindowH           = 768
	ArrowKeyMoveSpeed = 4 // larger numbers are faster

	Buffer    = 4
	Border    = 1
	BarHeight = 4

	PanelWidth           = 200
	PanelExternalPadding = 10
	IncomeRate           = 3

	YearLength         = 1200 // smaller numbers are faster
	BaseProductionRate = 3600 // smaller numbers are faster
	ShipSpeed          = 1    // smaller numbers are faster
)
View Source
const (
	TtfRegular = "fonts/OpenSans_SemiCondensed-Regular.ttf"
	TtfBold    = "fonts/OpenSans_SemiCondensed-Bold.ttf"

	DPI = 72
)

Variables

View Source
var BackgroundColor = color.RGBA{0x00, 0x00, 0x00, 0xff}
View Source
var FocusedColor = color.RGBA{0x78, 0xcc, 0xe2, 0xff}
View Source
var LevelProgressColor = color.RGBA{0x80, 0x00, 0x20, 0xff}
View Source
var NonFocusColor = color.RGBA{0x7f, 0x7f, 0x7f, 0xff}
View Source
var Shader *ebiten.Shader
View Source
var ShaderOpts *ebiten.DrawRectShaderOptions

Functions

func Font

func Font(which string) *font.Face

func GameData

func GameData(path string) ([]byte, error)

func InitializeShader

func InitializeShader()

func PlayButtonSound

func PlayButtonSound()

func StarField

func StarField(w, h int) *ebiten.Image

Types

This section is empty.

Jump to

Keyboard shortcuts

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