renamed particle* to animation*, added asesprite animation loading

This commit is contained in:
2024-04-02 20:05:23 +02:00
parent 20fa2639c6
commit 001b67f97a
14 changed files with 673 additions and 162 deletions

11
components/animation.go Normal file
View File

@@ -0,0 +1,11 @@
package components
import "github.com/hajimehoshi/ebiten/v2"
type Animation struct {
Show bool
Index int
Loop bool
Tiles []*ebiten.Image
Width, Height int // single sprite measurements
}

View File

@@ -14,12 +14,6 @@ type Renderable struct {
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{}