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 {
|
2024-02-22 14:33:01 +01:00
|
|
|
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{}
|
2024-02-22 14:33:01 +01:00
|
|
|
|
|
|
|
|
type Obstacle struct {
|
|
|
|
|
Direction int
|
|
|
|
|
}
|