Changeset 1142


Ignore:
Timestamp:
2010-07-07 14:51:26 (9 years ago)
Author:
paaaanro
Message:

aloitin pelin tekemisen

Location:
2010/27/eesaarjo
Files:
23 added
1 edited

Legend:

Unmodified
Added
Removed
  • 2010/27/eesaarjo/Pong/Peli.cs

    r1089 r1142  
    3838        naytto.X = x; 
    3939        naytto.Y = y; 
    40         naytto.TextColor = Color.White; 
     40        naytto.TextColor = Color.Fuchsia; 
    4141        Add(naytto); 
    4242        return laskuri; 
     
    7474        Keyboard.Listen(Key.Up, ButtonState.Down, AsetaNopeus, "Pelaaja 2: Liikuta mailaa ylös", maila2, nopeusYlos); 
    7575        Keyboard.Listen(Key.Up, ButtonState.Released, AsetaNopeus, null, maila2, Vector.Zero); 
     76        
     77        
    7678        Keyboard.Listen(Key.Down, ButtonState.Down, AsetaNopeus, "Pelaaja 2: Liikuta mailaa alas", maila2, nopeusAlas); 
    7779        Keyboard.Listen(Key.Down, ButtonState.Released, AsetaNopeus, null, maila2, Vector.Zero); 
     
    122124        pallo = new PhysicsObject(40.0, 40.0); 
    123125        pallo.Shape = Shapes.Circle; 
    124         pallo.X = -200.0; 
     126        pallo.X = -0.0; 
    125127        pallo.Y = 0.0; 
    126128        pallo.Restitution = 5.0; 
     129        pallo.Color = Color.LightGreen; 
    127130        Add(pallo); 
    128131        vasenReuna = Level.CreateLeftBorder(); 
     
    141144        yläReuna.Restitution = 1.0; 
    142145        yläReuna.IsVisible = false; 
    143         Level.BackgroundColor = Color.Black; 
     146        Level.BackgroundColor = Color.White; 
    144147 
    145148        Camera.ZoomToLevel(); 
     
    173176        maila.Y = y; 
    174177        maila.Restitution = 1.0; 
     178        maila.Color = Color.Black; 
    175179        Add(maila); 
    176180        return maila; 
     
    182186    void AloitaPeli() 
    183187    { 
    184         Vector impulssi = new Vector(555.0, 0.0); 
     188        Vector impulssi = new Vector(1000.0, 0.0); 
    185189        pallo.Hit(impulssi); 
    186190    } 
Note: See TracChangeset for help on using the changeset viewer.