openquell/components/components.go

26 lines
474 B
Go

package components
import (
"github.com/hajimehoshi/ebiten/v2"
)
// virtual location, aka tile address
type Renderable struct {
Pos *Position // just for debugging, will not used as positiion!
Image *ebiten.Image
DamageImage *ebiten.Image
Damaged int
Shader *ebiten.Shader
}
// only tile entities will have those
type Tilish struct{}
type Solid struct{}
type Floor struct{}
type Collectible struct{}
type Obstacle struct {
Direction int
}