- Timestamp:
- 2011-06-09 11:16:37 (10 years ago)
- Location:
- 2011/23/vihakuli/Runner/Runner
- Files:
-
- 6 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/23/vihakuli/Runner/Runner/Runner/Maat/maa1.txt
r1777 r1805 40 40 = ========--- = 41 41 = = 42 = 43 = b=42 = b =======--- = 43 = = 44 44 ===== = 45 45 ===== s aa*** -----=== := -
2011/23/vihakuli/Runner/Runner/Runner/Peli.cs
r1788 r1805 14 14 #region attribuutit 15 15 PlatformCharacter ukko; 16 Image[] UkonKuvat = LoadImages("ukko 1", "ukko2");16 Image[] UkonKuvat = LoadImages("ukko01", "ukko02", "ukko03"); 17 17 Image[] UkonKuvaPeilattu; 18 Image[] Ukkoidlaa = LoadImages("ukkoidlaa ");18 Image[] Ukkoidlaa = LoadImages("ukkoidlaa0"); 19 19 Image vihollisenKuva = LoadImage("vihu"); 20 20 Image ammusLoota = LoadImage("ammusLoota"); 21 21 Image speedLoota = LoadImage("speedPalikka"); 22 22 Image jumpLoota = LoadImage("jumpPalikka"); 23 Image Palikka = LoadImage("Palikka"); 24 Image devil = LoadImage("Devil"); 25 Image taustaKuva = LoadImage("tausta"); 23 26 double liiku = 400; 24 27 int pisteet = 0; … … 69 72 ClearAll(); 70 73 NopeaJuoksuAika.Start(); 74 71 75 72 76 MaxPisteet = 0; … … 101 105 Mouse.ListenOn(valitseMaa, MouseButton.Left, ButtonState.Pressed, ValikkoMaa, null); 102 106 Keyboard.Listen(Key.Enter, ButtonState.Pressed, AloitaPeli, null); 103 104 107 Mouse.IsCursorVisible = true; 105 108 Keyboard.Listen(Key.Escape, ButtonState.Pressed, Lopeta, ""); … … 217 220 } 218 221 219 if (kohde. Color == Color.OrangeRed)222 if (kohde.Image == devil) 220 223 { 221 224 ClearAll(); … … 251 254 ruudut.SetTileMethod('a', LuoAmmukset); 252 255 ruudut.Execute(ruudunLeveys, ruudunKorkeus); 253 //Level.Background.CreateGradient(new Color(100, 0, 100), new Color(49, 740, 74));256 Level.BackgroundColor = Color.MediumPurple; 254 257 Gravity = new Vector(0.0, -800.0); 255 258 teksti.Text = pisteet.ToString() + "/" + MaxPisteet.ToString(); … … 269 272 spawnVihollinen.Position = paikka; 270 273 TeeVihollinen(spawnVihollinen.X, spawnVihollinen.Y); 271 //Add(spawnVihollinen);272 274 } 273 275 … … 306 308 "Top times", 307 309 topLista); 310 topIkkuna.Width = 500; 311 topIkkuna.List.Width = 500; 308 312 topIkkuna.Closed += TallennaPisteet; 309 313 Add(topIkkuna); … … 321 325 PhysicsObject havioPalikka = PhysicsObject.CreateStaticObject(40.0, 40.0); 322 326 havioPalikka.Position = paikka; 323 havioPalikka.Color = Color.OrangeRed; 327 havioPalikka.Image = devil; 328 //havioPalikka.CollisionIgnorer 329 havioPalikka.CollisionIgnoreGroup = 1; 324 330 Add(havioPalikka); 325 331 … … 331 337 spawn.Position = paikka; 332 338 spawn.Color = Color.Black; 339 spawn.CollisionIgnoreGroup = 1; 333 340 Add(spawn); 334 341 } … … 339 346 palikka.Position = paikka; 340 347 palikka.Shape = Shape.Rectangle; 341 palikka.Color = Color.Black; 348 palikka.Image = Palikka; 349 palikka.CollisionIgnoreGroup = 1; 342 350 Add(palikka); 343 351 } … … 349 357 hyppyPalikka.Shape = Shape.Rectangle; 350 358 hyppyPalikka.Image = jumpLoota; 359 hyppyPalikka.CollisionIgnoreGroup = 1; 351 360 Add(hyppyPalikka); 352 361 } … … 358 367 nopeusPalikka.Shape = Shape.Rectangle; 359 368 nopeusPalikka.Image = speedLoota; 369 nopeusPalikka.CollisionIgnoreGroup = 1; 360 370 Add(nopeusPalikka); 361 371 } … … 420 430 void Ammu() 421 431 { 422 ammus = ukko.Weapon.Shoot();423 424 432 if (ammukset > 0) 425 433 { 434 ammus = ukko.Weapon.Shoot(); 426 435 ammus.Size *= 3; 427 436 ammukset--; … … 474 483 vihollinen.Y = y; 475 484 vihollinen.Image = vihollisenKuva; 476 vihollinen.Hit(new Vector( -600,0));485 vihollinen.Hit(new Vector(600,0)); 477 486 vihollinen.IgnoresGravity = true; 478 487 vihollinen.LinearDamping = 1; … … 488 497 kohde.Destroy(); 489 498 } 490 vihollinen.Velocity = -vihollinen.Velocity; 491 } 492 499 tormaaja.Velocity = -tormaaja.Velocity; 500 } 493 501 } -
2011/23/vihakuli/Runner/Runner/RunnerContent/RunnerContent.contentproj
r1788 r1805 89 89 </Compile> 90 90 </ItemGroup> 91 <ItemGroup> 92 <Compile Include="Palikka.png"> 93 <Name>Palikka</Name> 94 <Importer>TextureImporter</Importer> 95 <Processor>TextureProcessor</Processor> 96 </Compile> 97 </ItemGroup> 98 <ItemGroup> 99 <Compile Include="Devil.png"> 100 <Name>Devil</Name> 101 <Importer>TextureImporter</Importer> 102 <Processor>TextureProcessor</Processor> 103 </Compile> 104 </ItemGroup> 105 <ItemGroup> 106 <Compile Include="ukko01.png"> 107 <Name>ukko01</Name> 108 <Importer>TextureImporter</Importer> 109 <Processor>TextureProcessor</Processor> 110 </Compile> 111 <Compile Include="ukko02.png"> 112 <Name>ukko02</Name> 113 <Importer>TextureImporter</Importer> 114 <Processor>TextureProcessor</Processor> 115 </Compile> 116 <Compile Include="ukko03.png"> 117 <Name>ukko03</Name> 118 <Importer>TextureImporter</Importer> 119 <Processor>TextureProcessor</Processor> 120 </Compile> 121 <Compile Include="ukkoIdlaa0.png"> 122 <Name>ukkoIdlaa0</Name> 123 <Importer>TextureImporter</Importer> 124 <Processor>TextureProcessor</Processor> 125 </Compile> 126 </ItemGroup> 127 <ItemGroup> 128 <Compile Include="tausta.png"> 129 <Name>tausta</Name> 130 <Importer>TextureImporter</Importer> 131 <Processor>TextureProcessor</Processor> 132 </Compile> 133 </ItemGroup> 91 134 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 92 135 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.