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:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user