Ignore:
Timestamp:
2016-06-16 10:41:34 (4 years ago)
Author:
TaLiimat
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/24/TaneliL/FysiikkaPeli2/2016peli/2016peli/_2016peli/_2016peli.cs

    r7355 r7357  
    8989    } 
    9090 
     91    void lisaaPisteita() 
     92    { 
     93        pisteLaskuri.Value += 200; 
     94    } 
     95 
    9196    void tarkistaLaskuri() 
    9297    { 
     
    114119        Keyboard.Listen(Key.A, ButtonState.Down, liikkuminen, null, new Vector(-100, 0)); 
    115120        Keyboard.Listen(Key.D, ButtonState.Down, liikkuminen, null, new Vector(100, 0)); 
     121        Keyboard.Listen(Key.Space, ButtonState.Pressed, lisaaPisteita, null); 
    116122        Mouse.Listen(MouseButton.Left, ButtonState.Down, ammu, "", pelaajanAse); 
    117123        Mouse.ListenMovement(0.1, tahtaa, ""); 
Note: See TracChangeset for help on using the changeset viewer.