Beispiel #1
0
        public Man(Vector2f position)
        {
            MoveSpeed         = 80f;
            AnimatoinsHandler = new FourDirectionsMoveAnimatoinsHandler(ResourceLoader.ManMoveAnimationsSprites, MoveDirection);
            foreach (var obj in AnimatoinsHandler.Collection)
            {
                var animation = obj as Animation;
                animation.Speed = 7;
            }

            Position = position;
        }
Beispiel #2
0
 public override void DeleteNestedObjects()
 {
     AnimatoinsHandler.DeleteNestedObjects();
     AnimatoinsHandler = null;
 }
Beispiel #3
0
 public Passerby(Vector2f position)
 {
     MoveSpeed         = 200f;
     AnimatoinsHandler = new FourDirectionsMoveAnimatoinsHandler(ResourceLoader.PasserbyMoveAnimationsSprites, MoveDirection);
     Position          = position;
 }