Ignore:
Timestamp:
2016-07-08 09:34:38 (5 years ago)
Author:
sieerinn
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/VenienteFragore.cs

    r8015 r8017  
    3737        private readonly List<string> collectedParts = new List<string>(); 
    3838        private IntMeter lives; 
    39         private DoubleMeter pointsCounter; 
     39        private IntMeter pointsCounter; 
    4040 
    4141        private List<Player> advenae; 
     
    107107 
    108108 
    109             pointsCounter = new DoubleMeter(0, 0, 1000000); 
     109            pointsCounter = new IntMeter(0); 
    110110            pointsCounter.Changed += PointsGained; 
    111111 
    112             StartLevel("thehub"); 
     112            StartLevel("desolatecaves"); 
    113113         
    114114 
     
    116116        } 
    117117 
    118         private void PointsGained(double oldValue, double newValue) 
     118        private void PointsGained(int oldValue, int newValue) 
    119119        { 
    120120            double diff = newValue - oldValue; 
     
    129129            Label liveMeter = new Label(Screen.Width * 0.10, Screen.Height * 0.05); 
    130130            liveMeter.Position = new Vector(Screen.Left + Screen.Width * 0.165, Screen.Top - Screen.Height * 0.1); 
    131            
    132              
    133131            liveMeter.BindTo(lives); 
    134132            liveMeter.HorizontalAlignment = HorizontalAlignment.Center; 
     
    144142            face.Position = new Vector(Screen.Left + Screen.Width * 0.12, Screen.Top - Screen.Height * 0.1); 
    145143            Add(face); 
     144 
     145            Label scoreLabel = new Label(pointsCounter); 
     146            scoreLabel.X = Screen.Right - 200; 
     147            scoreLabel.Y = Screen.Top - 100; 
     148            Add(scoreLabel); 
    146149        } 
    147150 
Note: See TracChangeset for help on using the changeset viewer.