Ignore:
Timestamp:
2019-06-06 15:02:32 (3 months ago)
Author:
saniitty
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/SamuelN/spaceShootergame/spaceShootergame/SpaceShooter.cs

    r9907 r9923  
    2727    Timer shootTimer; 
    2828    PhysicsObject body; 
    29     DoubleMeter scoreMeter; 
     29    IntMeter scoreMeter; 
    3030    ScoreList sl = new ScoreList(10, false, 100, "<empty>"); 
    3131 
     
    3838        Screen.Width = 1000; 
    3939        Screen.Height = 1080; 
    40         IsFullScreen = true; 
     40        //IsFullScreen = true; 
    4141        Level.Background.Color = Color.Black; 
    4242 
     
    336336        enemyHpMeter.LowerLimit += EnemyDie; 
    337337 
    338         scoreMeter = new DoubleMeter(0); 
     338        scoreMeter = new IntMeter(0); 
    339339 
    340340        Label scoreLabel = new Label(); 
     
    451451    void EndGame() 
    452452    { 
    453         scoreMeter.Value += player.Y; 
     453        scoreMeter.Value += (int)player.Y; 
    454454        ClearAll(); 
    455455        MediaPlayer.Stop(); 
     
    458458        Level.Background.Image = LoadImage("wall"); 
    459459        t = new Timer(); 
    460         t.Interval = 0.1; 
     460        t.Interval = 0.06; 
    461461        t.Timeout += CreateError; 
    462462        t.Start(); 
     
    464464    void CreateError() 
    465465    { 
    466         if (times < 40) 
     466        if (times < 50) 
    467467        { 
    468468            Widget ww = new Widget(262, 120); 
    469469            ww.Image = LoadImage("error"); 
    470470            ww.Position = Level.GetRandomPosition(); 
    471             Add(ww); 
     471            Add(ww, 2); 
    472472            PlaySound(RandomGen.SelectOne("errorSound")); 
    473473            times++; 
     
    485485        w2.Image = bsod; 
    486486        PlaySound("errorSound"); 
    487         Add(w2); 
    488         Timer.SingleShot(10, HighScores); 
     487        Add(w2, 2); 
     488        Timer.SingleShot(1, HighScores); 
    489489    } 
    490490 
     
    493493        HighScoreWindow scoreWindow = new HighScoreWindow("Highscores","Your score was %p! Enter your name:", sl, scoreMeter.Value); 
    494494        scoreWindow.Closed += SaveScores; 
     495        scoreWindow.HorizontalSizing = Sizing.FixedSize; 
     496        scoreWindow.PreferredSize = new Vector(1000, 1000); 
    495497        Add(scoreWindow); 
    496498    } 
Note: See TracChangeset for help on using the changeset viewer.