Changeset 1869 for 2011/23


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

Päivitin peliäni, laitoin pistelaskun kuntoon.

Location:
2011/23/anlakane/SpeedKing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 2011/23/anlakane/SpeedKing/SpeedKing.sln

    r1747 r1869  
    44Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpeedKing", "SpeedKing\SpeedKing\SpeedKing.csproj", "{F0A9F9BA-A38E-44DD-9236-63AEA990C793}" 
    55EndProject 
    6 Project("{96E2B04D-8817-42C6-938A-82C39BA4D311}") = "SpeedKingContent", "SpeedKing\SpeedKingContent\SpeedKingContent.contentproj", "{E0F021DE-C559-4250-989F-A5565C4EA06F}" 
     6Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpeedKingContent", "SpeedKing\SpeedKingContent\SpeedKingContent.contentproj", "{E0F021DE-C559-4250-989F-A5565C4EA06F}" 
    77EndProject 
    88Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jypeli", "..\..\..\..\..\Jypeli\trunk\Jypeli\Jypeli.csproj", "{74DD1DDD-283D-45D7-A79D-3DCB120708A6}" 
     
    5757                {2193B5EE-2685-43CA-9B01-7DEDCBBDEA0E}.Debug|Windows Phone.Build.0 = Debug|Windows Phone 
    5858                {2193B5EE-2685-43CA-9B01-7DEDCBBDEA0E}.Debug|x86.ActiveCfg = Debug|Windows Phone 
     59                {2193B5EE-2685-43CA-9B01-7DEDCBBDEA0E}.Debug|x86.Build.0 = Debug|Windows Phone 
    5960                {2193B5EE-2685-43CA-9B01-7DEDCBBDEA0E}.Release|Mixed Platforms.ActiveCfg = Release|Windows Phone 
    6061                {2193B5EE-2685-43CA-9B01-7DEDCBBDEA0E}.Release|Mixed Platforms.Build.0 = Release|Windows Phone 
     
    6263                {2193B5EE-2685-43CA-9B01-7DEDCBBDEA0E}.Release|Windows Phone.Build.0 = Release|Windows Phone 
    6364                {2193B5EE-2685-43CA-9B01-7DEDCBBDEA0E}.Release|x86.ActiveCfg = Release|Windows Phone 
     65                {2193B5EE-2685-43CA-9B01-7DEDCBBDEA0E}.Release|x86.Build.0 = Release|Windows Phone 
    6466        EndGlobalSection 
    6567        GlobalSection(SolutionProperties) = preSolution 
  • 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.