Changeset 7925 for 2016/27/JouniP
- Timestamp:
- 2016-07-07 09:40:00 (6 years ago)
- Location:
- 2016/27/JouniP/VenienteFragore/VenienteFragore
- Files:
-
- 4 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragore/VenienteFragore.cs
r7924 r7925 20 20 Image luolanKuva = LoadImage("luola"); 21 21 Image ilkeanOmenanKuva = LoadImage("ilkeaomena"); 22 Image miinanKuva = LoadImage("mine"); 22 23 23 24 Animation minimiinii; 24 25 25 26 SoundEffect maaliAani = LoadSoundEffect("maali"); 27 SoundEffect hyppyaani = LoadSoundEffect("Jump11"); 26 28 27 29 Vector aloituspaikka = Vector.Zero; … … 76 78 kentta.SetTileMethod('O', LisaaLuola); 77 79 kentta.SetTileMethod('z', LisaaIlkeaTyyppi); 80 kentta.SetTileMethod('_', LisaaMiina); 78 81 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 79 82 Level.CreateBorders(); 80 83 Level.Background.CreateGradient(Color.Gray, Color.SkyBlue); 84 } 85 86 void LisaaMiina(Vector paikka, double leveys, double korkeus) 87 { 88 PhysicsObject miina = new PhysicsObject(0.8*leveys, korkeus/4); 89 miina.MakeStatic(); 90 miina.Position = paikka + new Vector(0.0, -(3.0/8.0)*korkeus); 91 miina.Image = miinanKuva; 92 Add(miina); 81 93 } 82 94 … … 143 155 AddCollisionHandler(pelaaja1, "pahis", TormaaPahikseen); 144 156 Add(pelaaja1); 157 145 158 } 146 159 … … 203 216 { 204 217 hahmo.Jump(nopeus); 218 hyppyaani.Play(0.4, 0.0, 0.0); 205 219 } 206 220 … … 208 222 { 209 223 pistelaskuri.Value++; 210 maaliAani.Play( );224 maaliAani.Play(0.4, 0.0, 0.0); 211 225 MessageDisplay.Add("Keräsit tähden!"); 212 226 tahti.Destroy(); -
2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragore/VenienteFragore.csproj.Debug.cachefile
r7870 r7925 13 13 Content\advena.xnb 14 14 Content\kentta2.xnb 15 Content\Jump11.xnb 16 Content\mine.xnb -
2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragore/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml
r7872 r7925 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2016-07-0 6T12:40:48.6505359+03:00</Time>38 <Time>2016-07-07T09:27:49.5842555+03:00</Time> 39 39 </Item> 40 40 <Item> … … 131 131 <Output>C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\kentta2.xnb</Output> 132 132 <Time>2016-07-06T12:26:46.8870339+03:00</Time> 133 </Item> 134 <Item> 135 <Source>Jump11.wav</Source> 136 <Name>Jump11</Name> 137 <Importer>WavImporter</Importer> 138 <Processor>SoundEffectProcessor</Processor> 139 <Options>None</Options> 140 <Output>C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\Jump11.xnb</Output> 141 <Time>2016-07-07T09:20:08.7627314+03:00</Time> 142 </Item> 143 <Item> 144 <Source>mine.png</Source> 145 <Name>mine</Name> 146 <Importer>TextureImporter</Importer> 147 <Processor>TextureProcessor</Processor> 148 <Options>None</Options> 149 <Output>C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\mine.xnb</Output> 150 <Time>2016-07-07T09:27:17.9420916+03:00</Time> 133 151 </Item> 134 152 <BuildSuccessful>true</BuildSuccessful> -
2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragore/obj/x86/Debug/VenienteFragore.csproj.FileListAbsolute.txt
r7870 r7925 21 21 C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\advena.xnb 22 22 C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\kentta2.xnb 23 C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\Jump11.xnb 24 C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\mine.xnb -
2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragore/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt
r7870 r7925 13 13 Content\advena.xnb 14 14 Content\kentta2.xnb 15 Content\Jump11.xnb 16 Content\mine.xnb -
2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragoreContent/VenienteFragoreContent.contentproj
r7870 r7925 131 131 </Compile> 132 132 </ItemGroup> 133 <ItemGroup> 134 <Compile Include="Jump11.wav"> 135 <Name>Jump11</Name> 136 <Importer>WavImporter</Importer> 137 <Processor>SoundEffectProcessor</Processor> 138 </Compile> 139 </ItemGroup> 140 <ItemGroup> 141 <Compile Include="mine.png"> 142 <Name>mine</Name> 143 <Importer>TextureImporter</Importer> 144 <Processor>TextureProcessor</Processor> 145 </Compile> 146 </ItemGroup> 133 147 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 134 148 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragoreContent/kentta1.txt
r7872 r7925 14 14 ..#..##......##..##..*********...... 15 15 ..................***********....... 16 ......z..#.N.... ...************...O.16 ......z..#.N...._..************...O. 17 17 ####################################
Note: See TracChangeset
for help on using the changeset viewer.