Changeset 7987


Ignore:
Timestamp:
2016-07-07 19:28:23 (3 years ago)
Author:
sieerinn
Message:

Pelin lopetus tehty

File:
1 edited

Legend:

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

    r7986 r7987  
    9797        { 
    9898            currentLevelName = lvlName; 
    99  
    10099            ClearAll(); 
     100 
     101            // Jos aloitetaan hubista kaikilla kamoilla, niin peli on voitettu. 
     102            if (collectedParts.Count == 3) 
     103            { 
     104                Action<double, string> makeLabel = (y, text) => 
     105                { 
     106                    Add(new Label(text) { Y = y, TextColor = Color.White }); 
     107                }; 
     108                Level.Background.Color = Color.Black; 
     109                makeLabel(50, "The advenae managed to repair their ship\n          and flew to their home planet."); 
     110                makeLabel(-50, "Your final score is <insert score here>"); 
     111                Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     112                return; 
     113            } 
     114 
    101115             
    102116            advenae = new List<Player>(); 
Note: See TracChangeset for help on using the changeset viewer.