Changeset 8790


Ignore:
Timestamp:
2017-06-16 12:09:18 (2 years ago)
Author:
npo17_10
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/IlariI/piXgel GAmE/piXgel GAmE/piXgel_GAmE/piXgel_GAmE.cs

    r8788 r8790  
    1717    Image vihollinenkuva = LoadImage("vihollinen"); 
    1818    Image olioruumis = LoadImage("olioruumis"); 
     19    Image ruumis = LoadImage("ruumis"); 
    1920 
    2021    Image[] hahmonKavely = LoadImages("hahmo", "hahmo2"); 
     
    227228        PhysicsObject vasenreuna = Level.CreateLeftBorder(0.0, true); 
    228229        PhysicsObject oikeareuna = Level.CreateRightBorder(0.0, true); 
     230         
     231        alareuna.Color = Color.Transparent; 
     232        ylareuna.Color = Color.Transparent; 
     233        vasenreuna.Color = Color.Transparent; 
     234        oikeareuna.Color = Color.Transparent; 
     235         
    229236        //Level.CreateBorders(1.0, true); 
    230  
    231         Level.Background.Color = Color.Gray; 
     237        ylareuna.Y -= 50.0; 
     238        alareuna.Y += 50.0; 
     239        vasenreuna.X += 50.0; 
     240        oikeareuna.X -= 50.0; 
     241 
     242        Level.Background.Color = Color.Black; 
    232243        Camera.Follow(hahmo); 
    233244        Camera.Zoom(1.5); 
     
    248259            Timer.SingleShot(1.0, delegate 
    249260            { 
    250  
     261                 
    251262                kohde.Destroy(); 
    252263            }); 
     
    269280    void KunPaaseeLahelle() 
    270281    { 
    271         hahmo.Destroy(); 
     282        Keyboard.Disable(Key.Space); 
     283        Keyboard.Disable(Key.Up); 
     284        Keyboard.Disable(Key.Down); 
     285        Keyboard.Disable(Key.Right); 
     286        Keyboard.Disable(Key.Left); 
     287 
     288        { 
     289            hahmo.Image = ruumis; 
     290             
     291 
     292 
     293 
     294        } 
    272295 
    273296    } 
Note: See TracChangeset for help on using the changeset viewer.