Changeset 5195 for 2014/27


Ignore:
Timestamp:
2014-07-01 10:02:13 (5 years ago)
Author:
arjuhoyl
Message:
 
Location:
2014/27/ArttuH/pong
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/ArttuH/pong/pong/pong/obj/x86/Debug/ContentPipeline-{A41E2C13-FB6C-4B31-8708-F856A339D2D3}.xml

    r5170 r5195  
    1717      <Assembly> 
    1818        <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 
    19         <Value>2014-04-22T21:32:12.354917+03:00</Value> 
     19        <Value>2014-04-22T20:39:23.3459982+03:00</Value> 
    2020      </Assembly> 
    2121    </Assemblies> 
  • 2014/27/ArttuH/pong/pong/pong/obj/x86/Debug/pong.csproj.FileListAbsolute.txt

    r5170 r5195  
    11C:\MyTemp\ArttuH\pong\pong\pong\bin\x86\Debug\pong.exe 
    22C:\MyTemp\ArttuH\pong\pong\pong\bin\x86\Debug\pong.pdb 
    3 C:\MyTemp\ArttuH\pong\pong\pong\bin\x86\Debug\Jypeli.dll 
    43C:\MyTemp\ArttuH\pong\pong\pong\bin\x86\Debug\Jypeli.xml 
    54C:\MyTemp\ArttuH\pong\pong\pong\obj\x86\Debug\pong.csprojResolveAssemblyReference.cache 
  • 2014/27/ArttuH/pong/pong/pong/pong.cs

    r5170 r5195  
    2323    IntMeter pelaajan1pisteet; 
    2424    IntMeter pelaajan2pisteet; 
    25     PhysicsObject oikeareuna; 
    26     PhysicsObject vasenreuna; 
    2725 
    2826    public override void Begin() 
     
    5351        maila2 = luoMaila(Level.Right - 20.0, 0.0); 
    5452 
    55         vasenreuna = Level.CreateLeftBorder(); 
    56         vasenreuna.Restitution = 1.0; 
    57         vasenreuna.IsVisible = false; 
    58         oikeareuna = Level.CreateRightBorder(); 
    59         oikeareuna.Restitution = 1.0; 
    60         oikeareuna.IsVisible = false; 
    61         PhysicsObject alalreuna = Level.CreateBottomBorder(); 
    62         oikeareuna.Restitution = 1.0; 
    63         oikeareuna.IsVisible = false; 
    64         PhysicsObject ylareuna = Level.CreateTopBorder(); 
    65         ylareuna.Restitution = 1.0; 
    66         ylareuna.IsVisible = false; 
     53        vasenReuna = Level.CreateLeftBorder(); 
     54        vasenReuna.Restitution = 1.0; 
     55        vasenReuna.IsVisible = false; 
     56 
     57        oikeaReuna = Level.CreateRightBorder(); 
     58        oikeaReuna.Restitution = 1.0; 
     59        oikeaReuna.IsVisible = false; 
     60 
     61        PhysicsObject alaReuna = Level.CreateBottomBorder(); 
     62        alaReuna.Restitution = 1.0; 
     63        alaReuna.IsVisible = false; 
     64 
     65        PhysicsObject ylaReuna = Level.CreateTopBorder(); 
     66        ylaReuna.Restitution = 1.0; 
     67        ylaReuna.IsVisible = false; 
     68 
    6769        Level.Background.Color = Color.Black; 
    6870 
     
    7274    void aloitapeli() 
    7375    { 
    74         Vector impulssi = new Vector(500.0, 0.0); 
     76        Vector impulssi = new Vector(900.0, 0.0); 
    7577        pallo.Hit (impulssi); 
    7678    } 
     
    135137    naytto.Y = y; 
    136138    naytto.TextColor = Color.White; 
    137     naytto.BorderColor = Level.BackgroundColor; 
     139    naytto.BorderColor = Level.Background.Color; 
    138140    naytto.Color = Level.Background.Color; 
    139141    Add(naytto); 
     
    143145void kasittelepallontormays(PhysicsObject pallo, PhysicsObject kohde) 
    144146{ 
    145     if (kohde == oikeareuna) 
     147    if (kohde == oikeaReuna) 
    146148    { 
    147149        pelaajan1pisteet.Value += 1; 
    148150    } 
    149     else if (kohde == vasenreuna) 
     151    else if (kohde == vasenReuna) 
    150152    { 
    151153        pelaajan2pisteet.Value += 1; 
Note: See TracChangeset for help on using the changeset viewer.