Changeset 9639


Ignore:
Timestamp:
2018-06-07 10:09:35 (20 months ago)
Author:
veeranta
Message:
 
Location:
2018/23/VEETIR
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • 2018/23/VEETIR/Pong/Pong/Pong.cs

    r9622 r9639  
    4040    { 
    4141        IntMeter laskuri = new IntMeter(0); 
    42         laskuri.MaxValue = 10; 
     42        laskuri.MaxValue = 19; 
    4343 
    4444        Label naytto = new Label(); 
     
    118118    void AsetaOhjaimet() 
    119119    { 
    120          
     120 
     121        Keyboard.Listen(Key.A, ButtonState.Down, AsetaNopeus, "Pelaaja 1: Liikutamailaa1 ylös", maila1, nopeusYlos); 
     122        Keyboard.Listen(Key.A, ButtonState.Released, AsetaNopeus, null, maila1, Vector.Zero); 
     123 
     124 
    121125        Keyboard.Listen(Key.Z, ButtonState.Down, AsetaNopeus, "Pelaaja 1: Liikuta mailaa alas", maila1, nopusAlas); 
    122126        Keyboard.Listen(Key.Z, ButtonState.Released, AsetaNopeus, null, maila1, Vector.Zero); 
  • 2018/23/VEETIR/Soccer/Soccer/Soccer/Soccer.cs

    r9622 r9639  
    88   public class Soccer : PhysicsGame 
    99{ 
    10  
     10     
    1111    Image tausta = LoadImage("jalapallo"); 
    1212 
     
    6262 
    6363 
    64             vahti = LuoVahti(x: Level.Left + 20.0, y: 0.0); 
     64            vahti = LuoVahti(x: Level.Left + 200.0, y: 0.0); 
    6565        } 
    6666 
     
    8282        vahti.Shape = Shape.Rectangle; 
    8383        Add(vahti); 
     84        vahti.Restitution = 1.0; 
    8485        vahti.X = x; 
    8586        vahti.Y = y; 
     
    9899        Keyboard.Listen(Key.A, ButtonState.Released, Liikuttaa, null, Vector.Zero); 
    99100    } 
     101     
     102         
     103     
     104 
     105     
     106     
    100107} 
Note: See TracChangeset for help on using the changeset viewer.