Author: darkantoine
(2010/03/20 15:02) About 2 years ago
3
<PropertyGroup>
4
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6
<ProductVersion>9.0.30729</ProductVersion>
<ProductVersion>9.0.21022</ProductVersion>
7
<SchemaVersion>2.0</SchemaVersion>
8
<ProjectGuid>{1CCA53E3-2E4E-4E01-AE31-24A59B71AA3F}</ProjectGuid>
9
<OutputType>Exe</OutputType>
...
48
<Compile Include="Monde.cs" />
49
<Compile Include="Program.cs" />
50
<Compile Include="Properties\AssemblyInfo.cs" />
51
<Compile Include="Zone.cs" />
</ItemGroup>
52
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
53
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
54
58
<Processor>TextureProcessor</Processor>
59
</Compile>
60
61
<ItemGroup>
62
<Compile Include="perso.jpg">
63
<Name>perso</Name>
64
<Importer>TextureImporter</Importer>
65
66
67
<Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" />
68
69
Other similar extension points exist, see Microsoft.Common.targets.
70
12
13
14
15
namespace IncredibleM
namespace RPG
16
{
17
class Display
18
using Microsoft.Xna.Framework.Storage;
10
11
class DisplayObject
19
20
#endregion
21
22
23
24
/// <summary>
25
/// This is the main type for your game
88
89
90
//DisplayObject balle2 = new DisplayObject(Content.Load<Texture2D>("e"));
91
92
DisplayObject perso= new DisplayObject(Content.Load<Texture2D>("perso"));
93
DisplayObject balle2 = new DisplayText("Hello World", Font1);
94
balle2.Position = new Vector2(display.viewportRect.Width/3, display.viewportRect.Height/3);
95
96
using System.Text;
using Microsoft.Xna.Framework;
class GameObject
1
using System;
2
static class Program
<Reference Include="System">
71
<Private>False</Private>
72
</Reference>
73
<Reference Include="System.Data" />
<Reference Include="System.Xml">
74
75
76
83
84
85
86
87
<Compile Include="Character.cs" />
<Compile Include="Display.cs" />
<Compile Include="DisplayObject.cs" />
<Compile Include="GameObject.cs" />
<Compile Include="Globals.cs" />
<Compile Include="Game1.cs" />
97
<Content Include="Game.ico" />
98
<ProductVersion>9.0.30729</ProductVersion><ProductVersion>9.0.21022</ProductVersion><ProjectGuid>{1CCA53E3-2E4E-4E01-AE31-24A59B71AA3F}</ProjectGuid><ProjectGuid>{1CCA53E3-2E4E-4E01-AE31-24A59B71AA3F}</ProjectGuid>namespace IncredibleMnamespace RPG{{{{namespace IncredibleMnamespace RPG{{{{namespace IncredibleMnamespace RPG{{//DisplayObject balle2 = new DisplayObject(Content.Load<Texture2D>("e"));//DisplayObject balle2 = new DisplayObject(Content.Load<Texture2D>("e"));DisplayObject perso= new DisplayObject(Content.Load<Texture2D>("perso"));DisplayObject balle2 = new DisplayText("Hello World", Font1);DisplayObject balle2 = new DisplayText("Hello World", Font1);namespace IncredibleMnamespace RPG{{{{namespace IncredibleMnamespace RPG{{{{