openquell/components/components.go

33 lines
449 B
Go
Raw Normal View History

2024-02-06 15:26:20 +01:00
package components
import (
"github.com/hajimehoshi/ebiten/v2"
)
// virtual location, aka tile address
type Renderable struct {
Image *ebiten.Image
}
2024-02-11 14:24:30 +01:00
type Particle struct {
Show bool
Index int
Tiles []*ebiten.Image
2024-02-11 14:24:30 +01:00
}
type Speed struct {
Value int
}
2024-02-06 15:26:20 +01:00
// only tile entities will have those
type Tilish struct{}
type Solid struct{}
type Floor struct{}
type Player struct{}
2024-02-07 18:01:58 +01:00
type Collectible struct{}
type Obstacle struct {
Direction int
}