Axios-Snake

Axios-Snake Commit Details


Date:2012-08-25 01:00:00 (12 years 3 months ago)
Author:Eli S
Branch:default
Commit:116059c86b12
Parents: 665b15b7f8d3
Message:Implemented Windows Phone into Application

Changes:
ASnake.suo
Aaxios_snake/axios_snake/Background.png
Aaxios_snake/axios_snake/PhoneGameThumb.png
Aaxios_snake/axios_snake/axios_snake WP.csproj (full)
Aaxios_snake/axios_snake/axios_snake.csproj.user (full)
MSnake.sln (2 diffs)
Maxios_snake/axios_snake/SnakeScreen.cs (4 diffs)

File differences

Snake.sln
55
66
77
8
9
810
911
1012
......
3335
3436
3537
38
39
40
41
42
43
44
45
46
47
48
49
50
51
3652
3753
3854
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "axios_snakeContent", "axios_snake\axios_snakeContent\axios_snakeContent.contentproj", "{664607B5-E371-44CA-A2D0-A7ECF21237A7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "axios_snake WP", "axios_snake\axios_snake\axios_snake WP.csproj", "{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Mixed Platforms = Debug|Mixed Platforms
{664607B5-E371-44CA-A2D0-A7ECF21237A7}.Release|Mixed Platforms.ActiveCfg = Release|x86
{664607B5-E371-44CA-A2D0-A7ECF21237A7}.Release|Windows Phone.ActiveCfg = Release|x86
{664607B5-E371-44CA-A2D0-A7ECF21237A7}.Release|x86.ActiveCfg = Release|x86
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Debug|Mixed Platforms.ActiveCfg = Debug|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Debug|Mixed Platforms.Build.0 = Debug|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Debug|Mixed Platforms.Deploy.0 = Debug|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Debug|Windows Phone.ActiveCfg = Debug|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Debug|Windows Phone.Build.0 = Debug|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Debug|Windows Phone.Deploy.0 = Debug|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Debug|x86.ActiveCfg = Debug|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Release|Mixed Platforms.ActiveCfg = Release|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Release|Mixed Platforms.Build.0 = Release|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Release|Mixed Platforms.Deploy.0 = Release|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Release|Windows Phone.ActiveCfg = Release|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Release|Windows Phone.Build.0 = Release|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Release|Windows Phone.Deploy.0 = Release|Windows Phone
{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}.Release|x86.ActiveCfg = Release|Windows Phone
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
axios_snake/axios_snake/SnakeScreen.cs
1616
1717
1818
19
20
2119
2220
2321
......
9795
9896
9997
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
100136
101137
102138
......
109145
110146
111147
148
112149
113150
114151
......
125162
126163
127164
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
165
161166
162167
163168
{
private Ball ball;
private KeyboardState currentKeyState;
private List<Snake> snake;
private SpriteFont scoreFont;
init();
}
public override void HandleInput(GameTime gameTime, InputState input)
{
base.HandleInput(gameTime, input);
if (input.CurrentKeyboardStates[0].IsKeyDown(Keys.Right) || (input.VirtualState.ThumbSticks.Left.X > .50) )
{
if (!left)
{
right = true;
left = up = down = false;
}
}
else if (input.CurrentKeyboardStates[0].IsKeyDown(Keys.Left) || (input.VirtualState.ThumbSticks.Left.X < -.50) )
{
if (!right)
{
left = true;
right = up = down = false;
}
}
else if (input.CurrentKeyboardStates[0].IsKeyDown(Keys.Up) || (input.VirtualState.ThumbSticks.Left.Y > .50) )
{
if (!down)
{
up = true;
down = left = right = false;
}
}
else if (input.CurrentKeyboardStates[0].IsKeyDown(Keys.Down) || (input.VirtualState.ThumbSticks.Left.Y < -.50))
{
if (!up)
{
down = true;
up = left = right = false;
}
}
}
public override void Draw(GameTime gameTime)
{
public override void Update(GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)
{
base.Update(gameTime, otherScreenHasFocus, coveredByOtherScreen);
if (play)
{
AddGameObject(snake[snake.Count - 1]);
}
currentKeyState = Keyboard.GetState();
if (currentKeyState.IsKeyDown(Keys.Right))
{
if (!left)
{
right = true;
left = up = down = false;
}
}
else if (currentKeyState.IsKeyDown(Keys.Left))
{
if (!right)
{
left = true;
right = up = down = false;
}
}
else if (currentKeyState.IsKeyDown(Keys.Up))
{
if (!down)
{
up = true;
down = left = right = false;
}
}
else if (currentKeyState.IsKeyDown(Keys.Down))
{
if (!up)
{
down = true;
up = left = right = false;
}
}
if (right)
{
axios_snake/axios_snake/axios_snake WP.csproj
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{DCD6AFFE-B920-4B3C-B01C-130DA3B69271}</ProjectGuid>
<ProjectTypeGuids>{6D335F3A-9D43-41b4-9D22-F6F17C4BE596};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">Windows Phone</Platform>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>axios_snake</RootNamespace>
<AssemblyName>axios_snake</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<XnaFrameworkVersion>v4.0</XnaFrameworkVersion>
<XnaPlatform>Windows Phone</XnaPlatform>
<XnaProfile>Reach</XnaProfile>
<XnaCrossPlatformGroupID>ade2d9b7-dbb9-48bc-a588-b933b9042bfc</XnaCrossPlatformGroupID>
<XnaOutputType>Game</XnaOutputType>
<ApplicationIcon>Game.ico</ApplicationIcon>
<Thumbnail>GameThumbnail.png</Thumbnail>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<XnaRefreshLevel>1</XnaRefreshLevel>
<XapFilename Condition="$(XnaOutputType)=='Game'">$(AssemblyName).xap</XapFilename>
<SilverlightManifestTemplate Condition="$(XnaOutputType)=='Game'">Properties\AppManifest.xml</SilverlightManifestTemplate>
<XnaWindowsPhoneManifestTemplate Condition="$(XnaOutputType)=='Game'">Properties\WMAppManifest.xml</XnaWindowsPhoneManifestTemplate>
<TileImage Condition="$(XnaOutputType)=='Game'">Background.png</TileImage>
<TileTitle Condition="$(XnaOutputType)=='Game'">$(AssemblyName)</TileTitle>
<SupportedCultures />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|Windows Phone' ">
<OutputPath>bin\Windows Phone\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
<UseVSHostingProcess>false</UseVSHostingProcess>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>TRACE;WINDOWS_PHONE</DefineConstants>
<XnaCompressContent>false</XnaCompressContent>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|Windows Phone' ">
<OutputPath>bin\Windows Phone\Debug</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
<UseVSHostingProcess>false</UseVSHostingProcess>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;WINDOWS_PHONE</DefineConstants>
<XnaCompressContent>false</XnaCompressContent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\axios_snakeContent\axios_snakeContent.contentproj">
<Name>axios_snakeContent %28Content%29</Name>
<XnaReferenceType>Content</XnaReferenceType>
<Project>{664607B5-E371-44CA-A2D0-A7ECF21237A7}</Project>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="DifficultyMenu.cs" />
<Compile Include="Objects\Ball.cs" />
<Compile Include="Objects\Snake.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Program.cs" />
<Compile Include="Game1.cs" />
<Compile Include="SnakeScreen.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Axios.Windows.dll" />
<Content Include="Axios.WP7.dll" />
<Content Include="Axios.Xbox360.dll" />
<Content Include="Game.ico" />
</ItemGroup>
<ItemGroup>
<None Include="Background.png">
<XnaPlatformSpecific>true</XnaPlatformSpecific>
</None>
<None Include="PhoneGameThumb.png">
<XnaPlatformSpecific>true</XnaPlatformSpecific>
</None>
<None Include="Properties\AppManifest.xml">
<XnaPlatformSpecific>true</XnaPlatformSpecific>
</None>
<None Include="Properties\WMAppManifest.xml">
<XnaPlatformSpecific>true</XnaPlatformSpecific>
</None>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4 Client Profile %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Xna.Framework.4.0">
<Visible>False</Visible>
<ProductName>Microsoft XNA Framework Redistributable 4.0</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Reference Include="Axios.WP7, Version=1.0.1.6, Culture=neutral, processorArchitecture=MSIL" />
<Reference Include="Microsoft.Xna.Framework" />
<Reference Include="Microsoft.Xna.Framework.Game" />
<Reference Include="Microsoft.Xna.Framework.GamerServices" />
<Reference Include="Microsoft.Xna.Framework.Graphics" />
<Reference Include="Microsoft.Xna.Framework.Input.Touch, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=MSIL" />
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\Microsoft.Xna.GameStudio.targets" />
<!--
To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
axios_snake/axios_snake/axios_snake.csproj.user
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishUrlHistory />
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>en-US</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
</Project>

Archive Download the corresponding diff file

Branches

Tags

Page rendered in 0.44882s using 14 queries.