Axios-Snake

Axios-Snake Commit Details


Date:2012-08-22 22:03:00 (12 years 3 months ago)
Author:Elie@Elie-PC.gateway.2wire.net
Branch:default
Commit:665b15b7f8d3
Parents: e6f9ad6d8588
Message:Initial commit

Changes:
ASnake.sln (full)
Aaxios_snake/axios_snake/DifficultyMenu.cs (full)
Aaxios_snake/axios_snake/Game.ico
Aaxios_snake/axios_snake/Game1.cs (full)
Aaxios_snake/axios_snake/GameThumbnail.png
Aaxios_snake/axios_snake/Objects/Ball.cs (full)
Aaxios_snake/axios_snake/Objects/Snake.cs (full)
Aaxios_snake/axios_snake/Program.cs (full)
Aaxios_snake/axios_snake/Properties/AssemblyInfo.cs (full)
Aaxios_snake/axios_snake/SnakeScreen.cs (full)
Aaxios_snake/axios_snake/axios_snake.csproj (full)
Aaxios_snake/axios_snakeContent/Common/arrow.png
Aaxios_snake/axios_snakeContent/Common/buttons.png
Aaxios_snake/axios_snakeContent/Common/cursor.png
Aaxios_snake/axios_snakeContent/Common/gradient.png
Aaxios_snake/axios_snakeContent/Common/logo.png
Aaxios_snake/axios_snakeContent/Common/popup.png
Aaxios_snake/axios_snakeContent/Common/slider.png
Aaxios_snake/axios_snakeContent/Common/socket.png
Aaxios_snake/axios_snakeContent/Common/stick.png
Aaxios_snake/axios_snakeContent/Fonts/credits.spritefont (full)
Aaxios_snake/axios_snakeContent/Fonts/detailsFont.spritefont (full)
Aaxios_snake/axios_snakeContent/Fonts/frameRateCounterFont.spritefont (full)
Aaxios_snake/axios_snakeContent/Fonts/helptext.spritefont (full)
Aaxios_snake/axios_snakeContent/Fonts/menufont.spritefont (full)
Aaxios_snake/axios_snakeContent/Materials/blank.png
Aaxios_snake/axios_snakeContent/Materials/dots.png
Aaxios_snake/axios_snakeContent/Materials/pavement.png
Aaxios_snake/axios_snakeContent/Materials/squares.png
Aaxios_snake/axios_snakeContent/Materials/waves.png
Aaxios_snake/axios_snakeContent/Samples/alphabet.png
Aaxios_snake/axios_snakeContent/Samples/car.png
Aaxios_snake/axios_snakeContent/Samples/goo.png
Aaxios_snake/axios_snakeContent/Samples/link.png
Aaxios_snake/axios_snakeContent/Samples/object.png
Aaxios_snake/axios_snakeContent/Samples/wheel.png
Aaxios_snake/axios_snakeContent/axios_snakeContent.contentproj (full)
Aaxios_snake/axios_snakeContent/background.png
Aaxios_snake/axios_snakeContent/ball.png
Aaxios_snake/axios_snakeContent/font.spritefont (full)
Aaxios_snake/axios_snakeContent/goo.png

File differences

