Changeset 6263 for 2015


Ignore:
Timestamp:
2015-06-24 14:57:21 (4 years ago)
Author:
jojuojal
Message:
 
Location:
2015/26/JoonaO
Files:
9 added
2 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/JoonaO/Autopeli1.cs

    r6236 r6263  
    99public class Autopeli1 : PhysicsGame 
    1010{ 
    11     Image autonKuva = LoadImage("Auto"); 
     11    SoundEffect hyppyAani = LoadSoundEffect("hyppyAani"); 
    1212    Image taustaKuva2 = LoadImage("rata2"); 
    1313    Automobile auto; 
     14    Image autonKuva = LoadImage("Auto"); 
    1415    Image taustaKuva = LoadImage("rata"); 
    1516    public override void Begin() 
     
    1819        Level.CreateBorders(); 
    1920        Level.Background.Image = taustaKuva; 
    20         auto = new Automobile(50, 30); 
     21        auto = new Automobile(50, 38); 
    2122        auto.Shape = Shape.Rectangle; 
    22         auto.Mass = 100.0; 
     23        auto.Mass = 1.0; 
    2324        auto.AngularDamping = 0.9; 
    2425        auto.Image = autonKuva; 
    2526        Add(auto); 
    26  
     27        
    2728        MultiSelectWindow alkuValikko = new MultiSelectWindow("Pelin alkuvalikko", 
    2829"Aloita peli", "Parhaat pisteet", "Lopeta"); 
    2930        alkuValikko.Color = Color.Red; 
    3031        Add(alkuValikko); 
    31  
     32         
    3233        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    3334        ControllerOne.Vibrate(0.5, 0.5, 0.0, 0.0, 0.1); 
     
    4243    { 
    4344        auto.Push(vektori); 
     45    } 
     46    void Ajastin() 
     47    { 
     48        Timer aikaLaskuri = new Timer(); 
     49        aikaLaskuri.Start(); 
     50 
     51        Label aikaNautto = new Label(); 
     52        aikaNautto.TextColor = Color.White; 
     53        aikaNautto.DecimalPlaces = 1; 
     54        aikaNautto.BindTo(aikaLaskuri.SecondCounter); 
     55        double aikaaKulunut = aikaLaskuri.SecondCounter.Value; 
     56        Add(aikaNautto); 
    4457    } 
    4558    void KaasutaAutoa() 
     
    5871    { 
    5972        MessageDisplay.Add("Vedit seinää päi!"); 
    60     } 
     73        hyppyAani.Play(); 
     74    }   
    6175 
    6276 
    6377 
    6478 
     79 
     80 
     81 
     82 
     83 
     84 
     85 
     86 
     87 
     88 
     89 
     90 
     91 
     92 
     93 
     94 
     95 
     96    
     97 
     98 
    6599} 
  • 2015/26/JoonaO/Autopeli1/Autopeli1/Autopeli1/Autopeli1.csproj.Debug.cachefile

    r6236 r6263  
    22Content\rata.xnb 
    33Content\rata2.xnb 
     4Content\Auto2.xnb 
     5Content\hyppyAani.xnb 
  • 2015/26/JoonaO/Autopeli1/Autopeli1/Autopeli1/obj/x86/Debug/Autopeli1.csproj.FileListAbsolute.txt

    r6236 r6263  
    99C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\bin\x86\Debug\Content\rata.xnb 
    1010C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\bin\x86\Debug\Content\rata2.xnb 
     11C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\obj\x86\Debug\Autopeli1.csprojResolveAssemblyReference.cache 
     12C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\bin\x86\Debug\Content\Auto2.xnb 
     13C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\bin\x86\Debug\Content\hyppyAani.xnb 
  • 2015/26/JoonaO/Autopeli1/Autopeli1/Autopeli1/obj/x86/Debug/ContentPipeline-{FF5C44F7-8985-4452-9CE2-28BDC2F258E5}.xml

    r6236 r6263  
    2828      <Output>C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\bin\x86\Debug\Content\rata2.xnb</Output> 
    2929      <Time>2015-06-24T11:31:32.8535238+03:00</Time> 
     30    </Item> 
     31    <Item> 
     32      <Source>Auto2.png</Source> 
     33      <Name>Auto2</Name> 
     34      <Importer>TextureImporter</Importer> 
     35      <Processor>TextureProcessor</Processor> 
     36      <Options>None</Options> 
     37      <Output>C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\bin\x86\Debug\Content\Auto2.xnb</Output> 
     38      <Time>2015-06-24T13:23:58.5569402+03:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>hyppyAani.wav</Source> 
     42      <Name>hyppyAani</Name> 
     43      <Importer>WavImporter</Importer> 
     44      <Processor>SoundEffectProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\bin\x86\Debug\Content\hyppyAani.xnb</Output> 
     47      <Time>2015-06-24T14:15:12.6839402+03:00</Time> 
    3048    </Item> 
    3149    <BuildSuccessful>true</BuildSuccessful> 
  • 2015/26/JoonaO/Autopeli1/Autopeli1/Autopeli1/obj/x86/Debug/cachefile-{FF5C44F7-8985-4452-9CE2-28BDC2F258E5}-targetpath.txt

    r6236 r6263  
    22Content\rata.xnb 
    33Content\rata2.xnb 
     4Content\Auto2.xnb 
     5Content\hyppyAani.xnb 
  • 2015/26/JoonaO/Autopeli1/Autopeli1/Autopeli1Content/NextGenRecingContent.contentproj

    r6236 r6263  
    6666    </Compile> 
    6767  </ItemGroup> 
     68  <ItemGroup> 
     69    <Compile Include="Auto2.png"> 
     70      <Name>Auto2</Name> 
     71      <Importer>TextureImporter</Importer> 
     72      <Processor>TextureProcessor</Processor> 
     73    </Compile> 
     74  </ItemGroup> 
     75  <ItemGroup> 
     76    <Compile Include="hyppyAani.wav"> 
     77      <Name>hyppyAani</Name> 
     78      <Importer>WavImporter</Importer> 
     79      <Processor>SoundEffectProcessor</Processor> 
     80    </Compile> 
     81  </ItemGroup> 
    6882  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    6983  <!--  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.