Changeset 9070 for 2017


Ignore:
Timestamp:
2017-07-24 15:01:05 (23 months ago)
Author:
npo17_61
Message:
 
Location:
2017/30/TuomasH/Pong
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • 2017/30/TuomasH/Pong/Pong/Pong/Pong.cs

    r9052 r9070  
    3131    PhysicsObject alaReuna; 
    3232    PhysicsObject yläReuna; 
     33      
    3334    
    3435     
     
    4142        AsetaOhjaimet(); 
    4243        LisaaLaskurit(); 
     44         
    4345        
    4446        
     
    5456            pallo.Y = 0.0; 
    5557        pallo.CanRotate = false; 
     58        pallo.Color = Color.Aqua; 
    5659 
    5760         vasenReuna = Level.CreateLeftBorder(); 
     
    6164         oikeaReuna = Level.CreateRightBorder(); 
    6265        oikeaReuna.IsVisible = false; 
    63         oikeaReuna.Restitution = 0.0; 
    64         oikeaReuna.KineticFriction = 1.0; 
     66        oikeaReuna.Restitution = 1.0; 
     67        oikeaReuna.KineticFriction = 0.0; 
     68         
     69     
    6570        alaReuna = Level.CreateBottomBorder(); 
    6671        alaReuna.Restitution = 1.0; 
     
    7681            Level.Background.Color = Color.Black; 
    7782            Camera.ZoomToLevel(); 
    78        maila1 = LuoMaila(Level.Left + 20.0, 0.0); 
     83        
     84        maila1 = LuoMaila(Level.Left + 20.0, 0.0); 
    7985       maila2 = LuoMaila(Level.Right - 20.0, 0.0); 
     86         
     87         
    8088        AddCollisionHandler(pallo, PallonTormays); 
    8189 
     
    8391    void AloitaPeli() 
    8492    { 
    85         Vector impulssi = new Vector(400.0, 50.0); 
     93        Vector impulssi = new Vector(350.0, 50.0); 
    8694        pallo.Hit(impulssi); 
    8795 
     
    101109        Add(maila); 
    102110        return maila; 
     111       
    103112 
    104113 
     
    129138        ControllerOne.Listen(Button.Back, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    130139        ControllerTwo.Listen(Button.Back, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     140 
    131141 
    132142 
  • 2017/30/TuomasH/Pong/Pong/Pong/obj/x86/Debug/Pong.csproj.FileListAbsolute.txt

    r9036 r9070  
    33C:\MyTemp\TuomasH\Pong\Pong\Pong\bin\x86\Debug\Jypeli.dll 
    44C:\MyTemp\TuomasH\Pong\Pong\Pong\bin\x86\Debug\Jypeli.xml 
    5 C:\MyTemp\TuomasH\Pong\Pong\Pong\obj\x86\Debug\Pong.csprojResolveAssemblyReference.cache 
    65C:\MyTemp\TuomasH\Pong\Pong\Pong\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
    76C:\MyTemp\TuomasH\Pong\Pong\Pong\obj\x86\Debug\Pong.exe 
    87C:\MyTemp\TuomasH\Pong\Pong\Pong\obj\x86\Debug\Pong.pdb 
     8C:\MyTemp\TuomasH\Pong\Pong\Pong\obj\x86\Debug\Pong.csprojResolveAssemblyReference.cache 
Note: See TracChangeset for help on using the changeset viewer.