Changeset 603
- Timestamp:
- 2010-06-09 11:58:00 (13 years ago)
- Location:
- 2010/23/aaolluuk/ApinaJaBanaani 2
- Files:
-
- 6 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/23/aaolluuk/ApinaJaBanaani 2/Content/Content.contentproj
r557 r603 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>238ab6d4-c821-4c94-990e-c4901c11a426</ProjectGuid> … … 18 18 <XnaPlatform>Windows</XnaPlatform> 19 19 </PropertyGroup> 20 <ItemGroup>20 <ItemGroup> 21 21 <Compile Include="norsu.png"> 22 22 <Name>norsu</Name> … … 47 47 <Reference Include="Microsoft.Xna.Framework.Content.Pipeline.XImporter, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> 48 48 </ItemGroup> 49 <ItemGroup> 50 <Compile Include="Apina.png"> 51 <Name>Apina</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 </Compile> 55 </ItemGroup> 56 <ItemGroup> 57 <Compile Include="Banaani.png"> 58 <Name>Banaani</Name> 59 <Importer>TextureImporter</Importer> 60 <Processor>TextureProcessor</Processor> 61 </Compile> 62 </ItemGroup> 63 <ItemGroup> 64 <Compile Include="Talo.png"> 65 <Name>Talo</Name> 66 <Importer>TextureImporter</Importer> 67 <Processor>TextureProcessor</Processor> 68 </Compile> 69 </ItemGroup> 49 70 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 50 71 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2010/23/aaolluuk/ApinaJaBanaani 2/Peli.cs
r557 r603 10 10 { 11 11 const double nopeus = 200; 12 const double hyppyVoima = 1000000;12 const double hyppyVoima = 4000; 13 13 14 14 IntMeter pisteLaskuri; … … 69 69 lisaaTaso(-200, -350); 70 70 lisaaTaso(0, -200); 71 lisaaTaso(250, -150); 72 lisaaTaso(520, -50); 73 lisaaTaso(260, -150); 74 lisaaTaso(500, 200); 75 lisaaTaso(620, 100); 76 lisaaTaso(350, 300); 77 lisaaTaso(100, 200); 78 lisaaTaso(-210, 250); 79 80 81 lisaaTaso(-500, -500); 82 lisaaTaso(-300, -500); 83 lisaaTaso(-200, -500); 84 lisaaTaso(-100, -500); 85 lisaaTaso(0, -500); 86 lisaaTaso(200, -500); 87 lisaaTaso(400, -500); 88 lisaaTaso(600, -500); 89 lisaaTaso(200, -470); 90 71 91 72 92 lisaaMaali(); … … 77 97 { 78 98 PhysicsObject taso = PhysicsObject.CreateStaticObject(100, 30); 79 taso.Color = Color. Green;99 taso.Color = Color.Brown; 80 100 taso.X = x; 81 101 taso.Y = y; … … 87 107 pelaaja1 = new PlatformCharacter(40, 40); 88 108 pelaaja1.Mass = 4.0; 89 pelaaja1.Image = LoadImage(" norsu");109 pelaaja1.Image = LoadImage("Apina"); 90 110 pelaaja1.X = 0; 91 111 pelaaja1.Y = Level.Bottom + 120; … … 98 118 void lisaaMaali() 99 119 { 100 PhysicsObject maali = PhysicsObject.CreateStaticObject( 50, 50, Shapes.Circle);120 PhysicsObject maali = PhysicsObject.CreateStaticObject(100, 100, Shapes.Circle); 101 121 maali.Tag = "maali"; 102 122 maali.IgnoresCollisionResponse = true; 103 maali.X = 30;104 maali.Y = -60;105 maali.Image = LoadImage(" tahti");123 maali.X = 100; 124 maali.Y = 350; 125 maali.Image = LoadImage("Talo"); 106 126 Add(maali); 107 127 } … … 145 165 int edellisenKentanPisteet = pisteLaskuri.Value; 146 166 seuraavaKentta(); 147 MessageDisplay.Add(" Pääsit läpi kentän" + kenttaNro + ". Pisteitä: " + edellisenKentanPisteet);167 MessageDisplay.Add("Onnittelut..pääsit kentän läpi " + kenttaNro + ". Pisteitä: " + edellisenKentanPisteet); 148 168 } 149 169 }
Note: See TracChangeset
for help on using the changeset viewer.