- Timestamp:
- 2012-06-13 13:09:34 (11 years ago)
- Location:
- 2012/24/ElinaN
- Files:
-
- 10 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento.cs
r2970 r2985 10 10 { 11 11 Image pallo = LoadImage("Kuumailmapallo"); 12 Image talokuva1 = LoadImage("kellotorni"); 13 Image talokuva2 = LoadImage("kerrostalo"); 14 Image talokuva3 = LoadImage("omakotitalo"); 15 Image talokuva4 = LoadImage("rivitalo"); 12 16 PhysicsObject pelaaja; 13 17 public override void Begin() 14 15 18 { 16 19 AsetaOhjaimet(); … … 21 24 pelaaja = new PhysicsObject(pallo); 22 25 pelaaja.X = (-500); 26 pelaaja.CanRotate = false; 27 AddCollisionHandler(pelaaja, "talo", PelaajaKuolee); 28 Add(pelaaja); 29 30 Level.CreateBottomBorder(); 23 31 24 Add(pelaaja); 32 33 Timer ajastin = new Timer(); 34 ajastin.Interval = 3; 35 ajastin.Timeout += LuoTalo; 36 ajastin.Start(); 25 37 26 38 } … … 44 56 pelaaja.Stop(); 45 57 } 58 59 void PelaajaKuolee(PhysicsObject pelaaja, PhysicsObject kohde) 60 { 61 MessageDisplay.Add("Peli alkaa alusta"); 62 } 63 64 void LuoTalo() 65 { 66 PhysicsObject talo = new PhysicsObject (talokuva1); 67 talo.Shape = Shape.FromImage(talokuva1); 68 talo.Width *= 0.5; 69 talo.Height *= 0.5; 70 talo.X = Level.Right + 300; 71 talo.Bottom = Level.Bottom; 72 talo.Tag = "talo"; 73 talo.IgnoresCollisionResponse = true; 74 talo.Hit(new Vector(-200, 0)); 75 Add(talo); 76 } 46 77 } 47 78 -
2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento.csproj
r2963 r2985 62 62 </PropertyGroup> 63 63 <ItemGroup> 64 <Reference Include="Jypeli4"> 64 <Reference Include="Jypeli"> 65 <HintPath>..\..\..\Jypeli.dll</HintPath> 65 66 </Reference> 66 67 <Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86"> -
2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento.csproj.Debug.cachefile
r2963 r2985 1 1 Content\Kuumailmapallo.xnb 2 2 Content\Lintu.xnb 3 Content\kellotorni.xnb 4 Content\kerrostalo.xnb 5 Content\omakotitalo.xnb 6 Content\rivitalo.xnb -
2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento/obj/x86/Debug/Kuumailmapallolento.csproj.FileListAbsolute.txt
r2963 r2985 1 1 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Kuumailmapallolento.exe 2 2 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Kuumailmapallolento.pdb 3 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Jypeli4.dll4 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Jypeli4.xml5 3 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\obj\x86\Debug\ResolveAssemblyReference.cache 6 4 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt … … 9 7 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\Kuumailmapallo.xnb 10 8 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\Lintu.xnb 9 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\kellotorni.xnb 10 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\kerrostalo.xnb 11 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\omakotitalo.xnb 12 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\rivitalo.xnb 13 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Jypeli.dll 14 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Jypeli.xml -
2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento/obj/x86/Debug/cachefile-{1E9415B6-81E8-41E7-A1AE-53D5AC5C8506}-targetpath.txt
r2963 r2985 1 1 Content\Kuumailmapallo.xnb 2 2 Content\Lintu.xnb 3 Content\kellotorni.xnb 4 Content\kerrostalo.xnb 5 Content\omakotitalo.xnb 6 Content\rivitalo.xnb -
2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/KuumailmapallolentoContent/KuumailmapallolentoContent.contentproj
r2963 r2985 58 58 </Compile> 59 59 </ItemGroup> 60 <ItemGroup> 61 <Compile Include="kellotorni.png"> 62 <Name>kellotorni</Name> 63 <Importer>TextureImporter</Importer> 64 <Processor>TextureProcessor</Processor> 65 </Compile> 66 <Compile Include="kerrostalo.png"> 67 <Name>kerrostalo</Name> 68 <Importer>TextureImporter</Importer> 69 <Processor>TextureProcessor</Processor> 70 </Compile> 71 <Compile Include="omakotitalo.png"> 72 <Name>omakotitalo</Name> 73 <Importer>TextureImporter</Importer> 74 <Processor>TextureProcessor</Processor> 75 </Compile> 76 <Compile Include="rivitalo.png"> 77 <Name>rivitalo</Name> 78 <Importer>TextureImporter</Importer> 79 <Processor>TextureProcessor</Processor> 80 </Compile> 81 </ItemGroup> 60 82 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 61 83 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/KuumailmapallolentoContent/obj/x86/Debug/ContentPipeline.xml
r2970 r2985 19 19 <Output>C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\Lintu.xnb</Output> 20 20 <Time>2012-06-12T14:06:01.441324+03:00</Time> 21 </Item> 22 <Item> 23 <Source>kellotorni.png</Source> 24 <Name>kellotorni</Name> 25 <Importer>TextureImporter</Importer> 26 <Processor>TextureProcessor</Processor> 27 <Options>None</Options> 28 <Output>C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\kellotorni.xnb</Output> 29 <Time>2012-06-13T12:29:07.6652224+03:00</Time> 30 </Item> 31 <Item> 32 <Source>kerrostalo.png</Source> 33 <Name>kerrostalo</Name> 34 <Importer>TextureImporter</Importer> 35 <Processor>TextureProcessor</Processor> 36 <Options>None</Options> 37 <Output>C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\kerrostalo.xnb</Output> 38 <Time>2012-06-13T12:09:44.3519627+03:00</Time> 39 </Item> 40 <Item> 41 <Source>omakotitalo.png</Source> 42 <Name>omakotitalo</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\omakotitalo.xnb</Output> 47 <Time>2012-06-13T10:42:46.6211582+03:00</Time> 48 </Item> 49 <Item> 50 <Source>rivitalo.png</Source> 51 <Name>rivitalo</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\rivitalo.xnb</Output> 56 <Time>2012-06-13T12:09:40.6703627+03:00</Time> 21 57 </Item> 22 58 <BuildSuccessful>true</BuildSuccessful>
Note: See TracChangeset
for help on using the changeset viewer.