Changeset 3834
- Timestamp:
- 2012-09-22 15:46:49 (11 years ago)
- Location:
- 2012/26/OlliL/SpaceImpact2
- Files:
-
- 66 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/26/OlliL/SpaceImpact2/SpaceImpact2/SpaceImpact2/SpaceImpact2.cs
r3392 r3834 64 64 Level.Background.CreateStars(10000); 65 65 LuoPistelaskuri(); 66 luotähti(); 67 66 68 67 69 Timer ajastin2 = new Timer(); … … 77 79 LisaaSatunnainenVihu(); 78 80 LisaaSatunnainenVihu(); 81 82 79 83 }; 80 84 ajastin.Start(); … … 119 123 { 120 124 HighScoreWindow topIkkuna = new HighScoreWindow( 121 " Parhaat pisteet",125 "HIGHSCORE", 122 126 topLista); 123 127 topIkkuna.Closed += TallennaPisteet; … … 174 178 Vector impulssi = new Vector(500.0, 0.0); 175 179 laser.Hit(impulssi); 176 177 // Explosion rajahdys = new Explosion(100); 178 // rajahdys.Position =laser.Position; 179 //rajahdys.Speed = 500.0; 180 //rajahdys.Force = 10000; 181 // rajahdys.ShockwaveColor = Color.Orange; 182 // Add(rajahdys); 183 } 180 } 184 181 void AsetaOhjaimet() 185 182 { … … 314 311 public IntMeter pisteLaskuri { get; set; } 315 312 313 void luotähti() 314 { 315 PhysicsObject tähti = new PhysicsObject(100.0, 100.0); 316 tähti.Shape = Shape.Star; 317 tähti.IgnoresCollisionResponse = true; 318 tähti.Color = Color.HotPink; 319 tähti.AngularVelocity = 2 * Math.PI; 320 FollowerBrain tähdenAivot = new FollowerBrain(alus); 321 tähdenAivot.Active = true; 322 tähdenAivot.Speed = 30; 323 tähti.Brain = tähdenAivot; 324 Add(tähti); 325 } 326 327 328 316 329 }
Note: See TracChangeset
for help on using the changeset viewer.