- Timestamp:
- 2016-06-16 13:00:00 (7 years ago)
- Location:
- 2016/24/JouniP/Ronsupeli
- Files:
-
- 3 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/24/JouniP/Ronsupeli/Ronsupeli/Ronsupeli/Ronsupeli.cs
r7364 r7366 19 19 20 20 SoundEffect maaliAani = LoadSoundEffect("maali"); 21 SoundEffect hyppyAani = LoadSoundEffect("loikka"); 22 21 23 Vector alkupaikka; 22 24 … … 104 106 void Hyppaa(PlatformCharacter hahmo, double nopeus) 105 107 { 108 hyppyAani.Play(); 106 109 hahmo.Jump(nopeus); 107 110 } … … 109 112 void TormaaTahteen(PhysicsObject hahmo, PhysicsObject tahti) 110 113 { 114 int pMaxMaara = 200; 115 // Alustetaan räjähdysjärjestelmä 116 // Parametrit: 117 // * kuva: mitä tekstuuria räjähdyksen 118 // hiukkasten halutaan käyttävän 119 // * pMaxMaara: räjähdyksen käyttämien 120 // hiukkasten eli partikkeleiden maksimimäärä 121 ExplosionSystem rajahdys = 122 new ExplosionSystem(LoadImage("tahti"), pMaxMaara); 123 124 // Lisätään järjestelmä peliin 125 Add(rajahdys); 126 127 double x = tahti.X; 128 double y = tahti.Y; 129 int pMaara = 50; 130 // "Käynnistetään" räjähdys 131 rajahdys.AddEffect(x, y, pMaara); 132 133 134 111 135 maaliAani.Play(); 112 136 MessageDisplay.Add("Keräsit kuolontähden!"); … … 114 138 115 139 //hahmo.Destroy(); 116 //Timer.SingleShot(2.5, AloitaPeli);140 Keyboard.Clear(); 117 141 118 hahmo.Position = alkupaikka; 142 Timer.SingleShot(2.5, delegate { 143 hahmo.Position = alkupaikka; 144 LisaaNappaimet(); 145 }); 146 147 //hahmo.Position = alkupaikka; 119 148 120 149 } -
2016/24/JouniP/Ronsupeli/Ronsupeli/Ronsupeli/Ronsupeli.csproj.Debug.cachefile
r7364 r7366 4 4 Content\kentta1.xnb 5 5 Content\pelihahmo.xnb 6 Content\loikka.xnb -
2016/24/JouniP/Ronsupeli/Ronsupeli/Ronsupeli/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml
r7364 r7366 46 46 <Output>C:\MyTemp\JouniP\Ronsupeli\Ronsupeli\Ronsupeli\bin\x86\Debug\Content\pelihahmo.xnb</Output> 47 47 <Time>2016-06-16T12:43:48.6751041+03:00</Time> 48 </Item> 49 <Item> 50 <Source>loikka.wav</Source> 51 <Name>loikka</Name> 52 <Importer>WavImporter</Importer> 53 <Processor>SoundEffectProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\JouniP\Ronsupeli\Ronsupeli\Ronsupeli\bin\x86\Debug\Content\loikka.xnb</Output> 56 <Time>2016-06-16T12:46:28.317571+03:00</Time> 48 57 </Item> 49 58 <BuildSuccessful>true</BuildSuccessful> -
2016/24/JouniP/Ronsupeli/Ronsupeli/Ronsupeli/obj/x86/Debug/Ronsupeli.csproj.FileListAbsolute.txt
r7364 r7366 12 12 C:\MyTemp\JouniP\Ronsupeli\Ronsupeli\Ronsupeli\bin\x86\Debug\Content\pelihahmo.xnb 13 13 C:\MyTemp\JouniP\Ronsupeli\Ronsupeli\Ronsupeli\obj\x86\Debug\Ronsupeli.csprojResolveAssemblyReference.cache 14 C:\MyTemp\JouniP\Ronsupeli\Ronsupeli\Ronsupeli\bin\x86\Debug\Content\loikka.xnb -
2016/24/JouniP/Ronsupeli/Ronsupeli/Ronsupeli/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt
r7364 r7366 4 4 Content\kentta1.xnb 5 5 Content\pelihahmo.xnb 6 Content\loikka.xnb -
2016/24/JouniP/Ronsupeli/Ronsupeli/RonsupeliContent/RonsupeliContent.contentproj
r7364 r7366 74 74 </Compile> 75 75 </ItemGroup> 76 <ItemGroup> 77 <Compile Include="loikka.wav"> 78 <Name>loikka</Name> 79 <Importer>WavImporter</Importer> 80 <Processor>SoundEffectProcessor</Processor> 81 </Compile> 82 </ItemGroup> 76 83 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 77 84 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.