- Timestamp:
- 2013-06-14 12:40:02 (10 years ago)
- Location:
- 2013/24/SamiS/Colajump/Colajump
- Files:
-
- 5 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/24/SamiS/Colajump/Colajump/Colajump/Colajump.cs
r4128 r4157 22 22 Image Ranskiskuva = LoadImage("ranskalaiset"); 23 23 Image HamppariKuva = LoadImage("pixel_burger uusi"); 24 Image taustakuva = LoadImage(" mountain-lion-taustakuva");24 Image taustakuva = LoadImage("forest"); 25 25 Image Maalikuva = LoadImage("Maali"); 26 26 27 27 SoundEffect maaliAani = LoadSoundEffect("Aani"); 28 SoundEffect nauru = LoadSoundEffect("nauru"); 29 28 30 29 31 public override void Begin() … … 31 33 32 34 MultiSelectWindow alkuValikko = new MultiSelectWindow("Pelin alkuvalikko", 33 "Aloita peli", " Parhaat pisteet", "Lopeta");35 "Aloita peli", "Lopeta"); 34 36 Add(alkuValikko); 35 37 alkuValikko.AddItemHandler(0, AloitaPeli); 36 alkuValikko.AddItemHandler(1, ParhaatPisteet); 37 alkuValikko.AddItemHandler(2, Exit); 38 alkuValikko.DefaultCancel = 3; 38 alkuValikko.AddItemHandler(1, Exit); 39 alkuValikko.DefaultCancel = 2; 39 40 alkuValikko.Color = Color.Emerald; 40 41 } … … 101 102 void AloitaPeli() 102 103 { 103 LisaaNappaimet();104 105 104 LuoPisteLaskuri(); 105 106 MediaPlayer.Play("tausta"); 106 107 107 108 SeuraavaKentta(); … … 162 163 Maali.IgnoresCollisionResponse = true; 163 164 Maali.Position = paikka; 165 Maali.Color = Color.Aqua; 164 166 //Maali.Image = Maalikuva; 165 167 Maali.Tag = "Maali"; … … 226 228 ajastin.Timeout += AloitaAlusta; 227 229 ajastin.Start(1); 230 231 nauru.Play(); 228 232 } 229 233 void TormaaMaaliin(PhysicsObject pelaaja, PhysicsObject maali) … … 292 296 rajahdys.Force = 10000; 293 297 pelaaja1.Destroy(); 298 SoundEffect nauru = LoadSoundEffect("nauru"); 299 nauru.Play(); 300 301 294 302 295 303 … … 339 347 //LuoKentta(); 340 348 SeuraavaKentta(); 341 LisaaNappaimet();342 LuoPisteLaskuri();343 344 hyppyNopeus = 500;345 349 346 350 } … … 353 357 else if (KenttaNro == 2) LuoKentta("kentta2"); 354 358 else if (KenttaNro == 3) LuoKentta("kentta3"); 355 else if (KenttaNro > 3) Exit(); 356 357 Gravity = new Vector(0, -1500); 359 else if (KenttaNro == 4) LuoKentta("kentta4"); 360 else if (KenttaNro > 4) Exit(); 361 362 363 364 Gravity = new Vector(0, -1200); 358 365 359 366 LisaaNappaimet(); 367 LuoPisteLaskuri(); 360 368 361 369 Camera.Follow(pelaaja1); -
2013/24/SamiS/Colajump/Colajump/ColajumpContent/ColajumpContent.contentproj
r4128 r4157 131 131 </Compile> 132 132 </ItemGroup> 133 <ItemGroup> 134 <Compile Include="kentta3.txt"> 135 <Name>kentta3</Name> 136 <Importer>TextFileImporter</Importer> 137 <Processor>TextFileContentProcessor</Processor> 138 </Compile> 139 </ItemGroup> 140 <ItemGroup> 141 <Compile Include="forest.jpg"> 142 <Name>forest</Name> 143 <Importer>TextureImporter</Importer> 144 <Processor>TextureProcessor</Processor> 145 </Compile> 146 </ItemGroup> 147 <ItemGroup> 148 <Compile Include="nauru.wav"> 149 <Name>nauru</Name> 150 <Importer>WavImporter</Importer> 151 <Processor>SoundEffectProcessor</Processor> 152 </Compile> 153 </ItemGroup> 154 <ItemGroup> 155 <Compile Include="tausta.mp3"> 156 <Name>tausta</Name> 157 <Importer>Mp3Importer</Importer> 158 <Processor>SongProcessor</Processor> 159 </Compile> 160 </ItemGroup> 161 <ItemGroup> 162 <Compile Include="kentta4.txt"> 163 <Name>kentta4</Name> 164 <Importer>TextFileImporter</Importer> 165 <Processor>TextFileContentProcessor</Processor> 166 </Compile> 167 </ItemGroup> 133 168 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 134 169 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2013/24/SamiS/Colajump/Colajump/ColajumpContent/kentta1.txt
r4128 r4157 6 6 7 7 8 RR 9 RR 10 ## ## ### ## ## R 11 PPPPPPPPPPPP##PPPPPPPPP##PPPPPPPPPP###PPPPPPPPPPP PPP PPPPPPPPP##PPPPPP##PPPPPPPPPP PPPPPPPPPP PPPPPPPPP 12 ########################################################################################################################## 8 9 10 13 11 14 12 15 13 16 14 PP 17 N M ############ R M18 PP ####15 N ############ R 16 PP 19 17 #################### R ###### ## R 20 ######## R 18 ######## R M 21 19 ####### ### 22 20 PPPP C PP PPP PP -
2013/24/SamiS/Colajump/Colajump/ColajumpContent/kentta2.txt
r4128 r4157 17 17 18 18 19 ###### 20 N C PP21 ############# C #######22 R ###### PP19 ###### R 20 N C PP 21 ############# R ####### 22 ###### PP ### 23 23 ###### ##### 24 25 C 24 26 25 26 27 28 29 30 31 32 33 34 35 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 27 28 29 PPPPPPPP # 30 ######## 31 32 33 M 34 35 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP#######PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 36 36 #####################################################################################################################################################################################################
Note: See TracChangeset
for help on using the changeset viewer.