2024-02-06 15:26:20 +01:00
|
|
|
package components
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/hajimehoshi/ebiten/v2"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// virtual location, aka tile address
|
|
|
|
|
|
|
|
|
|
type Renderable struct {
|
2024-03-31 20:16:15 +02:00
|
|
|
Pos *Position // just for debugging, will not used as positiion!
|
2024-03-24 19:36:00 +01:00
|
|
|
Image *ebiten.Image
|
|
|
|
|
DamageImage *ebiten.Image
|
|
|
|
|
Damaged int
|
|
|
|
|
Shader *ebiten.Shader
|
2024-02-06 15:26:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// only tile entities will have those
|
|
|
|
|
type Tilish struct{}
|
|
|
|
|
type Solid struct{}
|
|
|
|
|
type Floor 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
|
|
|
|
|
}
|