Changeset 6060 for 2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II/Grand_Theft_Norsu_II.cs
- Timestamp:
- 2015-06-12 11:40:27 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/24/OttoK/Grand Theft Norsu II/Grand Theft Norsu II/Grand Theft Norsu II/Grand_Theft_Norsu_II.cs
r6015 r6060 63 63 kentta.SetTileMethod('N', LisaaPelaaja); 64 64 kentta.SetTileMethod('A', LuoAuto); 65 kentta.SetTileMethod('T', LuoTyyppi );65 kentta.SetTileMethod('T', LuoTyyppi, 2.0, 2.0); 66 66 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 67 67 Level.CreateBorders(); … … 377 377 378 378 } 379 void LuoTyyppi(Vector paikka, double leveys, double korkeus )380 { 381 PhysicsObject tyyppi = new PhysicsObject(leveys , korkeus);379 void LuoTyyppi(Vector paikka, double leveys, double korkeus, double leveysKerroin, double korkeusKerroin) 380 { 381 PhysicsObject tyyppi = new PhysicsObject(leveys * leveysKerroin, korkeus * korkeusKerroin); 382 382 tyyppi.Position = paikka; 383 383 tyyppi.Mass = 50; … … 390 390 { 391 391 392 Timer.SingleShot(10, delegate { LuoTyyppi(tyyppi.Position, tyyppi.Width, tyyppi.Height); });392 Timer.SingleShot(10, delegate { LuoTyyppi(tyyppi.Position, tyyppi.Width, tyyppi.Height, 1, 1); }); 393 393 tyyppi.Destroy(); 394 394 }
Note: See TracChangeset
for help on using the changeset viewer.