Changeset 9055 for 2017/30/MikaelK/Pong
- Timestamp:
- 2017-07-24 14:13:57 (4 years ago)
- Location:
- 2017/30/MikaelK/Pong
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/30/MikaelK/Pong/Pong/Pong/Pong.cs
r9054 r9055 176 176 177 177 178 178 179 } 180 181 182 const double PALLON_MIN_NOPEUS = 500; 183 184 protected override void Update(Time time) 185 { 186 if (pallo != null && Math.Abs(pallo.Velocity.X) < PALLON_MIN_NOPEUS) 187 { 188 pallo.Velocity = new Vector(pallo.Velocity.X * 1.1, pallo.Velocity.Y); 189 } 190 base.Update(time); 191 } 192 193 179 194 }
Note: See TracChangeset
for help on using the changeset viewer.