Esempio n. 1
0
 public Django Django(SavingObject savingObject)
 {
     return new Django(Game, new GrenadeWeapon(Game, ContentContainer.grenadeTexture2D))
     {
         AllBullets = savingObject.allBullets,
         HealthPoints = savingObject.healthPoints,
         PositionRectangle = savingObject.positionRectangle,
         FrameSizePoint = savingObject.frameSizePoint
     };
 }
Esempio n. 2
0
 public HealthBar HealthBar(SavingObject savingObject)
 {
     return new HealthBar(Game) { PositionRectangle = savingObject.positionRectangle};
 }
Esempio n. 3
0
 public Enemy Enemy(SavingObject savingObject)
 {
     return new Enemy(Game)
     {
         AllBullets = savingObject.allBullets,
         HealthPoints = savingObject.healthPoints,
         PositionRectangle = savingObject.positionRectangle,
         FrameSizePoint = savingObject.frameSizePoint
     };
 }
Esempio n. 4
0
 public BulletsBar BulletsBar(SavingObject savingObject)
 {
     return new BulletsBar(Game) { PositionRectangle = savingObject.positionRectangle };
 }
Esempio n. 5
0
 public Platform Platform(SavingObject savingObject)
 {
     return new Platform(Game) { PositionRectangle = savingObject.positionRectangle };
 }
Esempio n. 6
0
 public Level Level1(SavingObject savingObject)
 {
     Level.screenLeftX = savingObject.leftScreenX;
     Level.Length = savingObject.length;
     Level.currentLevel = savingObject.currentLevel;
     return new Level(Game);
 }