Ignore:
Timestamp:
2010-08-06 13:05:32 (9 years ago)
Author:
eelaeepu
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2010/31/eelaeepu/space defense 1.0/Peli.cs

    r1654 r1676  
    2727 
    2828    Label pistenaytto; 
    29     IntMeter pistelaskuri = new IntMeter(0); 
    30  
    31     HighScoreList topLista; 
     29    public static IntMeter pistelaskuri = new IntMeter(0); 
     30 
     31    public static HighScoreList topLista; 
    3232 
    3333    protected override void Begin() 
     
    7676    { 
    7777        alus = new Alus(40, 50); 
     78        alus.onPelaaja = true; 
    7879        alus.AsetaHitpoints(hp); 
    7980        alus.Tag = "omaalus"; 
     
    595596{ 
    596597    private double Hitpoints; 
     598    public bool onPelaaja = false; 
    597599 
    598600    public Alus(double width, double height) 
     
    615617        if (AnnaHitPoints() <= 0 && !this.IsDestroyed()) 
    616618        { 
     619            if (onPelaaja) 
     620            { 
     621                Avaruuspeli.topLista.Show(Avaruuspeli.pistelaskuri.Value); 
     622 
     623            } 
    617624            this.Destroy(); 
    618625        } 
Note: See TracChangeset for help on using the changeset viewer.