Changeset 8722 for 2017/24/EljaL


Ignore:
Timestamp:
2017-06-15 13:54:24 (2 years ago)
Author:
npo17_22
Message:

peli on kokonaan valmis mutta ei ole testattu

Location:
2017/24/EljaL/TheMetsäsurvivor
Files:
14 added
8 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/EljaL/TheMetsäsurvivor/TheMetsäsurvivor/TheMetsäsurvivor/TheMetsäsurvivor.cs

    r8712 r8722  
    99public class TheMetsäsurvivor : PhysicsGame 
    1010{ 
     11     
    1112    PhysicsObject ihminen; 
    1213    PhysicsObject karhu; 
     14    Image ihminenkuva = LoadImage("ihminen"); 
     15    Image karhukuva = LoadImage("karhu"); 
     16    Image puukuva = LoadImage("Puu"); 
     17    Image kivikuva = LoadImage("kivi"); 
     18    Timer aikaLaskuri; 
     19 
    1320    public override void Begin() 
    1421    { 
     
    2835        ihminen.CanRotate = true; 
    2936        ihminen.Restitution = 0.0; 
    30         ihminen.Shape = Shape.Pentagon; 
     37        ihminen.Image = ihminenkuva; 
     38        ihminen.Shape = Shape.Circle; 
    3139        Add(ihminen); 
    3240 
     
    4149        karhu.Tag = "karhu"; 
    4250        karhu.Brain = seuraajanAivot; 
     51        karhu.Image = karhukuva; 
    4352        Add(karhu); 
    4453 
     
    124133        kivi.Tag = "kivi"; 
    125134        kivi.Tag = "tolppa"; 
     135        kivi.Image = kivikuva; 
    126136        Add(kivi); 
    127137 
     
    233243        puu.Tag = "tolppa"; 
    234244        puu.Tag = "puu"; 
     245        puu.Image = puukuva; 
     246        puu.Shape = Shape.Circle; 
    235247        Add(puu); 
    236248    } 
     
    267279    void LuoAikaLaskuri() 
    268280    { 
    269         Timer aikaLaskuri = new Timer(); 
     281        aikaLaskuri = new Timer(); 
     282        aikaLaskuri.Timeout += TestaaAika; 
    270283        aikaLaskuri.Start(); 
    271284 
     
    276289        aikaNaytto.Color = Color.Wheat; 
    277290        aikaNaytto.DecimalPlaces = 0; 
    278         if (pojolaskuri > 999) 
    279         { 
    280             aikaLaskuri.Stop(); 
    281         } 
     291 
    282292 
    283293        aikaNaytto.BindTo(aikaLaskuri.SecondCounter); 
     
    285295    } 
    286296    IntMeter puugen; 
     297 
     298    void TestaaAika() 
     299    { 
     300        if (pojolaskuri > 999) 
     301        { 
     302            aikaLaskuri.Pause(); 
     303            MessageDisplay.Add("voitit"); 
     304        } 
     305    } 
    287306 
    288307    void luopuugen() 
  • 2017/24/EljaL/TheMetsäsurvivor/TheMetsäsurvivor/TheMetsäsurvivor/obj/x86/Debug/ContentPipeline-{3FE3A1DE-8588-4F92-B05A-56882A8DB65B}.xml

    r8626 r8722  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
     4    <Item> 
     5      <Source>ihminen.png</Source> 
     6      <Name>ihminen</Name> 
     7      <Importer>TextureImporter</Importer> 
     8      <Processor>TextureProcessor</Processor> 
     9      <Options>None</Options> 
     10      <Output>C:\MyTemp\EljaL\TheMetsäsurvivor\TheMetsäsurvivor\TheMetsäsurvivor\bin\x86\Debug\Content\ihminen.xnb</Output> 
     11      <Time>2017-06-15T13:10:37.5870228+03:00</Time> 
     12    </Item> 
     13    <Item> 
     14      <Source>karhu.png</Source> 
     15      <Name>karhu</Name> 
     16      <Importer>TextureImporter</Importer> 
     17      <Processor>TextureProcessor</Processor> 
     18      <Options>None</Options> 
     19      <Output>C:\MyTemp\EljaL\TheMetsäsurvivor\TheMetsäsurvivor\TheMetsäsurvivor\bin\x86\Debug\Content\karhu.xnb</Output> 
     20      <Time>2017-06-15T13:17:55.0274976+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>Puu.png</Source> 
     24      <Name>Puu</Name> 
     25      <Importer>TextureImporter</Importer> 
     26      <Processor>TextureProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>C:\MyTemp\EljaL\TheMetsäsurvivor\TheMetsäsurvivor\TheMetsäsurvivor\bin\x86\Debug\Content\Puu.xnb</Output> 
     29      <Time>2017-06-15T13:23:49.8670503+03:00</Time> 
     30    </Item> 
     31    <Item> 
     32      <Source>kivi.png</Source> 
     33      <Name>kivi</Name> 
     34      <Importer>TextureImporter</Importer> 
     35      <Processor>TextureProcessor</Processor> 
     36      <Options>None</Options> 
     37      <Output>C:\MyTemp\EljaL\TheMetsäsurvivor\TheMetsäsurvivor\TheMetsäsurvivor\bin\x86\Debug\Content\kivi.xnb</Output> 
     38      <Time>2017-06-15T13:23:56.373205+03:00</Time> 
     39    </Item> 
    440    <BuildSuccessful>true</BuildSuccessful> 
    541    <Settings> 
     
    1652    <Assemblies> 
    1753      <Assembly> 
     54        <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key> 
     55        <Value>2015-02-09T20:18:44+02:00</Value> 
     56      </Assembly> 
     57      <Assembly> 
     58        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 
     59        <Value>2011-09-01T16:22:30+03:00</Value> 
     60      </Assembly> 
     61      <Assembly> 
     62        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 
     63        <Value>2011-09-01T16:22:30+03:00</Value> 
     64      </Assembly> 
     65      <Assembly> 
     66        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 
     67        <Value>2011-09-01T16:22:30+03:00</Value> 
     68      </Assembly> 
     69      <Assembly> 
     70        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 
     71        <Value>2011-09-01T16:22:30+03:00</Value> 
     72      </Assembly> 
     73      <Assembly> 
     74        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 
     75        <Value>2011-09-01T16:22:30+03:00</Value> 
     76      </Assembly> 
     77      <Assembly> 
     78        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 
     79        <Value>2011-09-01T16:22:30+03:00</Value> 
     80      </Assembly> 
     81      <Assembly> 
     82        <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\AnimationExtension.dll</Key> 
     83        <Value>2015-02-17T22:27:18+02:00</Value> 
     84      </Assembly> 
     85      <Assembly> 
    1886        <Key>C:\WINDOWS\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 
    1987        <Value>2017-06-07T15:46:40.1506283+03:00</Value> 
  • 2017/24/EljaL/TheMetsäsurvivor/TheMetsäsurvivor/TheMetsäsurvivor/obj/x86/Debug/TheMetsäsurvivor.csproj.FileListAbsolute.txt

    r8573 r8722  
    77C:\MyTemp\EljaL\TheMetsÀsurvivor\TheMetsÀsurvivor\TheMetsÀsurvivor\obj\x86\Debug\TheMetsÀsurvivor.exe 
    88C:\MyTemp\EljaL\TheMetsÀsurvivor\TheMetsÀsurvivor\TheMetsÀsurvivor\obj\x86\Debug\TheMetsÀsurvivor.pdb 
     9C:\MyTemp\EljaL\TheMetsÀsurvivor\TheMetsÀsurvivor\TheMetsÀsurvivor\bin\x86\Debug\Content\ihminen.xnb 
     10C:\MyTemp\EljaL\TheMetsÀsurvivor\TheMetsÀsurvivor\TheMetsÀsurvivor\bin\x86\Debug\Content\karhu.xnb 
     11C:\MyTemp\EljaL\TheMetsÀsurvivor\TheMetsÀsurvivor\TheMetsÀsurvivor\bin\x86\Debug\Content\Puu.xnb 
     12C:\MyTemp\EljaL\TheMetsÀsurvivor\TheMetsÀsurvivor\TheMetsÀsurvivor\bin\x86\Debug\Content\kivi.xnb 
  • 2017/24/EljaL/TheMetsäsurvivor/TheMetsäsurvivor/TheMetsäsurvivorContent/TheMetsäsurvivorContent.contentproj

    r8573 r8722  
    4545    <Reference Include="AnimationExtension" /> 
    4646  </ItemGroup> 
     47  <ItemGroup> 
     48    <Compile Include="ihminen.png"> 
     49      <Name>ihminen</Name> 
     50      <Importer>TextureImporter</Importer> 
     51      <Processor>TextureProcessor</Processor> 
     52    </Compile> 
     53  </ItemGroup> 
     54  <ItemGroup> 
     55    <Compile Include="karhu.png"> 
     56      <Name>karhu</Name> 
     57      <Importer>TextureImporter</Importer> 
     58      <Processor>TextureProcessor</Processor> 
     59    </Compile> 
     60  </ItemGroup> 
     61  <ItemGroup> 
     62    <Compile Include="Puu.png"> 
     63      <Name>Puu</Name> 
     64      <Importer>TextureImporter</Importer> 
     65      <Processor>TextureProcessor</Processor> 
     66    </Compile> 
     67  </ItemGroup> 
     68  <ItemGroup> 
     69    <Compile Include="kivi.png"> 
     70      <Name>kivi</Name> 
     71      <Importer>TextureImporter</Importer> 
     72      <Processor>TextureProcessor</Processor> 
     73    </Compile> 
     74  </ItemGroup> 
    4775  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    4876  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
Note: See TracChangeset for help on using the changeset viewer.