Beispiel #1
0
 public Hen(int spawnx, int spawny)
 {
     //TODO рандомно спавнть в комнате
     Skin          = Resources.chick_48x64;
     LocationX     = spawnx;
     LocationY     = spawny;
     Speed         = (decimal)2;
     WidthOfImage  = 25;
     HeightOfImage = 23;
     RigidBody     = new RigidBodyRec(spawnx, spawny, WidthOfImage, HeightOfImage);
     CoordsOfImage = new List <int> {
         16, 45, 64, 43, 112, 45, 64, 43, 13, 109, 61, 107,
         109, 109, 61, 107, 16, 173, 64, 171, 112, 173, 64, 171, 11, 237, 61, 235, 107, 237, 61, 235
     };
 }
Beispiel #2
0
 public Zombie(decimal spawnx, decimal spawny)
 {
     Skin          = Resources.ZombieAndSkeleton;
     LocationX     = spawnx;
     LocationY     = spawny;
     Speed         = (decimal)0.5;
     WidthOfImage  = 32;
     HeightOfImage = 41;
     RigidBody     = new RigidBodyRec(spawnx, spawny, WidthOfImage, HeightOfImage);
     CoordsOfImage = new List <int> {
         0, 215, 32, 215, 64, 215, 32, 215,
         0, 151, 32, 151, 64, 151, 32, 151,
         0, 23, 33, 23, 65, 23, 33, 23,
         0, 87, 32, 87, 64, 87, 32, 87
     };
 }
Beispiel #3
0
 public Skeleton(decimal spawnx, decimal spawny)
 {
     Skin          = Resources.ZombieAndSkeleton;
     LocationX     = spawnx;
     LocationY     = spawny;
     Speed         = (decimal)0.5;
     WidthOfImage  = 32;
     HeightOfImage = 49;
     RigidBody     = new RigidBodyRec(spawnx, spawny, WidthOfImage, HeightOfImage);
     CoordsOfImage = new List <int> {
         192, 207, 223, 207, 255, 207, 223, 207,
         192, 143, 224, 143, 256, 143, 224, 143,
         193, 15, 224, 15, 255, 15, 224, 15,
         192, 79, 224, 79, 256, 79, 224, 79
     };
 }