Changeset 8971 for 2017/27/KasmirK


Ignore:
Timestamp:
2017-07-06 14:58:34 (6 years ago)
Author:
npo17_51
Message:
 
Location:
2017/27/KasmirK
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • 2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2.cs

    r8930 r8971  
    99public class Tasohyppelypeli2 : PhysicsGame 
    1010{ 
    11      
    1211 
     12    Image taustakuva = LoadImage(""); 
    1313    const double nopeus = 300; 
    1414    const double hyppyNopeus = 50; 
     
    3434        Camera.StayInLevel = true; 
    3535    } 
    36  
    3736    void LuoKentta() 
    3837    { 
    39         //ColorTileMap ruudut = ColorTileMap.FromLevelAsset("levelmap"); 
    40         //ruudut.Execute(20, 20); 
     38        ColorTileMap ruudut = ColorTileMap.FromLevelAsset("levelmap"); 
     39        ruudut.Execute(20, 20); 
    4140        GameObject tausta = new GameObject(Level.Width, Level.Height); 
    4241         
     
    4443        Level.Background.CreateGradient(Color.DarkBrown, Color.Black); 
    4544        Level.AmbientLight = 0.1; 
    46         valo = new Light(); 
    47         valo.Intensity = 1.4; 
    48         valo.Distance = 18; 
    49         valo.Position = pelaaja1.Position; 
    50         Add(valo); 
     45        //valo = new Light(); 
     46        //valo.Intensity = 1.4; 
     47        //valo.Distance = 18; 
     48        //valo.Position = pelaaja1.Position; 
     49        //Add(valo); 
    5150    } 
    5251 
    5352    protected override void Paint(Canvas canvas) 
    5453    { 
    55         valo.Position = pelaaja1.Position; 
     54        //valo.Position = pelaaja1.Position; 
    5655        base.Paint(canvas); 
    5756    } 
     
    121120    { 
    122121        maaliAani.Play(); 
    123         MessageDisplay.Add("N-Nani??~"); 
     122        MessageDisplay.Add(""); 
    124123        tahti.Destroy(); 
    125124    } 
Note: See TracChangeset for help on using the changeset viewer.