- Timestamp:
- 2013-07-04 14:56:53 (10 years ago)
- Location:
- 2013/27/IlmariT/NINJAGAME
- Files:
-
- 5 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/27/IlmariT/NINJAGAME/NINJAGAME/NINJAGAME.cs
r4407 r4432 23 23 Image vihuKuva = LoadImage("vihu"); 24 24 Image vihuKuva2 = LoadImage("vihu2"); 25 Image vihuKuva3 = LoadImage("face"); 25 26 Image judduaKuva = LoadImage("juddua"); 26 27 Image blokki2kuva = LoadImage("blokki2"); … … 34 35 Image blokki; 35 36 36 int kenttaNro = 3;37 int kenttaNro = 4; 37 38 38 39 public override void Begin() … … 50 51 LuoPistelaskuri(); 51 52 blokki = judduaKuva; 53 MediaPlayer.Stop(); 52 54 53 55 if (kenttaNro == 1) … … 56 58 Level.Background.Image = taustaKuva; 57 59 Level.Background.FitToLevel(); 60 MediaPlayer.Play("nyancat"); 58 61 } 59 62 else if (kenttaNro == 2) 60 63 { 64 61 65 LuoKentta("kentta2"); 66 MediaPlayer.Play("bond"); 62 67 Level.Background.Image = taustaKuva; 63 68 Level.Background.FitToLevel(); … … 66 71 { 67 72 LuoKentta("kentta3"); 73 MediaPlayer.Play("nein"); 68 74 Level.Background.Image = taustaKuva; 69 75 Level.Background.FitToLevel(); … … 73 79 blokki = blokki2kuva; 74 80 LuoKentta("kentta4"); 81 MediaPlayer.Play("trololo"); 75 82 Level.Background.Image = taustaKuva4; 76 83 Level.Background.FitToLevel(); 77 } 84 } 78 85 else if (kenttaNro > 3) Exit(); 79 86 … … 175 182 void LisaaVihollinen3(Vector paikka, double leveys, double korkeus) 176 183 { 184 PhysicsObject vihu3 = new PhysicsObject(leveys * 4, korkeus * 8); 185 186 vihu3.IgnoresCollisionResponse = true; 187 vihu3.Position = paikka + new Vector( 0, 200 ); 188 vihu3.Image = vihuKuva3; 189 vihu3.Tag = "vihu3"; 190 vihu3.CanRotate = false; 191 Add(vihu3); 192 193 FollowerBrain seuraajanAivot = new FollowerBrain("pelaaja"); 194 seuraajanAivot.Speed = 300; 195 seuraajanAivot.TurnWhileMoving = false; 196 vihu3.Brain = seuraajanAivot; 177 197 } 178 198 void AmmusOsui(PhysicsObject ammus, PhysicsObject kohde) … … 207 227 pelaaja1.Mass = 4.0; 208 228 pelaaja1.Image = pelaajanKuva; 229 pelaaja1.Tag = "pelaaja"; 209 230 //pelaaja1.Animation.FPS = 1; 210 231 //pelaaja1.AnimIdle = new Animation(ninjanPaikallaanolo); … … 295 316 Timer.SingleShot(2, SeuraavaKentta); 296 317 } 318 319 297 320 } -
2013/27/IlmariT/NINJAGAME/NINJAGAMEContent/NINJAGAMEContent.contentproj
r4407 r4432 153 153 </Compile> 154 154 </ItemGroup> 155 <ItemGroup> 156 <Compile Include="nyancat.mp3"> 157 <Name>nyancat</Name> 158 <Importer>Mp3Importer</Importer> 159 <Processor>SongProcessor</Processor> 160 </Compile> 161 </ItemGroup> 162 <ItemGroup> 163 <Compile Include="trololo.mp3"> 164 <Name>trololo</Name> 165 <Importer>Mp3Importer</Importer> 166 <Processor>SongProcessor</Processor> 167 </Compile> 168 </ItemGroup> 169 <ItemGroup> 170 <Compile Include="bond.mp3"> 171 <Name>bond</Name> 172 <Importer>Mp3Importer</Importer> 173 <Processor>SongProcessor</Processor> 174 </Compile> 175 </ItemGroup> 176 <ItemGroup> 177 <Compile Include="nein.mp3"> 178 <Name>nein</Name> 179 <Importer>Mp3Importer</Importer> 180 <Processor>SongProcessor</Processor> 181 </Compile> 182 </ItemGroup> 183 <ItemGroup> 184 <Compile Include="face.png"> 185 <Name>face</Name> 186 <Importer>TextureImporter</Importer> 187 <Processor>TextureProcessor</Processor> 188 </Compile> 189 </ItemGroup> 155 190 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 156 191 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2013/27/IlmariT/NINJAGAME/NINJAGAMEContent/kentta4.txt
r4407 r4432 15 15 16 16 17 17 # # # # 18 18 19 19 # … … 36 36 # 37 37 # # # ##### 38 O N# # # #38 O N # # # # 39 39 ##########################################################################
Note: See TracChangeset
for help on using the changeset viewer.