battle

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type ARGB

type ARGB uint32
const (
	NiceRed    ARGB = 0xfffc0335
	NiceBlue   ARGB = 0xff035efc
	NiceOrange ARGB = 0xfffc8803
	NicePurple ARGB = 0xff891cb8
	Magenta    ARGB = 0xffff00ff
)

type BodyType added in v0.0.2

type BodyType uint8
const (
	BodyTypeNone BodyType = iota
	BodyTypeShip
	BodyTypeMissile
)

TODO: need a way to expose this to the shader.

type Particle

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

func (Particle) BodyType added in v0.0.2

func (p Particle) BodyType() BodyType

func (Particle) Team added in v0.0.2

func (p Particle) Team() Team

type SimParams

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

type Team added in v0.0.2

type Team uint8

func (Team) Color added in v0.0.2

func (t Team) Color() ARGB

type Vertex

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

Jump to

Keyboard shortcuts

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