assets

package
v0.0.0-...-84cadf2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnemyClassAirplane       = "enemy-airplane"
	EnemyClassTank           = "enemy-tank"
	EnemyClassTurretBeam     = "enemy-turret-beam"
	EnemyClassTurretMissiles = "enemy-turret-missiles"

	ObjectClassGroupSpawn = "group-spawn"

	TilesetClassTiles     = "tiles"
	TilesetClassAirplanes = "airplanes"
)

Variables

View Source
var (
	AirplanesBlue   []*ebiten.Image
	AirplanesRed    []*ebiten.Image
	AirplanesGreen  []*ebiten.Image
	AirplanesYellow []*ebiten.Image

	AirplaneGraySmall *ebiten.Image

	TankBase *ebiten.Image
	TankGun  *ebiten.Image

	TurretBase      *ebiten.Image
	TurretGunSingle *ebiten.Image
	TurretGunDouble *ebiten.Image

	LaserSingle *ebiten.Image
	Bullet      *ebiten.Image
	Missile     *ebiten.Image

	Health        *ebiten.Image
	WeaponUpgrade *ebiten.Image
	Shield        *ebiten.Image

	AirplaneShield *ebiten.Image
	Crosshair      *ebiten.Image

	AirBase AirBaseLevel
	Levels  []Level

	SmallFont  font.Face
	NormalFont font.Face
	NarrowFont font.Face
)

Functions

func MustLoadAssets

func MustLoadAssets()

Types

type AirBaseLevel

type AirBaseLevel struct {
	Background *ebiten.Image
	Spawns     []Spawn
}

type Enemy

type Enemy struct {
	Class    string
	Position math.Vec2
	Rotation float64
	Speed    float64
	Path     Path
}

type EnemyGroupSpawn

type EnemyGroupSpawn struct {
	Position math.Vec2
	Enemies  []Enemy
}

type Level

type Level struct {
	Background       *ebiten.Image
	Enemies          []Enemy
	EnemyGroupSpawns []EnemyGroupSpawn
}

type Path

type Path struct {
	Points []math.Vec2
	Loops  bool
}

type Spawn

type Spawn struct {
	Faction  string
	Position math.Vec2
}

Jump to

Keyboard shortcuts

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