elements

package
v0.0.0-...-740fe35 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Carrier

type Carrier struct {
	game.Serial

	Position game.Vector
	Rotation float64 `json:"rotation"`
	Speed    float64 `json:"speed"`
	Score    int32   `json:"score"`

	Name string
	// contains filtered or unexported fields
}

func NewCarrier

func NewCarrier(channel *network.MessageQueue, position game.Vector) *Carrier

func (*Carrier) Center

func (l *Carrier) Center() (float64, float64)

func (*Carrier) Collider

func (l *Carrier) Collider() game.Rect

func (*Carrier) CopyFrom

func (r *Carrier) CopyFrom(other *Carrier)

func (*Carrier) Draw

func (c *Carrier) Draw(screen *ebiten.Image, geom ebiten.GeoM)

func (*Carrier) Edit

func (l *Carrier) Edit()

func (*Carrier) Select

func (l *Carrier) Select()

func (*Carrier) ToJson

func (r *Carrier) ToJson() string

func (*Carrier) Toggle

func (l *Carrier) Toggle()

func (*Carrier) UnSelect

func (l *Carrier) UnSelect()

func (*Carrier) Update

func (c *Carrier) Update()

type Star

type Star struct {
	game.Serial

	Position game.Vector

	Name string
	// contains filtered or unexported fields
}

func NewStar

func NewStar(channel *network.MessageQueue, position game.Vector) *Star

func (*Star) Center

func (l *Star) Center() (float64, float64)

func (*Star) Collider

func (l *Star) Collider() game.Rect

func (*Star) CopyFrom

func (r *Star) CopyFrom(other *Star)

func (*Star) Draw

func (l *Star) Draw(screen *ebiten.Image, geom ebiten.GeoM)

func (*Star) Edit

func (l *Star) Edit()

func (*Star) Select

func (l *Star) Select()

func (*Star) ToJson

func (r *Star) ToJson() string

func (*Star) Toggle

func (l *Star) Toggle()

func (*Star) UnSelect

func (l *Star) UnSelect()

func (*Star) Update

func (s *Star) Update()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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