archetype

package
v0.0.0-...-a9b3afa Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustFindPlayer

func MustFindPlayer(w donburi.World) *component.PlayerData

func NewEnemy

func NewEnemy(
	w donburi.World,
	position math.Vec2,
	rotation float64,
)

func NewPlayer

func NewPlayer(w donburi.World) *donburi.Entry

func NewPlayerCharacter

func NewPlayerCharacter(w donburi.World)

func NewPlayerFromPlayerData

func NewPlayerFromPlayerData(w donburi.World, playerData component.PlayerData) *donburi.Entry

func NewPlayerProjectile

func NewPlayerProjectile(w donburi.World, position math.Vec2)

Types

type PlayerInputs

type PlayerInputs struct {
	Up    ebiten.Key
	Right ebiten.Key
	Down  ebiten.Key
	Left  ebiten.Key
	Shoot ebiten.Key
}

Jump to

Keyboard shortcuts

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