Changeset 1540 for 2010/23


Ignore:
Timestamp:
2010-08-02 18:44:15 (13 years ago)
Author:
hniemi
Message:

Highscoreslistaa lisätty, hieman kesken

Location:
2010/23/hniemi/JyTris/JyTris
Files:
4 added
8 edited

Legend:

Unmodified
Added
Removed
  • 2010/23/hniemi/JyTris/JyTris/Content/Content.contentproj

    r1478 r1540  
    1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> 
     1<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> 
    22  <PropertyGroup> 
    33    <ProjectGuid>f4dc0895-798c-4bef-93d3-7d35766b520d</ProjectGuid> 
     
    3434    <Reference Include="Microsoft.Xna.Framework.Content.Pipeline.XImporter, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> 
    3535  </ItemGroup> 
     36  <ItemGroup> 
     37    <Compile Include="peliloppu.png"> 
     38      <Name>peliloppu</Name> 
     39      <Importer>TextureImporter</Importer> 
     40      <Processor>TextureProcessor</Processor> 
     41    </Compile> 
     42  </ItemGroup> 
    3643</Project> 
  • 2010/23/hniemi/JyTris/JyTris/Content/obj/x86/Debug/ContentPipeline.xml

    r1539 r1540  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
     4    <Item> 
     5      <Source>peliloppu.png</Source> 
     6      <Name>peliloppu</Name> 
     7      <Importer>TextureImporter</Importer> 
     8      <Processor>TextureProcessor</Processor> 
     9      <Options>None</Options> 
     10      <Output>D:\Projektit\JyTris\JyTris\bin\x86\Debug\Content\peliloppu.xnb</Output> 
     11      <Time>2010-08-02T18:00:33.4095377+03:00</Time> 
     12    </Item> 
    413    <BuildSuccessful>true</BuildSuccessful> 
    514    <Settings> 
     
    1423    <Assemblies> 
    1524      <Assembly> 
     25        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 
     26        <Value>2009-05-28T00:16:14+03:00</Value> 
     27      </Assembly> 
     28      <Assembly> 
     29        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 
     30        <Value>2009-05-28T00:16:06+03:00</Value> 
     31      </Assembly> 
     32      <Assembly> 
     33        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 
     34        <Value>2009-05-28T00:16:16+03:00</Value> 
     35      </Assembly> 
     36      <Assembly> 
     37        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 
     38        <Value>2009-05-28T00:16:26+03:00</Value> 
     39      </Assembly> 
     40      <Assembly> 
     41        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 
     42        <Value>2009-05-28T00:16:12+03:00</Value> 
     43      </Assembly> 
     44      <Assembly> 
     45        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v3.1\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 
     46        <Value>2009-05-28T00:16:06+03:00</Value> 
     47      </Assembly> 
     48      <Assembly> 
    1649        <Key>C:\Windows\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\3.1.0.0__6d5c3888ef60e27d\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 
    1750        <Value>2010-07-28T21:36:27.8906026+03:00</Value> 
  • 2010/23/hniemi/JyTris/JyTris/JyTris.csproj

    r1482 r1540  
    130130    </BootstrapperPackage> 
    131131  </ItemGroup> 
     132  <ItemGroup> 
     133    <Compile Include="topten.dat"> 
     134      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 
     135    </Compile> 
     136  </ItemGroup> 
    132137  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    133138  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\Microsoft.Xna.GameStudio.targets" /> 
  • 2010/23/hniemi/JyTris/JyTris/Peli.cs

    r1539 r1540  
    3333 
    3434        //Statistiikka 
    35         double vaikeusaste = 0.9 ; 
     35        double vaikeusaste = 0.9; 
     36        bool purkkabool = false; 
    3637        IntMeter pisteet = new IntMeter(0); 
    3738        IntMeter taso = new IntMeter(0); 
    3839        int tuhotutRivit = 0; 
     40        HighScoreList topLista; 
    3941 
    4042        Label tasonaytto; 
     
    6062            AlkuIntro(); 
    6163            AsetaMenuNappaimet(); 
     64            AsetaPistelista(); 
    6265            LuoHud(); 
     66        } 
     67 
     68        public void AsetaPistelista() 
     69        { 
     70            topLista = HighScoreList.LoadOrCreate("topten.dat",10); 
    6371        } 
    6472 
     
    450458            AsetaPeliNappaimet(); 
    451459 
     460             
     461 
     462            if (purkkabool) 
     463            { 
     464                topLista.Hide(); 
     465                purkkabool = false; 
     466            } 
     467 
    452468            vaikeusaste = 0.9; 
    453469            tiputusajastin = new Timer(); 
     
    564580            tiputusajastin.Stop(); 
    565581            status.Text = "Hävisit pelin!"; 
     582            //status.Image = LoadImage("peliloppu"); 
    566583            status.IsVisible = true; 
     584            topLista.Show(pisteet.Value); 
     585            purkkabool = true; 
    567586            ClearControls(); 
    568587            AsetaMenuNappaimet(); 
  • 2010/23/hniemi/JyTris/JyTris/obj/x86/Debug/JyTris.csproj.FileListAbsolute.txt

    r1515 r1540  
    2828C:\MyTemp\hniemi\JyTris\JyTris\obj\x86\Debug\JyTris.exe 
    2929C:\MyTemp\hniemi\JyTris\JyTris\obj\x86\Debug\JyTris.pdb 
     30D:\Projektit\JyTris\JyTris\bin\x86\Debug\Content\peliloppu.xnb 
     31D:\Projektit\JyTris\JyTris\bin\x86\Debug\topten.dat 
Note: See TracChangeset for help on using the changeset viewer.