Changeset 9320 for 2017/31


Ignore:
Timestamp:
2017-08-01 14:58:16 (22 months ago)
Author:
npo17_79
Message:

Pelikenttä: taustalla merimaisema ja esteet mustia.

Location:
2017/31/MirkaH
Files:
58 added
2 edited

Legend:

Unmodified
Added
Removed
  • 2017/31/MirkaH/Pong/Pong/Pong/Pong.cs

    r9307 r9320  
    183183 
    184184    } 
    185     const double PALLON_MIN_NOPEUS = 500; 
     185  const double PALLON_MIN_NOPEUS = 500; 
    186186 
    187     protected override void Update(Time time) 
    188     { 
    189         if (pallo != null && Math.Abs(pallo.Velocity.X) < PALLON_MIN_NOPEUS) 
    190         { 
    191             pallo.Velocity = new Vector(pallo.Velocity.X * 1.1, pallo.Velocity.Y); 
    192         } 
    193         base.Update(time); 
    194     } 
    195  
     187protected override void Update(Time time) 
     188{ 
     189  if (pallo != null && Math.Abs(pallo.Velocity.X) < PALLON_MIN_NOPEUS) 
     190  { 
     191    pallo.Velocity = new Vector(pallo.Velocity.X * 1.1, pallo.Velocity.Y); 
     192  } 
     193  base.Update(time); 
    196194} 
     195   
     196} 
Note: See TracChangeset for help on using the changeset viewer.