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); }
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(); }
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(); }