Changeset 1728 for 2011/23/mikmatla


Ignore:
Timestamp:
2011-06-06 15:30:16 (8 years ago)
Author:
joaamaka
Message:

Huijaus nappi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/23/mikmatla/pinkiponki/FysiikkaPeli1/FysiikkaPeli1/Peli.cs

    r1717 r1728  
    9393    { 
    9494        IntMeter laskuri = new IntMeter(0); 
    95         laskuri.MaxValue = 10; 
     95        laskuri.MaxValue = 998; 
    9696        Label naytto = new Label(); 
    9797        naytto.BindTo(laskuri); 
     
    172172        Keyboard.Listen(Key.Space, ButtonState.Pressed, Release, "Liikuta palloa"); 
    173173 
     174        Keyboard.Listen(Key.P, ButtonState.Down, Huijaus1, ""); 
     175 
    174176        Keyboard.Listen(Key.W, ButtonState.Down, AsetaNopeus, "1 ylös", maila1, nopeusYlos); 
    175177        Keyboard.Listen(Key.W, ButtonState.Released, AsetaNopeus, null, maila1, Vector.Zero); 
     
    183185    } 
    184186 
     187    void Huijaus1() 
     188    { 
     189        pelaaja2pisteet.Value += 1; 
     190    } 
     191 
    185192    void Release() 
    186193    { 
Note: See TracChangeset for help on using the changeset viewer.