Exemple #1
0
 public MooWorld()
 {
     Human = new MooPlayer()
     {
         Name = "Jacob", X = 0, Y = 0
     };
 }
        public void Place(MooPlayer player)
        {
            // place the item a the end of their hand
            float x1, y1, x2, y2;

            Collision.CalculateLineByAngle(player.X, player.Y, player.Angle, player.Width, out x1, out y1, out x2, out y2);
            X = x2;
            Y = y2;

            // make the item solid
            CanMove     = false;
            TakesDamage = true;
            ShowDamage  = true;
            CanAcquire  = false;
            IsSolid     = true;
        }
Exemple #3
0
        public MooZombie(MooPlayer lunch)
        {
            Name               = "MooZombie";
            Width              = 40;
            Height             = 50;
            Speed              = 0.5f;
            Rand               = new Random();
            ShowDefaultDrawing = false;

            // establish the brainz sign
            ShowBrainz     = false;
            BrainzDuration = new Stopwatch();
            BrainzDuration.Start();

            // the player to chase
            Lunch = lunch;

            // zombie attack
            Fists = new Tool()
            {
                Distance = (int)Width, Damage = 10
            };
        }
Exemple #4
0
 public MooHud(MooPlayer me)
 {
     Me     = me;
     Images = new Dictionary <string, IImage>();
 }