Ignore:
Timestamp:
2015-06-12 11:40:27 (8 years ago)
Author:
otoskinn
Message:
 
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  
    6363        kentta.SetTileMethod('N', LisaaPelaaja); 
    6464        kentta.SetTileMethod('A', LuoAuto); 
    65         kentta.SetTileMethod('T', LuoTyyppi); 
     65        kentta.SetTileMethod('T', LuoTyyppi, 2.0, 2.0); 
    6666        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    6767        Level.CreateBorders(); 
     
    377377 
    378378    } 
    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); 
    382382        tyyppi.Position = paikka; 
    383383        tyyppi.Mass = 50; 
     
    390390    { 
    391391         
    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); }); 
    393393        tyyppi.Destroy(); 
    394394    } 
Note: See TracChangeset for help on using the changeset viewer.