Ignore:
Timestamp:
2011-06-10 11:10:08 (10 years ago)
Author:
anlakane
Message:

Päivitin peliäni, laitoin pistelaskun kuntoon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/23/anlakane/SpeedKing/SpeedKing/SpeedKing/Peli.cs

    r1747 r1869  
    3333    Sound piip; 
    3434 
    35     ScoreList topten = new ScoreList(10, false, 0); 
     35    // ScoreList topten = new ScoreList(10, false, 0); 
     36    EasyHighScore topten = new EasyHighScore(); 
    3637 
    3738    public override void Begin() 
    3839    { 
    3940        Phone.DisplayResolution = DisplayResolution.Large; 
    40  
     41        //Phone.DisplayResolution = DisplayResolution.Small; 
     42        topten.Text = ""; 
    4143        painikkeet = new List<GameObject>(); 
    4244        painamattomat = new List<GameObject>(); 
     
    5153        Camera.ZoomToLevel(); 
    5254 
    53         if (DataStorage.Exists("topten.xml")) 
    54         { 
    55             //topfive = DataStorage.Load<ScoreList>(topfive, "topten.xml"); 
    56         } 
     55        //if (DataStorage.Exists("topten.xml")) 
     56        //{ 
     57        //    //topfive = DataStorage.Load<ScoreList>(topfive, "topten.xml"); 
     58        //} 
    5759 
    5860        LisaaPainikkeet(); 
     
    9193        pistenaytto = new Label(montakoPainikettaPainettu.ToString()); 
    9294        pistenaytto.X = 0; 
    93         pistenaytto.Y = -75; 
     95        pistenaytto.Y = -150; 
    9496        pistenaytto.TextColor = Color.White; 
    9597        pistenaytto.Font = Font.DefaultLargeBold; 
     98        pistenaytto.SizeMode = TextSizeMode.StretchText; 
     99        pistenaytto.Size *= 3; 
    96100        Add(pistenaytto); 
    97101    } 
     
    107111        painike2animaatio = new Animation(painike2kuvat); 
    108112        painike3animaatio = new Animation(painike3kuvat); 
    109         painike0animaatio.FPS = 15; 
    110         painike1animaatio.FPS = 15; 
    111         painike2animaatio.FPS = 15; 
    112         painike3animaatio.FPS = 15; 
     113        painike0animaatio.FPS = 12; 
     114        painike1animaatio.FPS = 12; 
     115        painike2animaatio.FPS = 12; 
     116        painike3animaatio.FPS = 12; 
    113117 
    114118        for (int i = 0; i < painikkeidenMaara; i++) 
     
    156160            if (painikkeet[i].IsInside(kosketus.PositionOnWorld)) 
    157161            { 
    158                 //MessageDisplay.Add("Osui " + i); 
    159                 //GameObject g = new GameObject(15, 15, Shape.Circle); 
    160                 //g.Position = kosketus.PositionOnWorld; 
    161                 //Add(g); 
    162162                NappainPainettu(i); 
    163163                return; 
     
    202202        //topten.ScreenList.BackGroundColor = Color.DarkGray; 
    203203        //topten.Show(montakoPainikettaPainettu); 
    204         HighScoreWindow h = new HighScoreWindow("SpeedKing", "Hall of fame", "You reached top ten!", topten, montakoPainikettaPainettu); 
     204        //HighScoreWindow h = new HighScoreWindow("SpeedKing", "Hall of fame", "You reached top ten!", topten, montakoPainikettaPainettu); 
    205205        //h.Width = 700; 
    206206        //h.Height = 400; 
    207         h.Closed += NimiAnnettu; 
    208         Add(h); 
     207        //h.Closed += NimiAnnettu; 
     208        //Add(h); 
     209        topten.EnterAndShow(montakoPainikettaPainettu); 
    209210        Keyboard.Listen(Key.Enter, ButtonState.Pressed, AloitaPeli, null); 
    210211        TouchPanel.Listen(ButtonState.Pressed, AloitaPeliJaResetoiKosketus, null); 
    211212    } 
    212213 
    213     void NimiAnnettu(Window h) 
    214     { 
    215         DataStorage.Save<ScoreList>(topten, "topten.xml"); 
    216     } 
    217  
    218214    void AloitaPeliJaResetoiKosketus(Touch touch) 
    219215    { 
     
    227223        LisaaNappaimet(); 
    228224 
    229         // topten.Hide(); 
    230225        for (int i = 0; i < painikkeet.Count; i++) 
    231226        { 
Note: See TracChangeset for help on using the changeset viewer.