Changeset 6507 for 2015


Ignore:
Timestamp:
2015-06-29 12:34:26 (4 years ago)
Author:
misakana
Message:

mailat melkein liikkuvat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/27/EemilI/Pong/Pong/Pong/Pong.cs

    r6495 r6507  
    1010{ 
    1111    PhysicsObject pallo; 
     12 
     13    Vector nopeusYlos=new Vector(object,200); 
     14    Vector nopeusAlas = new Vector (0, -200); 
     15 
     16    PhysicsObject maila1; 
     17    PhysicsObject maila2; 
    1218 
    1319    public override void Begin() 
     
    6672    { 
    6773        Keyboard.Listen(Key.Up, ButtonState.Down, LiikutaMaila1Ylos, "pelaaja 1: Liikuta mailaa ylös"); 
    68         Keyboard.Listen(Key 
     74        Keyboard.Listen(Key.Up, ButtonState.Released, PysaytaMaila1 "null"); 
    6975 
    7076        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    7177    } 
     78 
     79    void AsetaNopeus(PhysicsObject maila, Vector nopeus) 
     80    { 
     81        maila.Velocity = nopeus; 
     82    } 
    7283} 
Note: See TracChangeset for help on using the changeset viewer.