openquell/components/components.go
Thomas von Dein faf0fd99c2 Changes:
- use toggle tile for all toggling entities (transient, switch, door)
- get rod of hard coded sprites (exception: particle class, to be
  fixed later)
- changed switch sprite (rect instead of elipse)
2024-03-31 20:16:15 +02:00

32 lines
546 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
}
type Particle struct {
Show bool
Index int
Tiles []*ebiten.Image
}
// only tile entities will have those
type Tilish struct{}
type Solid struct{}
type Floor struct{}
type Collectible struct{}
type Obstacle struct {
Direction int
}