components

package
v0.0.0-...-fb118bf Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alien

type Alien struct {
	Width       float64
	Height      float64
	Translation math.Vector2
}

Alien component

type AlienMaster

type AlienMaster struct {
	Direction float64
}

AlienMaster component

type Bullet

type Bullet struct {
	Width    float64
	Height   float64
	Velocity float64
	Health   float64
}

Bullet component

type Bunker

type Bunker struct {
	PixelSize int `toml:"pixel_size"`
}

Bunker component

type Components

type Components struct {
	Player       *ecs.NullComponent
	Enemy        *ecs.NullComponent
	Controllable *ecs.SliceComponent
	Alien        *ecs.SliceComponent
	AlienMaster  *ecs.SliceComponent
	Bunker       *ecs.SliceComponent
	Bullet       *ecs.SliceComponent
	PlayerLine   *ecs.NullComponent
	Deleted      *ecs.NullComponent
}

Components contains references to all game components

type Controllable

type Controllable struct {
	Width  float64
	Height float64
}

Controllable component

type Deleted

type Deleted struct{}

Deleted component

type Enemy

type Enemy struct{}

Enemy component

type Player

type Player struct{}

Player component

type PlayerLine

type PlayerLine struct{}

PlayerLine component

Jump to

Keyboard shortcuts

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