Changeset 845 for 2010/24/timisahe/Ympyroita/Peli.cs
- Timestamp:
- 2010-06-15 11:31:24 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/24/timisahe/Ympyroita/Peli.cs
r837 r845 72 72 PiirraUhri(); 73 73 PiirraUhri(); 74 Piirranelio(); 75 Piirranelio(); 76 Piirranelio(); 77 Piirranelio(); 78 Piirranelio(); 79 Piirranelio(); 80 Piirranelio(); 81 Piirranelio(); 82 Piirranelio(); 83 Piirranelio(); 84 Piirranelio(); 74 85 75 86 … … 95 106 void PiirraUhri() 96 107 { 97 PhysicsObject uhri = new PhysicsObject( 10.0, 10.0, Shapes.Circle);108 PhysicsObject uhri = new PhysicsObject(20.0, 20.0, Shapes.Circle); 98 109 uhri.X = RandomGen.NextInt(-300, 300); 99 110 uhri.Y = RandomGen.NextInt(-300, 300); … … 105 116 106 117 } 118 void Piirranelio() 119 { 120 PhysicsObject nelio = new PhysicsObject(15.0, 15.0, Shapes.Rectangle); 121 nelio.X = RandomGen.NextInt(-300, 300); 122 nelio.Y = RandomGen.NextInt(-300, 300); 123 nelio.Color = RandomGen.NextColor(); 124 Vector impulssi = new Vector(900.0, 0.0); 125 nelio.Hit(impulssi); 126 nelio.Restitution = 1.0; 127 Add(nelio); 128 129 } 130 107 131 108 132
Note: See TracChangeset
for help on using the changeset viewer.