- Timestamp:
- 2011-06-17 17:31:24 (12 years ago)
- Location:
- 2011/23/sijoseha
- Files:
-
- 9 added
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/Fera Proelia.csproj
r2079 r2118 87 87 <ItemGroup> 88 88 <Compile Include="Beast.cs" /> 89 <Compile Include="GameScreen.cs" /> 90 <Compile Include="HUD.cs" /> 89 91 <Compile Include="Properties\AssemblyInfo.cs" /> 90 92 <None Include="Properties\AppManifest.xml"> -
2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/obj/Windows Phone/Debug/XapCacheFile.xml
r2079 r2118 1 <xapCache source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Fera Proelia.xap" wasSigned="False" certificateThumbprint="" TimeStampUrl="" lastWriteTime="1 6.6.2011 23:15:54">2 <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\Background.png" archivePath="Background.png" lastWriteTime="1 6.6.2011 22:26:33" />3 <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\GameThumbnail.png" archivePath="GameThumbnail.png" lastWriteTime="1 6.6.2011 22:26:33" />4 <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\AppManifest.xaml" archivePath="AppManifest.xaml" lastWriteTime="1 6.6.2011 22:27:26" />5 <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\obj\Windows Phone\Debug\WMAppManifest.xml" archivePath="WMAppManifest.xml" lastWriteTime="1 6.6.2011 22:27:26" />6 <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Fera Proelia.dll" archivePath="Fera Proelia.dll" lastWriteTime="1 6.6.2011 23:15:54" />7 <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Content\debugImage.xnb" archivePath="Content\debugImage.xnb" lastWriteTime="1 6.6.2011 22:42:25" />1 <xapCache source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Fera Proelia.xap" wasSigned="False" certificateThumbprint="" TimeStampUrl="" lastWriteTime="17.6.2011 9:42:42"> 2 <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\Background.png" archivePath="Background.png" lastWriteTime="17.6.2011 8:19:55" /> 3 <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\GameThumbnail.png" archivePath="GameThumbnail.png" lastWriteTime="17.6.2011 8:19:55" /> 4 <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\AppManifest.xaml" archivePath="AppManifest.xaml" lastWriteTime="17.6.2011 9:42:42" /> 5 <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\obj\Windows Phone\Debug\WMAppManifest.xml" archivePath="WMAppManifest.xml" lastWriteTime="17.6.2011 8:19:55" /> 6 <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Fera Proelia.dll" archivePath="Fera Proelia.dll" lastWriteTime="17.6.2011 9:42:41" /> 7 <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Content\debugImage.xnb" archivePath="Content\debugImage.xnb" lastWriteTime="17.6.2011 8:26:01" /> 8 8 </xapCache> -
2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera ProeliaContent/obj/Windows Phone/Debug/ContentPipeline.xml
r2079 r2118 9 9 <Options>None</Options> 10 10 <Output>D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Content\debugImage.xnb</Output> 11 <Time>2011-06-1 6T22:37:48.8337831+03:00</Time>11 <Time>2011-06-17T08:19:54.7030248+03:00</Time> 12 12 </Item> 13 13 <BuildSuccessful>true</BuildSuccessful> … … 25 25 <Assembly> 26 26 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 27 <Value>2010-08-23T1 2:41:18+03:00</Value>27 <Value>2010-08-23T13:41:18+03:00</Value> 28 28 </Assembly> 29 29 <Assembly> 30 30 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 31 <Value>2010-08-23T1 2:41:18+03:00</Value>31 <Value>2010-08-23T13:41:18+03:00</Value> 32 32 </Assembly> 33 33 <Assembly> 34 34 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 35 <Value>2010-08-23T1 2:41:18+03:00</Value>35 <Value>2010-08-23T13:41:18+03:00</Value> 36 36 </Assembly> 37 37 <Assembly> 38 38 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 39 <Value>2010-08-23T1 2:41:18+03:00</Value>39 <Value>2010-08-23T13:41:18+03:00</Value> 40 40 </Assembly> 41 41 <Assembly> 42 42 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 43 <Value>2010-08-23T1 2:41:18+03:00</Value>43 <Value>2010-08-23T13:41:18+03:00</Value> 44 44 </Assembly> 45 45 <Assembly> 46 46 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 47 <Value>2010-08-23T1 2:41:18+03:00</Value>47 <Value>2010-08-23T13:41:18+03:00</Value> 48 48 </Assembly> 49 49 <Assembly> 50 50 <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 51 <Value>201 0-10-04T19:11:18.5288743+03:00</Value>51 <Value>2011-01-07T11:35:54.8184098+02:00</Value> 52 52 </Assembly> 53 53 </Assemblies> -
2011/23/sijoseha/SpaceWorld/SpaceWorld/SpaceWorld/Game1.cs
r2044 r2118 15 15 /// This is the main type for your game 16 16 /// </summary> 17 public class Game1: Microsoft.Xna.Framework.Game17 public class SpaceWorld : Microsoft.Xna.Framework.Game 18 18 { 19 19 GraphicsDeviceManager graphics; … … 22 22 23 23 List<WorldPoint> points; 24 Shield shield; 25 Texture2D shieldKuva; 24 26 //WorldPoint point, point2, point3, point4; 25 27 BasicEffect effect; … … 27 29 Matrix viewMatrix, projectionMatrix; 28 30 29 public Game1()31 public SpaceWorld() 30 32 { 31 33 graphics = new GraphicsDeviceManager(this); … … 41 43 protected override void Initialize() 42 44 { 43 // TODO: Add your initialization logic here44 45 IsMouseVisible = true; 45 46 base.Initialize(); … … 59 60 60 61 points = new List<WorldPoint>(); 62 shieldKuva = Content.Load<Texture2D>("shieldImage"); 63 shield = new Shield(); 64 shield.shieldTexture = shieldKuva; 65 61 66 62 67 Random r = new Random(); … … 75 80 //projectionMatrix = Matrix.CreateOrthographic(device.Viewport.Width, device.Viewport.Height, 0.1f, 100); 76 81 viewMatrix = Matrix.CreateLookAt(new Vector3(0, 0, 20), Vector3.Zero, Vector3.Up); 82 /*viewMatrix = Matrix.CreateTranslation(new Vector3(0, 0, 0)) * 83 Matrix.CreateScale(1) * 84 Matrix.CreateTranslation(new Vector3( 85 device.Viewport.Width * 0.5f, 86 device.Viewport.Height * 0.5f, 87 0));*/ 77 88 // TODO: use this.Content to load your game content here 78 89 } … … 98 109 this.Exit(); 99 110 111 MouseState ms = Mouse.GetState(); 112 113 Vector2 mPos = new Vector2( 114 (float)(ms.X - device.Viewport.Width/2)/(20*device.Viewport.AspectRatio), 115 -(float)(ms.Y - device.Viewport.Height / 2) / (20 * device.Viewport.AspectRatio)); 116 117 /*if (Vector2.Distance(mPos, shield.Position) < 3.0f) 118 for (int i = 0; i < shield.vertices.Length; i++) 119 { 120 if (Vector2.Distance(Vector3to2(shield.vertices[i].Position), mPos) < 0.1f) 121 122 }*/ 100 123 // TODO: Add your update logic here 101 124 … … 112 135 RasterizerState rs = new RasterizerState(); 113 136 rs.FillMode = FillMode.WireFrame; 137 SamplerState ss = new SamplerState(); 138 ss.AddressW = TextureAddressMode.Clamp; 139 ss.AddressU = TextureAddressMode.Clamp; 140 ss.AddressV = TextureAddressMode.Clamp; 141 device.SamplerStates[0] = ss; 142 //device.RasterizerState = rs; 143 effect.LightingEnabled = false; 114 144 115 //device.RasterizerState = rs; 145 effect.TextureEnabled = false; 146 //effect.Texture = shieldKuva; 116 147 effect.Projection = projectionMatrix; 117 148 effect.VertexColorEnabled = true; … … 125 156 point.Draw(device); 126 157 } 158 127 159 } 160 effect.TextureEnabled = true; 161 effect.VertexColorEnabled = false; 162 effect.EnableDefaultLighting(); 163 foreach (EffectPass pass in effect.CurrentTechnique.Passes) 164 { 165 pass.Apply(); 166 shield.Draw(device); 167 } 168 base.Draw(gameTime); 169 } 128 170 129 130 131 base.Draw(gameTime);171 private Vector2 Vector3to2(Vector3 from) 172 { 173 return new Vector2(from.X, from.Y); 132 174 } 133 175 } -
2011/23/sijoseha/SpaceWorld/SpaceWorld/SpaceWorld/Program.cs
r2044 r2118 11 11 static void Main(string[] args) 12 12 { 13 using ( Game1 game = new Game1())13 using (SpaceWorld game = new SpaceWorld()) 14 14 { 15 15 game.Run(); -
2011/23/sijoseha/SpaceWorld/SpaceWorld/SpaceWorld/SpaceWorld.csproj
r2044 r2118 14 14 <XnaFrameworkVersion>v4.0</XnaFrameworkVersion> 15 15 <XnaPlatform>Windows</XnaPlatform> 16 <XnaProfile> HiDef</XnaProfile>16 <XnaProfile>Reach</XnaProfile> 17 17 <XnaCrossPlatformGroupID>ce0ffb83-5980-44f2-88de-06de9b3ac0ff</XnaCrossPlatformGroupID> 18 18 <XnaOutputType>Game</XnaOutputType> … … 111 111 <Compile Include="Program.cs" /> 112 112 <Compile Include="Game1.cs" /> 113 <Compile Include="Shield.cs" /> 113 114 <Compile Include="WorldPoint.cs" /> 114 115 </ItemGroup> -
2011/23/sijoseha/SpaceWorld/SpaceWorld/SpaceWorld/WorldPoint.cs
r2044 r2118 15 15 private int radius = 1; 16 16 private int numberOfPoints = 24; 17 18 //public Game Game { get; set; } 17 19 18 20 private VertexPositionColor[] vertices; 19 21 private int[] indices; 22 private short[] shortIndices; 20 23 21 24 public WorldPoint(Vector2 position) 22 25 { 26 23 27 Position = position; 24 28 CollisionBoundaries = new Rectangle((int)Position.X - 5, (int)Position.Y - 5, radius*2, radius*2); … … 45 49 { 46 50 //double radii = 2 * Math.PI / numberOfPoints; 47 indices = new int[(numberOfPoints+1) * 3]; 51 //indices = new int[(numberOfPoints+1) * 3]; 52 shortIndices = new short[(numberOfPoints + 1) * 3]; 48 53 int counter = 0; 49 for ( int i = 0; i < numberOfPoints+1; i++)54 for (short i = 0; i < numberOfPoints+1; i++) 50 55 { 51 int center = 0; 52 int first = i; 53 int second = i + 1; 56 //int center = 0; 57 //int first = i; 58 //int second = i + 1; 59 short center = 0; 60 short first = i; 61 short second = (short)(i + 1); 54 62 if (second >= numberOfPoints+1) 55 63 second = 1; 56 64 57 indices[counter++] = center; 58 indices[counter++] = first; 59 indices[counter++] = second; 65 shortIndices[counter++] = center; 66 shortIndices[counter++] = first; 67 shortIndices[counter++] = second; 68 //indices[counter++] = center; 69 //indices[counter++] = first; 70 //indices[counter++] = second; 60 71 } 61 72 } … … 63 74 public void Draw(GraphicsDevice device) 64 75 { 65 device.DrawUserIndexedPrimitives(PrimitiveType.TriangleList, vertices, 0, vertices.Length, indices, 0, vertices.Length);76 device.DrawUserIndexedPrimitives(PrimitiveType.TriangleList, vertices, 0, vertices.Length, shortIndices, 0, vertices.Length); 66 77 //device.DrawUserPrimitives(PrimitiveType.TriangleStrip, vertices, 0, numberOfPoints/3); 67 78 } -
2011/23/sijoseha/SpaceWorld/SpaceWorld/SpaceWorld/obj/x86/Debug/Microsoft.Xna.Framework.RuntimeProfile.txt
r2044 r2118 1 Windows.v4.0. HiDef1 Windows.v4.0.Reach -
2011/23/sijoseha/SpaceWorld/SpaceWorld/SpaceWorld/obj/x86/Debug/SpaceWorld.csproj.FileListAbsolute.txt
r2044 r2118 5 5 D:\Projects\doubleUland\SpaceWorld\SpaceWorld\SpaceWorld\obj\x86\Debug\SpaceWorld.exe 6 6 D:\Projects\doubleUland\SpaceWorld\SpaceWorld\SpaceWorld\obj\x86\Debug\SpaceWorld.pdb 7 D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorld\bin\x86\Debug\SpaceWorld.exe 8 D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorld\bin\x86\Debug\SpaceWorld.pdb 9 D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorld\obj\x86\Debug\ResolveAssemblyReference.cache 10 D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorld\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 11 D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorld\obj\x86\Debug\SpaceWorld.exe 12 D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorld\obj\x86\Debug\SpaceWorld.pdb 13 D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorld\bin\x86\Debug\Content\shieldImage.xnb -
2011/23/sijoseha/SpaceWorld/SpaceWorld/SpaceWorldContent/SpaceWorldContent.contentproj
r2044 r2118 42 42 </Reference> 43 43 </ItemGroup> 44 <ItemGroup> 45 <Compile Include="shieldImage.png"> 46 <Name>shieldImage</Name> 47 <Importer>TextureImporter</Importer> 48 <Processor>TextureProcessor</Processor> 49 </Compile> 50 </ItemGroup> 44 51 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 45 52 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2011/23/sijoseha/SpaceWorld/SpaceWorld/SpaceWorldContent/obj/x86/Debug/ContentPipeline.xml
r2044 r2118 2 2 <XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 3 3 <Asset Type="Pipeline:BuildItemCollection"> 4 <Item> 5 <Source>shieldImage.png</Source> 6 <Name>shieldImage</Name> 7 <Importer>TextureImporter</Importer> 8 <Processor>TextureProcessor</Processor> 9 <Options>None</Options> 10 <Output>D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorld\bin\x86\Debug\Content\shieldImage.xnb</Output> 11 <Time>2011-06-16T13:10:16.6931009+03:00</Time> 12 </Item> 4 13 <BuildSuccessful>true</BuildSuccessful> 5 14 <Settings> 6 15 <TargetPlatform>Windows</TargetPlatform> 7 <TargetProfile> HiDef</TargetProfile>16 <TargetProfile>Reach</TargetProfile> 8 17 <BuildConfiguration>Debug</BuildConfiguration> 9 18 <CompressContent>false</CompressContent> 10 <RootDirectory>D:\ Projects\doubleUland\SpaceWorld\SpaceWorld\SpaceWorldContent\</RootDirectory>11 <LoggerRootDirectory>D:\ Projects\doubleUland\SpaceWorld\SpaceWorld\SpaceWorld\</LoggerRootDirectory>12 <IntermediateDirectory>D:\ Projects\doubleUland\SpaceWorld\SpaceWorld\SpaceWorldContent\obj\x86\Debug\</IntermediateDirectory>13 <OutputDirectory>D:\ Projects\doubleUland\SpaceWorld\SpaceWorld\SpaceWorld\bin\x86\Debug\Content\</OutputDirectory>19 <RootDirectory>D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorldContent\</RootDirectory> 20 <LoggerRootDirectory>D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorld\</LoggerRootDirectory> 21 <IntermediateDirectory>D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorldContent\obj\x86\Debug\</IntermediateDirectory> 22 <OutputDirectory>D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorld\bin\x86\Debug\Content\</OutputDirectory> 14 23 </Settings> 15 24 <Assemblies> 16 25 <Assembly> 26 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 27 <Value>2010-08-23T13:41:18+03:00</Value> 28 </Assembly> 29 <Assembly> 30 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 31 <Value>2010-08-23T13:41:18+03:00</Value> 32 </Assembly> 33 <Assembly> 34 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 35 <Value>2010-08-23T13:41:18+03:00</Value> 36 </Assembly> 37 <Assembly> 38 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 39 <Value>2010-08-23T13:41:18+03:00</Value> 40 </Assembly> 41 <Assembly> 42 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 43 <Value>2010-08-23T13:41:18+03:00</Value> 44 </Assembly> 45 <Assembly> 46 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 47 <Value>2010-08-23T13:41:18+03:00</Value> 48 </Assembly> 49 <Assembly> 17 50 <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 18 <Value>201 0-10-04T19:11:18.5288743+03:00</Value>51 <Value>2011-01-07T11:35:54.8184098+02:00</Value> 19 52 </Assembly> 20 53 </Assemblies> -
2011/23/sijoseha/SpaceWorld/SpaceWorld/SpaceWorldContent/obj/x86/Debug/SpaceWorldContent.contentproj.FileListAbsolute.txt
r2044 r2118 1 1 D:\Projects\doubleUland\SpaceWorld\SpaceWorld\SpaceWorldContent\obj\x86\Debug\ResolveAssemblyReference.cache 2 D:\Temp\sijoseha\SpaceWorld\SpaceWorld\SpaceWorldContent\obj\x86\Debug\ResolveAssemblyReference.cache
Note: See TracChangeset
for help on using the changeset viewer.