public override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); AlienGame.GetSpriteBatch().Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp); MenuList.Draw(gameTime, AlienGame.GetSpriteBatch()); AlienGame.GetSpriteBatch().End(); }
public override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); AlienGame.GetSpriteBatch().Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp); Entities.Draw(AlienGame.GetSpriteBatch()); MenuList.Draw(gameTime, AlienGame.GetSpriteBatch()); _timerText.Text = $"TIME: {Math.Truncate(_timer)}"; _alienCount.Text = $"ALIENS: {Entities.Count}"; AlienGame.GetSpriteBatch().End(); }
public OptionsMenuScene(AlienGame game) : base(game) { }
private void CheckBox_OnEnabled(object sender, System.EventArgs e) { ConfigManager.SetUseDefaultName(true); _checkBox.Position = new Vector2(_checkBox.Position.X, 100); _defaultNameTitle.Position = new Vector2(_defaultNameTitle.Position.X, 95); _textBox = new TextBox(new Rectangle((AlienGame.ScreenWidth / 2) - (AlienGame.ScreenWidth / 4), 130, 300, 35), 3, "", AlienGame.GetGraphicsDevice(), _buttonFont, true, true, false, Slider.DefaultBarColor, new Color(80, 92, 110), Color.White, Color.White, Color.Gray, 3, 10); _textBox.Text.String = ConfigManager.GetDefaultName(); _textBox.Cursor.TextCursor = _textBox.Text.Length; _textBox.EnterDown += TextBox_OnEnter; }
public Scene(AlienGame game) : base(game) { Entities = new EntityList(this); }
public MainMenuScene(AlienGame game) : base(game) { }
public CreditsScene(AlienGame game) : base(game) { }
public GameScene(AlienGame game) : base(game) { }