- Timestamp:
- 2010-07-27 14:58:04 (13 years ago)
- Location:
- 2010/30/johulkko
- Files:
-
- 24 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/30/johulkko/pong/Peli.cs
r1312 r1333 6 6 public class Peli : PhysicsGame 7 7 { 8 Vector nopeusYlos = new Vector(0, 400);9 Vector nopeusAlas = new Vector(0, 400);8 Vector nopeusYlos = new Vector(0, 500); 9 Vector nopeusAlas = new Vector(0, -500); 10 10 11 11 PhysicsObject pallo; … … 31 31 void LuoKentta() 32 32 { 33 pallo = new PhysicsObject(2 0.0, 20.0);33 pallo = new PhysicsObject(21.0, 20.0); 34 34 pallo.Shape = Shapes.Circle; 35 35 Add(pallo); … … 169 169 void KasittelePallonTormays(PhysicsObject pallo, PhysicsObject kohde) 170 170 { 171 double xNopeus = pallo.Velocity.X; 172 171 173 if (kohde == oikeaReuna) 172 174 {
Note: See TracChangeset
for help on using the changeset viewer.