- Timestamp:
- 2017-07-07 11:51:07 (6 years ago)
- Location:
- 2017/27/OttoK/1v1MeBitch
- Files:
-
- 19 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/27/OttoK/1v1MeBitch/1v1MeBitch/1v1MeBitchContent/1v1MeBitchContent.contentproj
r8967 r8997 108 108 </Compile> 109 109 </ItemGroup> 110 <ItemGroup> 111 <Compile Include="jytky.png"> 112 <Name>jytky</Name> 113 <Importer>TextureImporter</Importer> 114 <Processor>TextureProcessor</Processor> 115 </Compile> 116 </ItemGroup> 117 <ItemGroup> 118 <Compile Include="laaseri.png"> 119 <Name>laaseri</Name> 120 <Importer>TextureImporter</Importer> 121 <Processor>TextureProcessor</Processor> 122 </Compile> 123 </ItemGroup> 124 <ItemGroup> 125 <Compile Include="tntsound.wav"> 126 <Name>tntsound</Name> 127 <Importer>WavImporter</Importer> 128 <Processor>SoundEffectProcessor</Processor> 129 </Compile> 130 </ItemGroup> 131 <ItemGroup> 132 <Compile Include="quake.wav"> 133 <Name>quake</Name> 134 <Importer>WavImporter</Importer> 135 <Processor>SoundEffectProcessor</Processor> 136 </Compile> 137 </ItemGroup> 138 <ItemGroup> 139 <Compile Include="start.wav"> 140 <Name>start</Name> 141 <Importer>WavImporter</Importer> 142 <Processor>SoundEffectProcessor</Processor> 143 </Compile> 144 </ItemGroup> 145 <ItemGroup> 146 <Compile Include="emptyclip.wav"> 147 <Name>emptyclip</Name> 148 <Importer>WavImporter</Importer> 149 <Processor>SoundEffectProcessor</Processor> 150 </Compile> 151 </ItemGroup> 152 <ItemGroup> 153 <Compile Include="lopetahanet.wav"> 154 <Name>lopetahanet</Name> 155 <Importer>WavImporter</Importer> 156 <Processor>SoundEffectProcessor</Processor> 157 </Compile> 158 </ItemGroup> 110 159 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 111 160 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2017/27/OttoK/1v1MeBitch/1v1MeBitch/_1v1MeBitch/_1v1MeBitch.cs
r8967 r8997 18 18 19 19 //Kuvien lisääminen. 20 21 //Aseiden projektiilien kuvat. 20 22 Image ohjuksenKuva = LoadImage("ohjus"); 23 Image laaserinkuva = LoadImage("laaseri"); 24 Image jytkynkuva = LoadImage("jytky"); 25 26 //Pelaajien kuvat. 21 27 Image pelaaja1kuva = LoadImage("pelaaja1"); 22 28 Image pelaaja2kuva = LoadImage("pelaaja2"); 29 30 //Tikkaiden kuva. 23 31 Image tikkaankuva = LoadImage("tikassejokapaistetaan"); 32 33 //Kentän taustakuva. 24 34 Image taustakuva = LoadImage("takajeejee"); 35 36 //PowerUpin kuva. 25 37 Image shrinenkuva = LoadImage("shrinejuttu"); 26 38 27 39 40 28 41 //Äänien lisääminen. 42 43 SoundEffect ohjusaani = Game.LoadSoundEffect("quake"); 29 44 SoundEffect lasersound = Game.LoadSoundEffect("pumpum1"); 45 SoundEffect jytkynaani = Game.LoadSoundEffect("tntsound"); 46 SoundEffect starttimartti = Game.LoadSoundEffect("start"); 47 SoundEffect noclip = Game.LoadSoundEffect("emptyclip"); 48 SoundEffect lopetaaani = Game.LoadSoundEffect("lopetahanet"); 30 49 31 50 public override void Begin() … … 58 77 Camera.ZoomToLevel(); 59 78 Camera.StayInLevel = true; 79 80 starttimartti.Play(); 60 81 } 61 82 … … 79 100 ajastin.Start(); 80 101 } 102 103 //Luodaan kenttäpalikat. 81 104 void LisaaTaso(Vector paikka, double leveys, double korkeus) 82 105 { … … 133 156 pelaaja2.Image = pelaaja2kuva; 134 157 } 135 158 //Näppäinten lisäys. 136 159 void LisaaNappaimet() 137 160 { … … 153 176 Keyboard.Listen(Key.H, ButtonState.Pressed, Ammu, "Ammu ohjus", pelaaja2); 154 177 } 155 //Pelaajien ammuslaskur ien luonti.178 //Pelaajien ammuslaskureiden luonti. 156 179 IntMeter LuoAmmuslaskuri(double sijaintix, double sijaintiy) 157 180 { … … 207 230 void AmmuNolla(Pelaaja hahmo) 208 231 { 209 232 noclip.Play(); 210 233 } 211 234 void Ammu(Pelaaja hahmo) … … 228 251 ohjus.IgnoresCollisionResponse = true; 229 252 Add(ohjus); 253 254 ohjusaani.Play(); 230 255 231 256 hahmo.Ammuslaskuri.AddValue(-1); … … 255 280 kohdePelaaja.ElamaLaskuri.Value--; 256 281 282 if (kohdePelaaja.ElamaLaskuri.Value == 2) 283 lopetaaani.Play(); 284 257 285 if (kohdePelaaja.IsDestroyed || kohdePelaaja.IsDestroying) Timer.SingleShot(2.0, Alkuvalikko); 258 286 } … … 261 289 } 262 290 } 263 //Toinen ase, joka ampuu laaseria, joka ei räjähdä ja etenee nopeasti.291 //Toinen ase, joka ampuu laaseria, joka ei osuessaan räjähdä. 264 292 void Ammu2(Pelaaja hahmo) 265 293 { 266 294 PhysicsObject laaseri = new PhysicsObject(70, 5); 267 295 laaseri.Position = hahmo.Position; 296 //Laaseri sijoitetaan ammuttaessa hieman pelaajan eteen, ettei laaseri tuhoudu osuessaan ampujaan. 268 297 laaseri.X += hahmo.FacingDirection.GetVector().X * 70; 269 laaseri. Color = hahmo.Color;298 laaseri.Image = laaserinkuva; 270 299 laaseri.CollisionIgnoreGroup = 1; 271 300 laaseri.IgnoresGravity = true; … … 277 306 hahmo.Ammuslaskuri.AddValue(-1); 278 307 308 //Laaserin nopeus. 279 309 laaseri.Hit(hahmo.FacingDirection.GetVector() * 4000); 280 310 if (laaseri.Velocity.X < 0) laaseri.Angle += Angle.FromDegrees(180); … … 292 322 laaseri.Destroy(); 293 323 324 if (p.ElamaLaskuri.Value == 2) 325 lopetaaani.Play(); 326 294 327 if (p.IsDestroyed || p.IsDestroying) Timer.SingleShot(2.0, Alkuvalikko); 295 328 } … … 300 333 jytky.Position = hahmo.Position; 301 334 jytky.X += hahmo.FacingDirection.GetVector().X * 80; 302 jytky. Color = hahmo.Color;335 jytky.Image = jytkynkuva; 303 336 jytky.Shape = Shape.Circle; 304 337 jytky.CollisionIgnoreGroup = 1; … … 306 339 jytky.IgnoresCollisionResponse = true; 307 340 Add(jytky); 341 342 jytkynaani.Play(); 308 343 309 344 hahmo.Ammuslaskuri.AddValue(-1); … … 333 368 kohdePelaaja.ElamaLaskuri.Value--; 334 369 370 if (kohdePelaaja.ElamaLaskuri.Value == 2) 371 lopetaaani.Play(); 372 335 373 if (kohdePelaaja.IsDestroyed || kohdePelaaja.IsDestroying) Timer.SingleShot(2.0, Alkuvalikko); 336 374 } -
2017/27/OttoK/1v1MeBitch/1v1MeBitch/_1v1MeBitch/_1v1MeBitch.csproj.Debug.cachefile
r8967 r8997 8 8 Content\shrinejuttu.xnb 9 9 Content\tikassejokapaistetaan.xnb 10 Content\jytky.xnb 11 Content\laaseri.xnb 12 Content\tntsound.xnb 13 Content\quake.xnb 14 Content\start.xnb 15 Content\emptyclip.xnb 16 Content\lopetahanet.xnb -
2017/27/OttoK/1v1MeBitch/1v1MeBitch/_1v1MeBitch/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml
r8967 r8997 83 83 <Time>2017-07-06T14:50:47.7408013+03:00</Time> 84 84 </Item> 85 <Item> 86 <Source>jytky.png</Source> 87 <Name>jytky</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\jytky.xnb</Output> 92 <Time>2017-07-07T10:51:54.8005052+03:00</Time> 93 </Item> 94 <Item> 95 <Source>laaseri.png</Source> 96 <Name>laaseri</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\laaseri.xnb</Output> 101 <Time>2017-07-07T11:00:39.610981+03:00</Time> 102 </Item> 103 <Item> 104 <Source>tntsound.wav</Source> 105 <Name>tntsound</Name> 106 <Importer>WavImporter</Importer> 107 <Processor>SoundEffectProcessor</Processor> 108 <Options>None</Options> 109 <Output>C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\tntsound.xnb</Output> 110 <Time>2017-07-07T11:10:34.8464986+03:00</Time> 111 </Item> 112 <Item> 113 <Source>quake.wav</Source> 114 <Name>quake</Name> 115 <Importer>WavImporter</Importer> 116 <Processor>SoundEffectProcessor</Processor> 117 <Options>None</Options> 118 <Output>C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\quake.xnb</Output> 119 <Time>2017-07-07T11:20:37.6537733+03:00</Time> 120 </Item> 121 <Item> 122 <Source>start.wav</Source> 123 <Name>start</Name> 124 <Importer>WavImporter</Importer> 125 <Processor>SoundEffectProcessor</Processor> 126 <Options>None</Options> 127 <Output>C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\start.xnb</Output> 128 <Time>2017-07-07T11:28:03.7343769+03:00</Time> 129 </Item> 130 <Item> 131 <Source>emptyclip.wav</Source> 132 <Name>emptyclip</Name> 133 <Importer>WavImporter</Importer> 134 <Processor>SoundEffectProcessor</Processor> 135 <Options>None</Options> 136 <Output>C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\emptyclip.xnb</Output> 137 <Time>2017-07-07T11:27:12.1762216+03:00</Time> 138 </Item> 139 <Item> 140 <Source>lopetahanet.wav</Source> 141 <Name>lopetahanet</Name> 142 <Importer>WavImporter</Importer> 143 <Processor>SoundEffectProcessor</Processor> 144 <Options>None</Options> 145 <Output>C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\lopetahanet.xnb</Output> 146 <Time>2017-07-07T11:41:36.612221+03:00</Time> 147 </Item> 85 148 <BuildSuccessful>true</BuildSuccessful> 86 149 <Settings> -
2017/27/OttoK/1v1MeBitch/1v1MeBitch/_1v1MeBitch/obj/x86/Debug/_1v1MeBitch.csproj.FileListAbsolute.txt
r8967 r8997 16 16 C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\shrinejuttu.xnb 17 17 C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\tikassejokapaistetaan.xnb 18 C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\jytky.xnb 19 C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\laaseri.xnb 20 C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\tntsound.xnb 21 C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\quake.xnb 22 C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\start.xnb 23 C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\emptyclip.xnb 24 C:\MyTemp\OttoK\1v1MeBitch\1v1MeBitch\_1v1MeBitch\bin\x86\Debug\Content\lopetahanet.xnb -
2017/27/OttoK/1v1MeBitch/1v1MeBitch/_1v1MeBitch/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt
r8967 r8997 8 8 Content\shrinejuttu.xnb 9 9 Content\tikassejokapaistetaan.xnb 10 Content\jytky.xnb 11 Content\laaseri.xnb 12 Content\tntsound.xnb 13 Content\quake.xnb 14 Content\start.xnb 15 Content\emptyclip.xnb 16 Content\lopetahanet.xnb
Note: See TracChangeset
for help on using the changeset viewer.