Snake.sln
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

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "axios_snake", "axios_snake\axios_snake\axios_snake.csproj", "{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "axios_snakeContent", "axios_snake\axios_snakeContent\axios_snakeContent.contentproj", "{664607B5-E371-44CA-A2D0-A7ECF21237A7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|Windows Phone = Debug|Windows Phone
Debug|x86 = Debug|x86
Release|Mixed Platforms = Release|Mixed Platforms
Release|Windows Phone = Release|Windows Phone
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}.Debug|Mixed Platforms.Build.0 = Debug|x86
{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}.Debug|Windows Phone.ActiveCfg = Debug|x86
{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}.Debug|Windows Phone.Build.0 = Debug|x86
{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}.Debug|x86.ActiveCfg = Debug|x86
{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}.Debug|x86.Build.0 = Debug|x86
{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}.Release|Mixed Platforms.ActiveCfg = Release|x86
{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}.Release|Mixed Platforms.Build.0 = Release|x86
{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}.Release|Windows Phone.ActiveCfg = Release|x86
{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}.Release|Windows Phone.Build.0 = Release|x86
{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}.Release|x86.ActiveCfg = Release|x86
{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}.Release|x86.Build.0 = Release|x86
{664607B5-E371-44CA-A2D0-A7ECF21237A7}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{664607B5-E371-44CA-A2D0-A7ECF21237A7}.Debug|Windows Phone.ActiveCfg = Debug|x86
{664607B5-E371-44CA-A2D0-A7ECF21237A7}.Debug|x86.ActiveCfg = Debug|x86
{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
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
axios_snake/axios_snake/DifficultyMenu.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
49
using FarseerPhysics.SamplesFramework;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using GameStateManagement;
namespace axios_snake
{
class DifficultyMenu : MenuScreen
{
public DifficultyMenu() : base("Axios Snake") { }
public override void Activate(bool instancePreserved)
{
base.Activate(instancePreserved);
MenuEntries.Add(new MenuEntry("Easy"));
MenuEntries.Add(new MenuEntry("Medium"));
MenuEntries.Add(new MenuEntry("Hard"));
}
protected override void OnSelectEntry(int entryIndex, PlayerIndex playerIndex)
{
base.OnSelectEntry(entryIndex, playerIndex);
switch (entryIndex)
{
case 0:
ScreenManager.AddScreen(new SnakeScreen(10), PlayerIndex.One);
break;
case 1:
ScreenManager.AddScreen(new SnakeScreen(15), PlayerIndex.One);
break;
case 2:
ScreenManager.AddScreen(new SnakeScreen(16), PlayerIndex.One);
break;
default:
break;
}
}
protected override void OnCancel(PlayerIndex playerIndex)
{
base.OnCancel(playerIndex);
ScreenManager.Game.Exit();
}
}
}
axios_snake/axios_snake/Game1.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
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
using FarseerPhysics.SamplesFramework;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using GameStateManagement;
namespace axios_snake
{
/// <summary>
/// This is the main type for your game
/// </summary>
public class Game1 : Microsoft.Xna.Framework.Game
{
GraphicsDeviceManager graphics;
SpriteBatch spriteBatch;
public ScreenManager ScreenManager { get; set; }
public Game1()
{
graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
graphics.IsFullScreen = false;
graphics.PreferredBackBufferWidth = 1280;
graphics.PreferredBackBufferHeight = 720;
ConvertUnits.SetDisplayUnitToSimUnitRatio(Axios.Settings.DisplayUnitToSimUnitRatio);
ScreenManager = new ScreenManager(this);
Components.Add(ScreenManager);
}
protected override void Initialize()
{
base.Initialize();
BackgroundScreen bg = new BackgroundScreen();
ScreenManager.AddScreen(bg, PlayerIndex.One);
ScreenManager.AddScreen(new MainMenu(), PlayerIndex.One);
}
protected override void LoadContent()
{
spriteBatch = new SpriteBatch(GraphicsDevice);
}
protected override void UnloadContent()
{
// TODO: Unload any non ContentManager content here
}
protected override void Update(GameTime gameTime)
{
base.Update(gameTime);
}
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
base.Draw(gameTime);
}
}
class MainMenu : MenuScreen
{
public MainMenu() : base("Axios Snake") { }
public override void Activate(bool instancePreserved)
{
base.Activate(instancePreserved);
MenuEntries.Add(new MenuEntry("New Game"));
MenuEntries.Add(new MenuEntry("Difficulty"));
MenuEntries.Add(new MenuEntry("Exit Game"));
}
protected override void OnSelectEntry(int entryIndex, PlayerIndex playerIndex)
{
base.OnSelectEntry(entryIndex, playerIndex);
switch (entryIndex)
{
case 0:
ScreenManager.AddScreen(new SnakeScreen(10), PlayerIndex.One);
break;
case 1:
ScreenManager.AddScreen(new DifficultyMenu(), PlayerIndex.One);
break;
case 2:
this.ScreenManager.Game.Exit();
break;
default:
break;
}
}
protected override void OnCancel(PlayerIndex playerIndex)
{
base.OnCancel(playerIndex);
ScreenManager.Game.Exit();
}
}
}
axios_snake/axios_snake/Objects/Ball.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
using Axios.Engine;
using FarseerPhysics.Dynamics;
using FarseerPhysics.Dynamics.Contacts;
using FarseerPhysics.Factories;
using FarseerPhysics.SamplesFramework;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace axios_snake
{
class Ball : SimpleDrawableAxiosGameObject
{
public Ball(Vector2 position)
{
this.Position = position;
}
public override void LoadContent(AxiosGameScreen gameScreen)
{
base.LoadContent(gameScreen);
this.Texture = gameScreen.ScreenManager.Game.Content.Load<Texture2D>("ball");
this.Origin = new Vector2(this.Texture.Width / 2, this.Texture.Height / 2);
this.BodyPart = BodyFactory.CreateCircle(gameScreen.World, ConvertUnits.ToSimUnits(this.Texture.Width / 2), 1f);
this.BodyPart.Position = this.Position;
this.BodyPart.BodyType = BodyType.Static;
this.BodyPart.Restitution = 1f;
this.BodyPart.Friction = 0f;
this.BodyPart.UserData = this;
this.BodyPart.OnCollision += new OnCollisionEventHandler(BodyPart_OnCollision);
}
bool BodyPart_OnCollision(Fixture fixtureA, Fixture fixtureB, Contact contact)
{
this.BodyPart.IsStatic = false;
this.Remove();
this.Position = Vector2.Zero;
return true;
}
}
}
axios_snake/axios_snake/Objects/Snake.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
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
using Axios.Engine;
using FarseerPhysics.Dynamics;
using FarseerPhysics.Dynamics.Contacts;
using FarseerPhysics.Factories;
using FarseerPhysics.SamplesFramework;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.Collections.Generic;
namespace axios_snake
{
class Snake : SimpleDrawableAxiosGameObject
{
public Snake() { }
private List<Vector2> vector;
public Snake(Vector2 position)
{
this.Position = position;
vector = new List<Vector2>();
}
public override void LoadContent(AxiosGameScreen gameScreen)
{
base.LoadContent(gameScreen);
this.Texture = gameScreen.ScreenManager.Game.Content.Load<Texture2D>("goo");
this.Origin = new Vector2(this.Texture.Width / 2, this.Texture.Height / 2);
this.BodyPart = BodyFactory.CreateCircle(gameScreen.World, ConvertUnits.ToSimUnits(this.Texture.Width / 2), 1f);
this.BodyPart.Position = this.Position;
this.BodyPart.BodyType = BodyType.Dynamic;
this.BodyPart.Friction = 0f;
this.BodyPart.Restitution = 1f;
this.BodyPart.UserData = this;
this.BodyPart.OnCollision += new OnCollisionEventHandler(BodyPart_OnCollision);
this.BodyPart.LinearVelocity = Vector2.Zero;
this.ConstantVelocity = ConvertUnits.ToSimUnits(0f, 0f);
this.ApplyConstantVelocity = true;
}
bool BodyPart_OnCollision(Fixture fixtureA, Fixture fixtureB, Contact contact)
{
return true;
}
//To avoid having the snakes on top of each other, I add 4 values to delay the snake
public void initPath(Vector2 defaultPath, int snakeSpeed)
{
switch (snakeSpeed)
{
case 10:
vector.Add(defaultPath);
vector.Add(defaultPath);
vector.Add(defaultPath);
vector.Add(defaultPath);
break;
case 15:
vector.Add(defaultPath);
vector.Add(defaultPath);
vector.Add(defaultPath);
break;
case 16:
vector.Add(defaultPath);
vector.Add(defaultPath);
vector.Add(defaultPath);
break;
}
}
//The game is constantly grabbing the path of the snake, then puts the value into a temp position and removes the first value in the vector list
public void setPath(Vector2 vec)
{
vector.Add(vec);
}
public Vector2 getPath()
{
Vector2 temp = vector[0];
return temp;
}
public void removePath()
{
vector.RemoveAt(0);
}
//****//
}
}
axios_snake/axios_snake/Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameStateManagement;
using Microsoft.Xna.Framework;
namespace axios_snake
{
static class Program
{
static void Main(string[] args)
{
using (Game1 game = new Game1())
{
game.Run();
}
}
}
}
axios_snake/axios_snake/Properties/AssemblyInfo.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
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("axios_snake")]
[assembly: AssemblyProduct("axios_snake")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type. Only Windows
// assemblies support COM.
[assembly: ComVisible(false)]
// On Windows, the following GUID is for the ID of the typelib if this
// project is exposed to COM. On other platforms, it unique identifies the
// title storage container when deploying this assembly to the device.
[assembly: Guid("16365f46-a8ec-4ce8-b401-f1427bae1ae8")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
axios_snake/axios_snake/SnakeScreen.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
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
using Axios;
using Axios.Engine;
using FarseerPhysics;
using FarseerPhysics.SamplesFramework;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using GameStateManagement;
using System;
using System.Collections.Generic;
namespace axios_snake
{
class SnakeScreen : AxiosGameScreen
{
private Ball ball;
private KeyboardState currentKeyState;
private List<Snake> snake;
private SpriteFont scoreFont;
private Vector2 defaultSnake;
private Vector2 snakeLocation;
private bool right, left, up, down;
private bool play;
private int snakeSpeed;
private const int ballSize = 50;
private const int snakeSize = 50;
private string strScore;
public SnakeScreen(int snakeSpeed)
{
this.HasVirtualStick = true;
this.HasCursor = false;
EnableCameraControl = false;
TransitionOnTime = TimeSpan.FromSeconds(1.5);
TransitionOffTime = TimeSpan.FromSeconds(0.5);
this.snakeSpeed = snakeSpeed;
}
public override void Activate(bool instancePreserved)
{
base.Activate(instancePreserved);
init();
}
private void init()
{
snakeLocation = new Vector2();
defaultSnake = new Vector2();
defaultSnake = ConvertUnits.ToSimUnits(((-1 * (this.ScreenManager.GraphicsDevice.Viewport.Width / 2)) - snakeSize), ((-1 * (this.ScreenManager.GraphicsDevice.Viewport.Height / 2)) - snakeSize));
snake = new List<Snake>();
snake.Add(new Snake(ConvertUnits.ToSimUnits(0,0)));
AddGameObject(snake[0]);
snake[0].initPath(defaultSnake, snakeSpeed);
play = true;
right = left = down = up = false;
ball = new Ball(randomNum());
AddGameObject(ball);
scoreFont = ScreenManager.Game.Content.Load<SpriteFont>("font");
strScore = (snake.Count - 1).ToString();
}
//Used to place the ball around screen
private Vector2 randomNum()
{
int randx = (this.ScreenManager.GraphicsDevice.Viewport.Width / 2) - ballSize;
int randy = (this.ScreenManager.GraphicsDevice.Viewport.Height / 2) - ballSize;
System.Random random = new System.Random();
Vector2 randNum = new Vector2(ConvertUnits.ToSimUnits(random.Next(-1 * randx, randx)), ConvertUnits.ToSimUnits(random.Next(-1 * randy, randy)));
return randNum;
}
private void resetGame()
{
play = false;
snake.Clear();
this.RemoveAll();
init();
}
public override void Draw(GameTime gameTime)
{
base.Draw(gameTime);
ScreenManager.SpriteBatch.Begin();
ScreenManager.SpriteBatch.DrawString(scoreFont, strScore, new Vector2(this.ScreenManager.GraphicsDevice.Viewport.Width - 40, 0), Color.Aqua);
ScreenManager.SpriteBatch.End();
}
public override void Update(GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)
{
base.Update(gameTime, otherScreenHasFocus, coveredByOtherScreen);
if (play)
{
strScore = (snake.Count - 1).ToString();
//if snake hits the ball
if (ball.Position == Vector2.Zero)
{
ball = new Ball(randomNum());
AddGameObject(ball);
snake.Add(new Snake(Vector2.Zero));
snake[snake.Count - 1].initPath(defaultSnake, snakeSpeed);
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)
{
if (snake.Count > 1)
snake[0].setPath(snakeLocation);
snakeLocation += ConvertUnits.ToSimUnits(snakeSpeed, 0);
snake[0].BodyPart.Position = snakeLocation;
}
if (left)
{
if (snake.Count > 1)
snake[0].setPath(snakeLocation);
snakeLocation += ConvertUnits.ToSimUnits(-snakeSpeed, 0);
snake[0].BodyPart.Position = snakeLocation;
}
if (up)
{
if (snake.Count > 1)
snake[0].setPath(snakeLocation);
snakeLocation += ConvertUnits.ToSimUnits(0, -snakeSpeed);
snake[0].BodyPart.Position = snakeLocation;
}
if (down)
{
if (snake.Count > 1)
snake[0].setPath(snakeLocation);
snakeLocation += ConvertUnits.ToSimUnits(0, snakeSpeed);
snake[0].BodyPart.Position = snakeLocation;
}
//Border Check
if (ConvertUnits.ToDisplayUnits(snake[0].BodyPart.Position.X) > this.ScreenManager.GraphicsDevice.Viewport.Width / 2 || ConvertUnits.ToDisplayUnits(snake[0].BodyPart.Position.Y) > this.ScreenManager.GraphicsDevice.Viewport.Height / 2 || ConvertUnits.ToDisplayUnits(snake[0].BodyPart.Position.X) < (-1 * ( this.ScreenManager.GraphicsDevice.Viewport.Width / 2)) || ConvertUnits.ToDisplayUnits(snake[0].BodyPart.Position.Y) < (-1 * ( this.ScreenManager.GraphicsDevice.Viewport.Height / 2)))
resetGame();
//Code to make the snake follow the same path the head took
for (int i = 1; i < snake.Count; i++)
{
snake[i].BodyPart.Position = snake[i - 1].getPath();
if((i + 1) != snake.Count)
snake[i].setPath(snake[i - 1].getPath());
if ((((snake[0].getPath().X < snake[i].getPath().X + .7) && (snake[0].getPath().X > snake[i].getPath().X - .7)) && ((snake[0].getPath().Y < snake[i].getPath().Y + .7) && (snake[0].getPath().Y > snake[i].getPath().Y - .7))) && (snake[i].getPath() != defaultSnake))
resetGame();
else
snake[i - 1].removePath();
}
}
}
}
}
axios_snake/axios_snake/axios_snake.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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{15D44C24-299F-40EF-9AE9-7DA117D5AA0B}</ProjectGuid>
<ProjectTypeGuids>{6D335F3A-9D43-41b4-9D22-F6F17C4BE596};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<OutputType>WinExe</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</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>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\x86\Debug</OutputPath>
<DefineConstants>DEBUG;TRACE;WINDOWS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
<UseVSHostingProcess>false</UseVSHostingProcess>
<PlatformTarget>x86</PlatformTarget>
<XnaCompressContent>false</XnaCompressContent>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\x86\Release</OutputPath>
<DefineConstants>TRACE;WINDOWS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
<UseVSHostingProcess>false</UseVSHostingProcess>
<PlatformTarget>x86</PlatformTarget>
<XnaCompressContent>true</XnaCompressContent>
</PropertyGroup>
<ItemGroup>
<Reference Include="Axios.Windows">
<HintPath>..\..\Snake\Axios.Windows.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
<Reference Include="Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
<Reference Include="Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
<Reference Include="Microsoft.Xna.Framework.GamerServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Net" />
</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" />
<Content Include="GameThumbnail.png">
<XnaPlatformSpecific>true</XnaPlatformSpecific>
</Content>
</ItemGroup>
<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>
<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 />
<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_snakeContent/Fonts/credits.spritefont
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
<?xml version="1.0" encoding="utf-8"?>
<!--
This file contains an xml description of a font, and will be read by the XNA
Framework Content Pipeline. Follow the comments to customize the appearance
of the font in your game, and to change the characters which are available to draw
with.
-->
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
<Asset Type="Graphics:FontDescription">
<!--
Modify this string to change the font that will be imported.
-->
<FontName>Calibri</FontName>
<!--
Size is a float value, measured in points. Modify this value to change
the size of the font.
-->
<Size>15</Size>
<!--
Spacing is a float value, measured in pixels. Modify this value to change
the amount of spacing in between characters.
-->
<Spacing>0</Spacing>
<!--
UseKerning controls the layout of the font. If this value is true, kerning information
will be used when placing characters.
-->
<UseKerning>true</UseKerning>
<!--
Style controls the style of the font. Valid entries are "Regular", "Bold", "Italic",
and "Bold, Italic", and are case sensitive.
-->
<Style>Regular</Style>
<!--
If you uncomment this line, the default character will be substituted if you draw
or measure text that contains characters which were not included in the font.
-->
<!-- <DefaultCharacter>*</DefaultCharacter> -->
<!--
CharacterRegions control what letters are available in the font. Every
character from Start to End will be built and made available for drawing. The
default range is from 32, (ASCII space), to 126, ('~'), covering the basic Latin
character set. The characters are ordered according to the Unicode standard.
See the documentation for more information.
-->
<CharacterRegions>
<CharacterRegion>
<Start>&#32;</Start>
<End>&#126;</End>
</CharacterRegion>
</CharacterRegions>
</Asset>
</XnaContent>
axios_snake/axios_snakeContent/Fonts/detailsFont.spritefont
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="utf-8"?>
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
<Asset Type="Graphics:FontDescription">
<FontName>Courier New</FontName>
<Size>10</Size>
<Spacing>1</Spacing>
<Style>Bold</Style>
<CharacterRegions>
<CharacterRegion>
<Start>&#32;</Start>
<End>&#126;</End>
</CharacterRegion>
</CharacterRegions>
</Asset>
</XnaContent>
axios_snake/axios_snakeContent/Fonts/frameRateCounterFont.spritefont
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
<?xml version="1.0" encoding="utf-8"?>
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
<Asset Type="Graphics:FontDescription">
<FontName>Arial</FontName>
<Size>10</Size>
<Spacing>2</Spacing>
<Style>Bold</Style>
<CharacterRegions>
<CharacterRegion>
<Start>f</Start>
<End>f</End>
</CharacterRegion>
<CharacterRegion>
<Start>p</Start>
<End>p</End>
</CharacterRegion>
<CharacterRegion>
<Start>t</Start>
<End>t</End>
</CharacterRegion>
<CharacterRegion>
<Start>n</Start>
<End>n</End>
</CharacterRegion>
<CharacterRegion>
<Start>s</Start>
<End>s</End>
</CharacterRegion>
<CharacterRegion>
<Start>:</Start>
<End>:</End>
</CharacterRegion>
<CharacterRegion>
<Start> </Start>
<End> </End>
</CharacterRegion>
<CharacterRegion>
<Start>0</Start>
<End>9</End>
</CharacterRegion>
<CharacterRegion>
<Start>.</Start>
<End>.</End>
</CharacterRegion>
</CharacterRegions>
</Asset>
</XnaContent>
axios_snake/axios_snakeContent/Fonts/helptext.spritefont
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
<?xml version="1.0" encoding="utf-8"?>
<!--
This file contains an xml description of a font, and will be read by the XNA
Framework Content Pipeline. Follow the comments to customize the appearance
of the font in your game, and to change the characters which are available to draw
with.
-->
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
<Asset Type="Graphics:FontDescription">
<!--
Modify this string to change the font that will be imported.
-->
<FontName>Segoe UI Mono</FontName>
<!--
Size is a float value, measured in points. Modify this value to change
the size of the font.
-->
<Size>8</Size>
<!--
Spacing is a float value, measured in pixels. Modify this value to change
the amount of spacing in between characters.
-->
<Spacing>0</Spacing>
<!--
UseKerning controls the layout of the font. If this value is true, kerning information
will be used when placing characters.
-->
<UseKerning>true</UseKerning>
<!--
Style controls the style of the font. Valid entries are "Regular", "Bold", "Italic",
and "Bold, Italic", and are case sensitive.
-->
<Style>Regular</Style>
<!--
If you uncomment this line, the default character will be substituted if you draw
or measure text that contains characters which were not included in the font.
-->
<!-- <DefaultCharacter>*</DefaultCharacter> -->
<!--
CharacterRegions control what letters are available in the font. Every
character from Start to End will be built and made available for drawing. The
default range is from 32, (ASCII space), to 126, ('~'), covering the basic Latin
character set. The characters are ordered according to the Unicode standard.
See the documentation for more information.
-->
<CharacterRegions>
<CharacterRegion>
<Start>&#32;</Start>
<End>&#126;</End>
</CharacterRegion>
</CharacterRegions>
</Asset>
</XnaContent>
axios_snake/axios_snakeContent/Fonts/menufont.spritefont
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="utf-8"?>
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
<Asset Type="Graphics:FontDescription">
<FontName>Segoe UI Mono</FontName>
<Size>23</Size>
<Spacing>2</Spacing>
<Style>Regular</Style>
<CharacterRegions>
<CharacterRegion>
<Start>&#32;</Start>
<End>&#126;</End>
</CharacterRegion>
</CharacterRegions>
</Asset>
</XnaContent>
axios_snake/axios_snakeContent/axios_snakeContent.contentproj
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{664607B5-E371-44CA-A2D0-A7ECF21237A7}</ProjectGuid>
<ProjectTypeGuids>{96E2B04D-8817-42c6-938A-82C39BA4D311};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<XnaFrameworkVersion>v4.0</XnaFrameworkVersion>
<OutputPath>bin\$(Platform)\$(Configuration)</OutputPath>
<ContentRootDirectory>Content</ContentRootDirectory>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup>
<RootNamespace>axios_snakeContent</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Xna.Framework.Content.Pipeline.EffectImporter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=MSIL" />
<Reference Include="Microsoft.Xna.Framework.Content.Pipeline.FBXImporter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=MSIL" />
<Reference Include="Microsoft.Xna.Framework.Content.Pipeline.TextureImporter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=MSIL" />
<Reference Include="Microsoft.Xna.Framework.Content.Pipeline.XImporter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=MSIL" />
<Reference Include="Microsoft.Xna.Framework.Content.Pipeline.AudioImporters, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=MSIL" />
<Reference Include="Microsoft.Xna.Framework.Content.Pipeline.VideoImporters, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=MSIL" />
</ItemGroup>
<ItemGroup>
<Compile Include="Common\arrow.png">
<Name>arrow</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Common\buttons.png">
<Name>buttons</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Common\cursor.png">
<Name>cursor</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Common\gradient.png">
<Name>gradient</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Common\logo.png">
<Name>logo</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Common\popup.png">
<Name>popup</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Common\slider.png">
<Name>slider</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Common\socket.png">
<Name>socket</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Common\stick.png">
<Name>stick</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Materials\blank.png">
<Name>blank</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Materials\dots.png">
<Name>dots</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Materials\pavement.png">
<Name>pavement</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Materials\squares.png">
<Name>squares</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Materials\waves.png">
<Name>waves</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Samples\alphabet.png">
<Name>alphabet</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Samples\car.png">
<Name>car</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Samples\goo.png">
<Name>goo</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Samples\link.png">
<Name>link</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Samples\object.png">
<Name>object</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
<Compile Include="Samples\wheel.png">
<Name>wheel</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="font.spritefont">
<Name>font</Name>
<Importer>FontDescriptionImporter</Importer>
<Processor>FontDescriptionProcessor</Processor>
</Compile>
<Compile Include="Fonts\credits.spritefont">
<Name>credits</Name>
<Importer>FontDescriptionImporter</Importer>
<Processor>FontDescriptionProcessor</Processor>
</Compile>
<Compile Include="Fonts\detailsFont.spritefont">
<Name>detailsFont</Name>
<Importer>FontDescriptionImporter</Importer>
<Processor>FontDescriptionProcessor</Processor>
</Compile>
<Compile Include="Fonts\frameRateCounterFont.spritefont">
<Name>frameRateCounterFont</Name>
<Importer>FontDescriptionImporter</Importer>
<Processor>FontDescriptionProcessor</Processor>
</Compile>
<Compile Include="Fonts\helptext.spritefont">
<Name>helptext</Name>
<Importer>FontDescriptionImporter</Importer>
<Processor>FontDescriptionProcessor</Processor>
</Compile>
<Compile Include="Fonts\menufont.spritefont">
<Name>menufont</Name>
<Importer>FontDescriptionImporter</Importer>
<Processor>FontDescriptionProcessor</Processor>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="background.png">
<Name>background</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="ball.png">
<Name>ball</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="goo.png">
<Name>goo</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.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_snakeContent/font.spritefont
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
<?xml version="1.0" encoding="utf-8"?>
<!--
This file contains an xml description of a font, and will be read by the XNA
Framework Content Pipeline. Follow the comments to customize the appearance
of the font in your game, and to change the characters which are available to draw
with.
-->
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
<Asset Type="Graphics:FontDescription">
<!--
Modify this string to change the font that will be imported.
-->
<FontName>Arial</FontName>
<!--
Size is a float value, measured in points. Modify this value to change
the size of the font.
-->
<Size>16</Size>
<!--
Spacing is a float value, measured in pixels. Modify this value to change
the amount of spacing in between characters.
-->
<Spacing>0</Spacing>
<!--
UseKerning controls the layout of the font. If this value is true, kerning information
will be used when placing characters.
-->
<UseKerning>true</UseKerning>
<!--
Style controls the style of the font. Valid entries are "Regular", "Bold", "Italic",
and "Bold, Italic", and are case sensitive.
-->
<Style>Bold</Style>
<!--
If you uncomment this line, the default character will be substituted if you draw
or measure text that contains characters which were not included in the font.
-->
<!-- <DefaultCharacter>*</DefaultCharacter> -->
<!--
CharacterRegions control what letters are available in the font. Every
character from Start to End will be built and made available for drawing. The
default range is from 32, (ASCII space), to 126, ('~'), covering the basic Latin
character set. The characters are ordered according to the Unicode standard.
See the documentation for more information.
-->
<CharacterRegions>
<CharacterRegion>
<Start>&#32;</Start>
<End>&#126;</End>
</CharacterRegion>
</CharacterRegions>
</Asset>
</XnaContent>

Archive Download the corresponding diff file

Branches

Tags

Page rendered in 0.50641s using 13 queries.