Added a hero to the game who can move around and animates

This commit is contained in:
James Daly
2019-07-18 22:24:56 -04:00
parent 32542df86c
commit c10da7ccf9
7 changed files with 135 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
package fmon.world
import fmon.draw._
class Actor(val sprite: Sprite, var x: Double, var y: Double) {
def pose: String = sprite.pose
def pose_=(p: String) = {
sprite.pose = p
}
}