Esempio n. 1
0
 public GameLayout(DarkJetpack game, int playerSkinN) : base(game)
 {
     playerSkinNum = playerSkinN;
     Terrain       = game.Terrain;
     Explosion     = game.Explosion;
     Explosion1    = game.Explosion1;
 }
Esempio n. 2
0
 public GameOverLayout(DarkJetpack game) : base(game)
 {
     score               = player.score;
     particleMashine     = new ParticleMashine(150, DarkJetpack.baseTexture, null);
     interferenceTexture = new Texture2D(game.GraphicsDevice, 200, 150);
     SaveGameStorage.SaveData(player.highscore);
 }
Esempio n. 3
0
 public Layout(DarkJetpack _game)
 {
     game           = _game;
     GraphicsDevice = game.GraphicsDevice;
     buttons        = new List <Button>();
     windowBounds   = new Point(game.GraphicsDevice.Viewport.Width, game.GraphicsDevice.Viewport.Height);
     player         = (player == null) ? new Player(game, game.Terrain) : player;
 }
Esempio n. 4
0
 public Player(DarkJetpack _game, Texture2D terrain)
 {
     game      = _game;
     Terrain   = terrain;
     Position  = Vector2.Zero;
     texture   = game.Content.Load <Texture2D>(@"player");
     Rotation  = 0;
     Speed     = new Vector2(2, 2);
     pmS       = new ParticleMashine(50, Terrain, new Rectangle(365, 321, 64, 64));
     pmF       = new ParticleMashine(20, Terrain, new Rectangle(365, 381, 64, 64));
     highscore = SaveGameStorage.LoadData();
 }
Esempio n. 5
0
 public MainMenuLayout(DarkJetpack game) : base(game)
 {
     particleMashine1    = new ParticleMashine(150, DarkJetpack.baseTexture, null);
     particleMashine2    = new ParticleMashine(150, DarkJetpack.baseTexture, null);
     particleMashine3    = new ParticleMashine(150, DarkJetpack.baseTexture, null);
     particleMashine4    = new ParticleMashine(150, DarkJetpack.baseTexture, null);
     particleMashine5    = new ParticleMashine(150, DarkJetpack.baseTexture, null);
     particleMashine6    = new ParticleMashine(150, DarkJetpack.baseTexture, null);
     particleMashine7    = new ParticleMashine(150, DarkJetpack.baseTexture, null);
     interferenceTexture = new Texture2D(game.GraphicsDevice, 200, 150);
     nextPlayerSkin();
 }
Esempio n. 6
0
 static void Main()
 {
     using (var game = new DarkJetpack())
         game.Run();
 }