Axios-Tennis

Axios-Tennis Commit Details


Date:2012-04-28 14:31:00 (12 years 7 months ago)
Author:nathan@daedalus
Branch:newgsm
Commit:93ef4277b669
Parents: 3a4cc24bb53e
Message:Updating code to use new GSM

Changes:
Aaxios_tennis/axios_tennis/TennisMainMenu.cs (full)
Maxios_tennis/axios_tennis/TennisScreen.cs (1 diff)
Maxios_tennis/axios_tennis/axios_tennis_wp7.csproj (1 diff)
Maxios_tennis/axios_tennis/axios_tennis_xbox360.csproj (1 diff)

File differences

axios_tennis/axios_tennis/TennisMainMenu.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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();
}
}
}
axios_tennis/axios_tennis/TennisScreen.cs
7676
7777
7878
79
79
8080
8181
8282
8383
8484
85
85
8686
8787
8888
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)
{
axios_tennis/axios_tennis/axios_tennis_wp7.csproj
8787
8888
8989
90
9190
9291
9392
<Content Include="Game.ico" />
</ItemGroup>
<ItemGroup>
<None Include="axios_tennis_TemporaryKey.pfx" />
<None Include="Background.png">
<XnaPlatformSpecific>true</XnaPlatformSpecific>
</None>
axios_tennis/axios_tennis/axios_tennis_xbox360.csproj
8383
8484
8585
86
8786
8887
8988
<Content Include="Game.ico" />
</ItemGroup>
<ItemGroup>
<None Include="axios_tennis_TemporaryKey.pfx" />
<None Include="GameThumbnail.png">
<XnaPlatformSpecific>true</XnaPlatformSpecific>
</None>

Archive Download the corresponding diff file

Branches

Tags

Page rendered in 0.40955s using 13 queries.