- Timestamp:
- 2015-07-03 10:15:19 (8 years ago)
- Location:
- 2015/27/EemilI/infected - Copy/infected
- Files:
-
- 4 added
- 3 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/EemilI/infected - Copy/infected/infected/infected.cs
r6756 r6772 16 16 Image asekuva = LoadImage("ak47"); 17 17 Image pistoolikuva = LoadImage("JuanDeag"); 18 Image halekuva = LoadImage("shotfun"); 18 19 19 20 AssaultRifle ase; … … 44 45 ase.Position= new Vector(25, 15); 45 46 ase.InfiniteAmmo = true; 47 ase.AttackSound = null; 46 48 mies.Add(ase); 47 VaihdaAse("ak47"); 49 VaihdaAse("pistooli"); 50 //Light valo = new Light(); 51 //valo.Intensity = 1.0; 52 //valo.Distance = 150; 53 //valo.Position = mies.Position; 54 //Add(valo); 55 56 //Timer siirrin = new Timer(); 57 //siirrin.Interval = 0.05; 58 //siirrin.Timeout += delegate { valo.Position = mies.Position; }; 59 //siirrin.Start(); 48 60 } 49 61 … … 58 70 mappi.Execute(40, 40); 59 71 LuoPisteLaskuri(); 72 Level.AmbientLight = 0.5; 73 74 60 75 61 76 for (int i = 0; i < 15; i++) … … 228 243 else 229 244 { 230 kohta.TextColor = Color.Bl ue;245 kohta.TextColor = Color.Black; 231 246 } 232 247 … … 265 280 AddCollisionHandler(ammus, AmmusOsuu); 266 281 ammus.CollisionIgnoreGroup = 3; 267 MediaPlayer.Play("ak aani"); 282 283 284 switch (ase.Tag.ToString()) 285 { 286 case "ak47": 287 288 289 break; 290 case "haulikko": 291 292 break; 293 case "pistooli": 294 295 break; 296 default: 297 break; 298 } 268 299 269 300 } … … 278 309 ase.Image = asekuva; 279 310 ase.FireRate = 5; 280 311 ase.AttackSound = LoadSoundEffect("m4"); 281 312 break; 282 313 case "pistooli": 283 314 ase.Image = pistoolikuva; 284 315 ase.FireRate = 2; 316 ase.Size = new Vector(pistoolikuva.Width, pistoolikuva.Height)*4; 317 ase.AttackSound = LoadSoundEffect("pistol"); 285 318 break; 286 319 case "haulikko": 287 320 ase.Image = halekuva; 321 ase.FireRate = 4; 322 ase.AttackSound = LoadSoundEffect("hale"); 288 323 break; 289 324 default: … … 300 335 { 301 336 case "ak47": 302 if (RandomGen.NextInt(0, 100) > 70)337 if (RandomGen.NextInt(0, 100) > 25) 303 338 { 304 339 pistelaskuri.Value += RandomGen.NextInt(1, 10); … … 307 342 308 343 break; 344 case "haulikko": 345 if (RandomGen.NextInt(0, 100) > 40) 346 { 347 pistelaskuri.Value += RandomGen.NextInt(1, 10); 348 b.Destroy(); 349 } 350 351 break; 352 case "pistooli": 353 if (RandomGen.NextInt(0, 100) > 60) 354 { 355 pistelaskuri.Value += RandomGen.NextInt(1, 10); 356 b.Destroy(); 357 } 358 359 break; 309 360 default: 310 361 break; … … 328 379 { 329 380 IsPaused = true; 330 MultiSelectWindow kauppa = new MultiSelectWindow("Kauppa", "haulikko 250$", "Exit");381 MultiSelectWindow kauppa = new MultiSelectWindow("Kauppa", "haulikko 100$","ak-47 250$", "Exit"); 331 382 kauppa.AddItemHandler(0, delegate 332 383 { … … 335 386 pistelaskuri.Value -= 1; 336 387 Keyboard.Listen(Key.D2, ButtonState.Pressed, VaihdaAse, "Ota haulikko esille", "haulikko"); 388 } 389 IsPaused = false; 390 }); 391 kauppa.AddItemHandler(1, delegate 392 { 393 if (pistelaskuri.Value >= 1) 394 { 395 pistelaskuri.Value -= 1; 396 Keyboard.Listen(Key.D3, ButtonState.Pressed, VaihdaAse, "Ota ak-47 esille", "ak47"); 337 397 } 338 398 IsPaused = false; -
2015/27/EemilI/infected - Copy/infected/infected/infected.csproj.Debug.cachefile
r6745 r6772 9 9 Content\valikkokuva.xnb 10 10 Content\ak47.xnb 11 Content\ak aani.xnb12 11 Content\JuanDeag.xnb 13 Content\m9 aani.xnb 12 Content\shotfun.xnb 13 Content\pistol.xnb 14 14 Content\hale.xnb 15 Content\m4.xnb 15 16 Content\Ghost Story.wma 16 17 Content\Volatile Reaction.wma 17 Content\ak aani.wma18 Content\m9 aani.wma19 Content\hale.wma -
2015/27/EemilI/infected - Copy/infected/infected/obj/x86/Debug/ContentPipeline-{B898C966-80ED-44D3-9FBA-1E981C2850D4}.xml
r6756 r6772 95 95 </Item> 96 96 <Item> 97 <Source>ak aani.mp3</Source>98 <Name>ak aani</Name>99 <Importer>Mp3Importer</Importer>100 <Processor>SongProcessor</Processor>101 <Options>None</Options>102 <Output>C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\ak aani.xnb</Output>103 <Extra>C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\ak aani.wma</Extra>104 <Time>2015-07-02T13:46:43.9678031+03:00</Time>105 </Item>106 <Item>107 97 <Source>JuanDeag.png</Source> 108 98 <Name>JuanDeag</Name> … … 114 104 </Item> 115 105 <Item> 116 <Source> m9 aani.mp3</Source>117 <Name> m9 aani</Name>118 <Importer> Mp3Importer</Importer>119 <Processor> SongProcessor</Processor>106 <Source>shotfun.png</Source> 107 <Name>shotfun</Name> 108 <Importer>TextureImporter</Importer> 109 <Processor>TextureProcessor</Processor> 120 110 <Options>None</Options> 121 <Output>C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\m9 aani.xnb</Output> 122 <Extra>C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\m9 aani.wma</Extra> 123 <Time>2015-07-02T11:37:00.6832031+03:00</Time> 111 <Output>C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\shotfun.xnb</Output> 112 <Time>2015-07-03T09:21:23.997647+03:00</Time> 124 113 </Item> 125 114 <Item> 126 <Source>hale.mp3</Source> 115 <Source>pistol.wav</Source> 116 <Name>pistol</Name> 117 <Importer>WavImporter</Importer> 118 <Processor>SoundEffectProcessor</Processor> 119 <Options>None</Options> 120 <Output>C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\pistol.xnb</Output> 121 <Time>2015-07-03T10:08:37.847847+03:00</Time> 122 </Item> 123 <Item> 124 <Source>hale.wav</Source> 127 125 <Name>hale</Name> 128 <Importer> Mp3Importer</Importer>129 <Processor>So ngProcessor</Processor>126 <Importer>WavImporter</Importer> 127 <Processor>SoundEffectProcessor</Processor> 130 128 <Options>None</Options> 131 129 <Output>C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\hale.xnb</Output> 132 <Extra>C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\hale.wma</Extra> 133 <Time>2015-07-02T11:36:22.5107031+03:00</Time> 130 <Time>2015-07-03T10:08:42.179847+03:00</Time> 131 </Item> 132 <Item> 133 <Source>m4.wav</Source> 134 <Name>m4</Name> 135 <Importer>WavImporter</Importer> 136 <Processor>SoundEffectProcessor</Processor> 137 <Options>None</Options> 138 <Output>C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\m4.xnb</Output> 139 <Time>2015-07-03T10:08:47.104847+03:00</Time> 134 140 </Item> 135 141 <BuildSuccessful>true</BuildSuccessful> -
2015/27/EemilI/infected - Copy/infected/infected/obj/x86/Debug/cachefile-{B898C966-80ED-44D3-9FBA-1E981C2850D4}-targetpath.txt
r6756 r6772 11 11 Content\valikkokuva.xnb 12 12 Content\ak47.xnb 13 Content\ak aani.xnb14 Content\ak aani.wma15 13 Content\JuanDeag.xnb 16 Content\ m9 aani.xnb17 Content\ m9 aani.wma14 Content\shotfun.xnb 15 Content\pistol.xnb 18 16 Content\hale.xnb 19 Content\ hale.wma17 Content\m4.xnb -
2015/27/EemilI/infected - Copy/infected/infected/obj/x86/Debug/infected.csproj.FileListAbsolute.txt
r6756 r6772 19 19 C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\valikkokuva.xnb 20 20 C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\ak47.xnb 21 C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\ak aani.xnb22 C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\ak aani.wma23 21 C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\JuanDeag.xnb 24 C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\m9 aani.xnb25 22 C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\hale.xnb 26 C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\m9 aani.wma 27 C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\hale.wma 23 C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\shotfun.xnb 24 C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\pistol.xnb 25 C:\MyTemp\EemilI\infected - Copy\infected\infected\bin\x86\Debug\Content\m4.xnb -
2015/27/EemilI/infected - Copy/infected/infectedContent/infectedContent.contentproj
r6745 r6772 116 116 </ItemGroup> 117 117 <ItemGroup> 118 <Compile Include="ak aani.mp3">119 <Name>ak aani</Name>120 <Importer>Mp3Importer</Importer>121 <Processor>SongProcessor</Processor>122 </Compile>123 </ItemGroup>124 <ItemGroup>125 <Compile Include="m9 aani.mp3">126 <Name>m9 aani</Name>127 <Importer>Mp3Importer</Importer>128 <Processor>SongProcessor</Processor>129 </Compile>130 </ItemGroup>131 <ItemGroup>132 <Compile Include="hale.mp3">133 <Name>hale</Name>134 <Importer>Mp3Importer</Importer>135 <Processor>SongProcessor</Processor>136 </Compile>137 </ItemGroup>138 <ItemGroup>139 118 <Compile Include="JuanDeag.png"> 140 119 <Name>JuanDeag</Name> 141 120 <Importer>TextureImporter</Importer> 142 121 <Processor>TextureProcessor</Processor> 122 </Compile> 123 </ItemGroup> 124 <ItemGroup> 125 <Compile Include="shotfun.png"> 126 <Name>shotfun</Name> 127 <Importer>TextureImporter</Importer> 128 <Processor>TextureProcessor</Processor> 129 </Compile> 130 </ItemGroup> 131 <ItemGroup> 132 <Compile Include="pistol.wav"> 133 <Name>pistol</Name> 134 <Importer>WavImporter</Importer> 135 <Processor>SoundEffectProcessor</Processor> 136 </Compile> 137 </ItemGroup> 138 <ItemGroup> 139 <Compile Include="hale.wav"> 140 <Name>hale</Name> 141 <Importer>WavImporter</Importer> 142 <Processor>SoundEffectProcessor</Processor> 143 </Compile> 144 </ItemGroup> 145 <ItemGroup> 146 <Compile Include="m4.wav"> 147 <Name>m4</Name> 148 <Importer>WavImporter</Importer> 149 <Processor>SoundEffectProcessor</Processor> 143 150 </Compile> 144 151 </ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.