30 lines
443 B
Go
30 lines
443 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
|
|
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{}
|
|
type Obstacle struct{}
|