Пример #1
0
 public Player()
 {
     bmp = new AnimatedBitmap(15, 23, 8, false);
     bmp.AddState("assets/objects/player_run", "run", true);
     bmp.AddState("assets/objects/player", "stay", true);
     bmp.SetState("run");
     AddChild(bmp);
 }
Пример #2
0
        public Bug(MovingObject target)
            : base(target)
        {
            bmp = new AnimatedBitmap(10, 10, 14, false);
            bmp.AddState("assets/objects/zombie_2-2", "stay", true);
            bmp.AddState("assets/objects/zombie_2", "run", true);
            bmp.SetState("stay");
            AddChild(bmp);

            hp = 50;
        }
Пример #3
0
        public Zombie(MovingObject target)
            : base(target)
        {
            bmp = new AnimatedBitmap(16, 23, 14, false);
            bmp.AddState("assets/objects/zombie_1-2", "stay", true);
            bmp.AddState("assets/objects/zombie_1", "run", true);
            bmp.SetState("stay");
            AddChild(bmp);

            hp = 100;
        }