Changeset 1131 for 2010/27/jomiilri
- Timestamp:
- 2010-07-07 11:32:02 (13 years ago)
- Location:
- 2010/27/jomiilri
- Files:
-
- 7 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/27/jomiilri/Duel/Content/Content.contentproj
r1108 r1131 1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> 2 2 <PropertyGroup> 3 3 <ProjectGuid>eef895b1-ba18-4382-b497-0dbbd9530cfc</ProjectGuid> … … 34 34 <Reference Include="Microsoft.Xna.Framework.Content.Pipeline.XImporter, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> 35 35 </ItemGroup> 36 <ItemGroup> 37 <Compile Include="tausta1.png"> 38 <Name>tausta1</Name> 39 <Importer>TextureImporter</Importer> 40 <Processor>TextureProcessor</Processor> 41 </Compile> 42 </ItemGroup> 43 <ItemGroup> 44 <Compile Include="tausta2.png"> 45 <Name>tausta2</Name> 46 <Importer>TextureImporter</Importer> 47 <Processor>TextureProcessor</Processor> 48 </Compile> 49 </ItemGroup> 50 <ItemGroup> 51 <Compile Include="taustakuva1.bmp"> 52 <Name>taustakuva1</Name> 53 <Importer>TextureImporter</Importer> 54 <Processor>TextureProcessor</Processor> 55 </Compile> 56 </ItemGroup> 36 57 </Project> -
2010/27/jomiilri/Duel/Peli.cs
r1108 r1131 6 6 public class Peli : PhysicsGame 7 7 { 8 PhysicsObject pelaaja1; 8 PlatformCharacter p1; 9 PlatformCharacter p2; 10 9 11 10 12 const int ruudunLeveys = 32; … … 14 16 { 15 17 LuoKentta(); 18 AloitaPeli(); 19 IsFullScreen = true; 20 p1 = LuoHahmo(); 21 Add(p1); 22 LuoOhjaimet(); 16 23 } 17 24 25 void AloitaPeli() 26 { 27 GameObject alareuna = Level.CreateBottomBorder(); 28 GameObject ylareuna = Level.CreateTopBorder(); 29 alareuna.Image = LoadImage("tausta1"); 30 ylareuna.Image = LoadImage("tausta1"); 31 32 //Level.Background.Image = LoadImage("taustakuva1"); 33 //Level.Background.FitToLevel(); 34 35 Camera.ZoomToLevel(); 36 } 37 18 38 void LuoKentta() 19 39 { … … 28 48 PhysicsObject seina = PhysicsObject.CreateStaticObject(32.0, 32.0); 29 49 seina.Shape = Shapes.Rectangle; 30 seina. Color = Color.Gray;50 seina.Image = LoadImage("tausta1"); 31 51 return seina; 32 52 } 33 53 54 PlatformCharacter LuoHahmo() 55 { 56 PlatformCharacter ukko = new PlatformCharacter(32, 32); 57 58 return ukko; 59 } 60 61 void LiikutaPelaajaa() 62 { 63 64 } 65 66 void LuoOhjaimet() 67 { 68 Keyboard.Listen(Key.Left, ButtonState.Down, LiikutaPelaajaa, null); 69 Keyboard.Listen(Key.Right, ButtonState.Down, LiikutaPelaajaa, null); 70 Keyboard.Listen(Key.Up, ButtonState.Down, LiikutaPelaajaa, null); 71 Keyboard.Listen(Key.Down, ButtonState.Down, LiikutaPelaajaa, null); 72 } 73 34 74 } -
2010/27/jomiilri/Duel/TextFile1.txt
r1108 r1131 1 1IIIIIIIIIIIIIIIIIII 2 2I I 3 3I I 4 4I I 5 5I I 6 6I I 7 7I I 8 8I I 9 9I I 10 10I I 11 11I I 12 12I I 13 13I I 14 14I I 15 15I I 16 16I I 17 17I I 18 18I I 19 19I I 20 20IIIIIIIIIIIIIIIIIII 1 IIIIIIIIIIIIIIIIIIIIIIIIIIII 2 IIIIIIIIIIIIIIIIIIIIIIIIIIII 3 II II 4 II II 5 II II 6 II II 7 II II 8 II II 9 II II 10 II II 11 II II 12 II II 13 II II 14 II II 15 II II 16 II II 17 II II 18 II II 19 II II 20 II II 21 IIIIIIIIIIIIIIIIIIIIIIIIIIII 22 IIIIIIIIIIIIIIIIIIIIIIIIIIII -
2010/27/jomiilri/Pong/Content/Content.contentproj
r1076 r1131 1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> 2 2 <PropertyGroup> 3 3 <ProjectGuid>2f4aa2be-ae4f-4f8d-a209-7bff513e67e5</ProjectGuid> … … 34 34 <Reference Include="Microsoft.Xna.Framework.Content.Pipeline.XImporter, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> 35 35 </ItemGroup> 36 <ItemGroup> 37 <Compile Include="taustakuva1.bmp"> 38 <Name>taustakuva1</Name> 39 <Importer>TextureImporter</Importer> 40 <Processor>TextureProcessor</Processor> 41 </Compile> 42 </ItemGroup> 36 43 </Project>
Note: See TracChangeset
for help on using the changeset viewer.