Added a hero to the game who can move around and animates
This commit is contained in:
10
FakeMon/src/fmon/world/Actor.scala
Normal file
10
FakeMon/src/fmon/world/Actor.scala
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user