コード例 #1
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);
 }
コード例 #2
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();
 }
コード例 #3
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();
 }