Can build animations with multiple frames and play the animation. Still need to be able to save/load animations and to pick the images

This commit is contained in:
dalyjame
2019-07-01 08:52:09 -04:00
parent 2474879831
commit e9284e2158
3 changed files with 58 additions and 17 deletions

View File

@@ -41,4 +41,10 @@ class Palette(val image: Image, val numAcross: Int, val numDown: Int) {
def apply(cells : Box): StillImg = {
this(cells.x, cells.y, cells.width, cells.height)
}
def images = {
for (y <- 0 until numDown; x <- 0 until numAcross) yield {
this(x, y)
}
}
}