Example #1
0
 public Ghost(Vector2 position) : base(position)
 {
     AnimationController = new AnimationController(AnimationParser.ReadAnimationJson("SeeNoEvil/Animation/ghost.json"));
     Width  = AnimationController.Width;
     Height = AnimationController.Height;
     Facing = Direction.Down;
 }
Example #2
0
 public Cat(Vector2 position, Direction facing) : base(position)
 {
     AnimationController = new AnimationController(AnimationParser.ReadAnimationJson("SeeNoEvil/Animation/cat.json"));
     Width  = AnimationController.Width;
     Height = AnimationController.Height;
     Facing = facing;
     ChooseAnimation(Facing);
 }