aboutsummaryrefslogtreecommitdiff
path: root/SuperPolarityMac/TitleScreen.cs
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2014-02-11 01:15:19 -0600
committerBen Beltran <ben@nsovocal.com>2014-02-11 01:15:19 -0600
commitd7a43ae2d3d4702bd199fa5d8ca84c7c6e78ed36 (patch)
tree28be1c08e360ad3122042243a326f1352797d802 /SuperPolarityMac/TitleScreen.cs
parent6fceaa7b34f4d6efc497cda51679b37e530a61aa (diff)
Consolidate with mac project.
Diffstat (limited to 'SuperPolarityMac/TitleScreen.cs')
-rw-r--r--SuperPolarityMac/TitleScreen.cs50
1 files changed, 0 insertions, 50 deletions
diff --git a/SuperPolarityMac/TitleScreen.cs b/SuperPolarityMac/TitleScreen.cs
deleted file mode 100644
index a953f27..0000000
--- a/SuperPolarityMac/TitleScreen.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Microsoft.Xna.Framework;
-using Microsoft.Xna.Framework.Graphics;
-
-namespace SuperPolarity
-{
- class TitleScreen : Screen
- {
- protected Texture2D TitleImage;
-
- public TitleScreen(SuperPolarity newGame) : base(newGame) {}
-
- public override void LoadContent()
- {
- base.LoadContent();
- TitleImage = Game.Content.Load<Texture2D>("Graphics\\polaritydemotitle");
- InputController.Bind("pause", HandleStart);
- }
-
- public void HandleStart(float value)
- {
- if (!Active) { return; }
- Game.Player.Reset();
- var gameScreen = new GameScreen(Game);
- gameScreen.Initialize();
- ScreenManager.Push(gameScreen);
- }
-
- public override void CleanUp()
- {
- base.CleanUp();
- TitleImage = null;
- }
-
- public override void Draw(SpriteBatch spriteBatch)
- {
- base.Draw(spriteBatch);
- spriteBatch.Draw(TitleImage, new Vector2(0, 0), Color.White);
- }
-
- public override void Update(GameTime gameTime)
- {
- base.Update(gameTime);
- InputController.UpdateInput(false);
- }
- }
-}