openquell/components/components.go

28 lines
404 B
Go

package components
import (
"github.com/hajimehoshi/ebiten/v2"
)
// virtual location, aka tile address
type Renderable struct {
Image *ebiten.Image
}
type Particle struct {
Index int
Particles []*ebiten.Image
}
type Speed struct {
Value int
}
// only tile entities will have those
type Tilish struct{}
type Solid struct{}
type Floor struct{}
type Player struct{}
type Collectible struct{}