openquell/components/components.go

33 lines
449 B
Go

package components
import (
"github.com/hajimehoshi/ebiten/v2"
)
// virtual location, aka tile address
type Renderable struct {
Image *ebiten.Image
}
type Particle struct {
Show bool
Index int
Tiles []*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{}
type Obstacle struct {
Direction int
}