Changeset 3834


Ignore:
Timestamp:
2012-09-22 15:46:49 (11 years ago)
Author:
jypeleht
Message:

Added to version control.

Location:
2012/26/OlliL/SpaceImpact2
Files:
66 added
1 edited

Legend:

Unmodified
Added
Removed
  • 2012/26/OlliL/SpaceImpact2/SpaceImpact2/SpaceImpact2/SpaceImpact2.cs

    r3392 r3834  
    6464        Level.Background.CreateStars(10000); 
    6565        LuoPistelaskuri(); 
     66        luotähti(); 
     67 
    6668 
    6769        Timer ajastin2 = new Timer(); 
     
    7779            LisaaSatunnainenVihu(); 
    7880            LisaaSatunnainenVihu(); 
     81             
     82          
    7983        }; 
    8084        ajastin.Start(); 
     
    119123    { 
    120124        HighScoreWindow topIkkuna = new HighScoreWindow( 
    121             "Parhaat pisteet", 
     125            "HIGHSCORE", 
    122126            topLista); 
    123127        topIkkuna.Closed += TallennaPisteet; 
     
    174178        Vector impulssi = new Vector(500.0, 0.0); 
    175179        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} 
    184181    void AsetaOhjaimet() 
    185182    { 
     
    314311    public IntMeter pisteLaskuri { get; set; } 
    315312 
     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    
    316329} 
Note: See TracChangeset for help on using the changeset viewer.