Changeset 2495 for 2011/31


Ignore:
Timestamp:
2011-08-02 14:56:48 (8 years ago)
Author:
alnirham
Message:

Talletus.

Location:
2011/31/AleksiN
Files:
31 added
6 edited

Legend:

Unmodified
Added
Removed
  • 2011/31/AleksiN/Pong/Pong/Peli.cs

    r2466 r2495  
    7575    } 
    7676 
     77    void lyopalloa() 
     78    { 
     79        Vector lyo = new Vector(300.0, 0.0); 
     80        pallo.Hit(lyo); 
     81    } 
     82 
    7783    PhysicsObject LuoMaila(double x, double y) 
    7884    { 
     
    98104        Keyboard.Listen(Key.Down, ButtonState.Down, AsetaNopeus, "Pelaaja 2, liikuta mailaa alas", maila2, NopeusAlas); 
    99105        Keyboard.Listen(Key.Down, ButtonState.Released, AsetaNopeus, null, maila2, Vector.Zero); 
     106 
     107        Keyboard.Listen(Key.Space, ButtonState.Down, lyopalloa, "Lyö palloa"); 
    100108 
    101109        Keyboard.Listen(Key.F1, ButtonState.Pressed, ShowControlHelp, "Näytä ohjeet"); 
     
    131139    { 
    132140        IntMeter laskuri = new IntMeter(0); 
    133         laskuri.MaxValue = 10; 
     141        laskuri.MaxValue = 100; 
    134142        Label naytto = new Label(); 
    135143        naytto.BindTo(laskuri); 
Note: See TracChangeset for help on using the changeset viewer.