renamed particle* to animation*, added asesprite animation loading
This commit is contained in:
11
components/animation.go
Normal file
11
components/animation.go
Normal 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
|
||||
}
|
||||
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user