- Timestamp:
- 2015-06-24 14:57:21 (6 years ago)
- Location:
- 2015/26/JoonaO
- Files:
-
- 9 added
- 2 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/26/JoonaO/Autopeli1.cs
r6236 r6263 9 9 public class Autopeli1 : PhysicsGame 10 10 { 11 Image autonKuva = LoadImage("Auto");11 SoundEffect hyppyAani = LoadSoundEffect("hyppyAani"); 12 12 Image taustaKuva2 = LoadImage("rata2"); 13 13 Automobile auto; 14 Image autonKuva = LoadImage("Auto"); 14 15 Image taustaKuva = LoadImage("rata"); 15 16 public override void Begin() … … 18 19 Level.CreateBorders(); 19 20 Level.Background.Image = taustaKuva; 20 auto = new Automobile(50, 3 0);21 auto = new Automobile(50, 38); 21 22 auto.Shape = Shape.Rectangle; 22 auto.Mass = 1 00.0;23 auto.Mass = 1.0; 23 24 auto.AngularDamping = 0.9; 24 25 auto.Image = autonKuva; 25 26 Add(auto); 26 27 27 28 MultiSelectWindow alkuValikko = new MultiSelectWindow("Pelin alkuvalikko", 28 29 "Aloita peli", "Parhaat pisteet", "Lopeta"); 29 30 alkuValikko.Color = Color.Red; 30 31 Add(alkuValikko); 31 32 32 33 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 33 34 ControllerOne.Vibrate(0.5, 0.5, 0.0, 0.0, 0.1); … … 42 43 { 43 44 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); 44 57 } 45 58 void KaasutaAutoa() … … 58 71 { 59 72 MessageDisplay.Add("Vedit seinää päi!"); 60 } 73 hyppyAani.Play(); 74 } 61 75 62 76 63 77 64 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 65 99 } -
2015/26/JoonaO/Autopeli1/Autopeli1/Autopeli1/Autopeli1.csproj.Debug.cachefile
r6236 r6263 2 2 Content\rata.xnb 3 3 Content\rata2.xnb 4 Content\Auto2.xnb 5 Content\hyppyAani.xnb -
2015/26/JoonaO/Autopeli1/Autopeli1/Autopeli1/obj/x86/Debug/Autopeli1.csproj.FileListAbsolute.txt
r6236 r6263 9 9 C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\bin\x86\Debug\Content\rata.xnb 10 10 C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\bin\x86\Debug\Content\rata2.xnb 11 C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\obj\x86\Debug\Autopeli1.csprojResolveAssemblyReference.cache 12 C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\bin\x86\Debug\Content\Auto2.xnb 13 C:\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 28 28 <Output>C:\MyTemp\JoonaO\Autopeli1\Autopeli1\Autopeli1\bin\x86\Debug\Content\rata2.xnb</Output> 29 29 <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> 30 48 </Item> 31 49 <BuildSuccessful>true</BuildSuccessful> -
2015/26/JoonaO/Autopeli1/Autopeli1/Autopeli1/obj/x86/Debug/cachefile-{FF5C44F7-8985-4452-9CE2-28BDC2F258E5}-targetpath.txt
r6236 r6263 2 2 Content\rata.xnb 3 3 Content\rata2.xnb 4 Content\Auto2.xnb 5 Content\hyppyAani.xnb -
2015/26/JoonaO/Autopeli1/Autopeli1/Autopeli1Content/NextGenRecingContent.contentproj
r6236 r6263 66 66 </Compile> 67 67 </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> 68 82 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 69 83 <!-- 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.