diff -r 3a4cc24bb53ec8ee3ac31a1b985eebec0c21712d -r 93ef4277b669456e3c468c3b187caf3091ca1425 axios_tennis/axios_tennis/TennisMainMenu.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/axios_tennis/axios_tennis/TennisMainMenu.cs Sat Apr 28 14:31:43 2012 -0500 @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using GameStateManagement; +using Microsoft.Xna.Framework; + +namespace axios_tennis +{ + class TennisMainMenu : MenuScreen + { + public TennisMainMenu() + : base("Axios Tennis") + { + + } + public override void Activate(bool instancePreserved) + { + base.Activate(instancePreserved); + + MenuEntries.Add(new MenuEntry("Start")); + MenuEntries.Add(new MenuEntry("Exit")); + } + + protected override void OnSelectEntry(int entryIndex, Microsoft.Xna.Framework.PlayerIndex playerIndex) + { + base.OnSelectEntry(entryIndex, playerIndex); + + switch (entryIndex) + { + case 0: + this.ScreenManager.AddScreen(new TennisScreen(), PlayerIndex.One); + break; + case 1: + this.ScreenManager.Game.Exit(); + break; + + } + } + + protected override void OnCancel(PlayerIndex playerIndex) + { + base.OnCancel(playerIndex); + + ScreenManager.Game.Exit(); + } + } +} diff -r 3a4cc24bb53ec8ee3ac31a1b985eebec0c21712d -r 93ef4277b669456e3c468c3b187caf3091ca1425 axios_tennis/axios_tennis/TennisScreen.cs --- a/axios_tennis/axios_tennis/TennisScreen.cs Tue Apr 17 23:32:50 2012 -0500 +++ b/axios_tennis/axios_tennis/TennisScreen.cs Sat Apr 28 14:31:43 2012 -0500 @@ -76,13 +76,13 @@ AddGameObject(_ball); } - /*void b_MouseDown(object sender, AxiosGameScreen gameScreen, InputState input) + void b_MouseDown(object sender, AxiosGameScreen gameScreen, InputState input) { if (HasVirtualStick) HasVirtualStick = false; else HasVirtualStick = true; - }*/ + } public override void HandleInput(GameTime gameTime, InputState input) { diff -r 3a4cc24bb53ec8ee3ac31a1b985eebec0c21712d -r 93ef4277b669456e3c468c3b187caf3091ca1425 axios_tennis/axios_tennis/axios_tennis_wp7.csproj --- a/axios_tennis/axios_tennis/axios_tennis_wp7.csproj Tue Apr 17 23:32:50 2012 -0500 +++ b/axios_tennis/axios_tennis/axios_tennis_wp7.csproj Sat Apr 28 14:31:43 2012 -0500 @@ -87,7 +87,6 @@ - true diff -r 3a4cc24bb53ec8ee3ac31a1b985eebec0c21712d -r 93ef4277b669456e3c468c3b187caf3091ca1425 axios_tennis/axios_tennis/axios_tennis_xbox360.csproj --- a/axios_tennis/axios_tennis/axios_tennis_xbox360.csproj Tue Apr 17 23:32:50 2012 -0500 +++ b/axios_tennis/axios_tennis/axios_tennis_xbox360.csproj Sat Apr 28 14:31:43 2012 -0500 @@ -83,7 +83,6 @@ - true