Example #1
0
 public override void Create(BunnyHopGame game)
 {
     this.game        = game;
     map              = new Map();
     player           = new PlayerShip(20, 80);
     hud              = new Hud(player, STAGE);
     cameraTimer      = new Timer();
     cameraTimeToMove = 0.02f;
 }
Example #2
0
 public override void Create(BunnyHopGame game)
 {
     this.game = game;
     options   = new List <Text>();
     options.Add(new Text(Resources.Play, new Vector2(53, 88)));
     options.Add(new Text(Resources.Options, new Vector2(53, 100)));
     options.Add(new Text(Resources.Exit, new Vector2(53, 112)));
     currentSelectedOption = 0;
     oldKeyState           = Keyboard.GetState();
     newKeyState           = oldKeyState;
     oldGamePadState       = GamePad.GetState(PlayerIndex.One);
     newGamePadState       = oldGamePadState;
 }
 public override void Create(BunnyHopGame game)
 {
     this.game = game;
     options   = new List <Text>();
     options.Add(new Text("SCALE", new Vector2(18, 42)));
     options.Add(new Text("FULLSCREEN", new Vector2(18, 52)));
     options.Add(new Text("VSYNC", new Vector2(18, 62)));
     options.Add(new Text("SOUND", new Vector2(18, 72)));
     options.Add(new Text("MUSIC", new Vector2(18, 82)));
     options.Add(new Text("BACK", new Vector2(18, 92)));
     optionsValues = new List <Text>();
     optionsValues.Add(new Text(ConfigLocator.Config.Scale.ToString(), new Vector2(118, 42)));
     optionsValues.Add(new Text(ConfigLocator.Config.Fullscreen == OnOff.ON ? "ON" : "OFF", new Vector2(118, 52)));
     optionsValues.Add(new Text(ConfigLocator.Config.Vsync == OnOff.ON ? "ON" : "OFF", new Vector2(118, 62)));
     optionsValues.Add(new Text(ConfigLocator.Config.Sound.ToString(), new Vector2(118, 72)));
     optionsValues.Add(new Text(ConfigLocator.Config.Music.ToString(), new Vector2(118, 82)));
     currentSelectedOption = 0;
     oldKeyState           = Keyboard.GetState();
     newKeyState           = oldKeyState;
     oldGamePadState       = GamePad.GetState(PlayerIndex.One);
     newGamePadState       = oldGamePadState;
 }
 public override void Create(BunnyHopGame game)
 {
     this.game = game;
     map       = new Map();
     player    = new Player();
 }
 abstract public void Create(BunnyHopGame game);
 public override void Create(BunnyHopGame game)
 {
     this.game = game;
 }