entities

package
v0.0.0-...-c44a210 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImageFromEmbed

func NewImageFromEmbed(path string, folder *embed.FS) *ebiten.Image

Types

type EntityOptions

type EntityOptions struct {
	EmbedFolder *embed.FS
	Root        string
	World       *collisions.World
}

type Player

type Player struct {
	X              float64
	Y              float64
	W              float64
	H              float64
	Sprite         *aseprite.Animation
	Speed          float64
	World          *collisions.World
	CollisionShape *collisions.Box
}

func (*Player) Draw

func (p *Player) Draw(screen *ebiten.Image)

func (*Player) Init

func (p *Player) Init(levels *ldtk.Ldtk, opt *EntityOptions)

func (*Player) Move

func (p *Player) Move()

func (*Player) Update

func (p *Player) Update()

Jump to

Keyboard shortcuts

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