Changeset 8899 for 2017/27/KasmirK
- Timestamp:
- 2017-07-04 15:00:46 (6 years ago)
- Location:
- 2017/27/KasmirK
- Files:
-
- 28 added
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2.cs
r8850 r8899 9 9 public class Tasohyppelypeli2 : PhysicsGame 10 10 { 11 11 12 12 const double nopeus = 2000;13 const double hyppyNopeus = 645;14 const int RUUDUN_KOKO = 34;13 const double nopeus = 300; 14 const double hyppyNopeus = 100; 15 const int RUUDUN_KOKO = 60; 15 16 16 17 PlatformCharacter pelaaja1; 17 18 18 Image pelaajanKuva = LoadImage(" norsu");19 Image pelaajanKuva = LoadImage("the actual thing lol"); 19 20 Image tahtiKuva = LoadImage("tahti"); 20 21 … … 24 25 { 25 26 27 28 26 29 LuoKentta(); 27 30 LisaaNappaimet(); … … 29 32 30 33 Camera.ZoomFactor = 1.2; 31 Camera.StayInLevel = false;34 Camera.StayInLevel = true; 32 35 } 33 36 … … 39 42 kentta.SetTileMethod('N', LisaaPelaaja); 40 43 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 41 Level.CreateBorders();42 Level.Background.CreateGradient(Color. DarkRed, Color.Crimson);44 45 Level.Background.CreateGradient(Color.White, Color.SkyBlue); 43 46 } 44 47 … … 47 50 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 48 51 taso.Position = paikka; 49 taso.Color = Color. Black;52 taso.Color = Color.ForestGreen; 50 53 Add(taso); 51 54 } … … 65 68 pelaaja1 = new PlatformCharacter(leveys, korkeus); 66 69 pelaaja1.Position = paikka; 67 pelaaja1.Mass = 4.0;70 pelaaja1.Mass = 9000; 68 71 pelaaja1.Image = pelaajanKuva; 69 72 AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); … … 99 102 } 100 103 104 101 105 void TormaaTahteen(PhysicsObject hahmo, PhysicsObject tahti) 102 106 { 103 107 maaliAani.Play(); 104 MessageDisplay.Add(" You contributed to communism! Congratulations!");108 MessageDisplay.Add("N-Nani??~"); 105 109 tahti.Destroy(); 106 110 } -
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2.csproj.Debug.cachefile
r8850 r8899 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\noneofyourbusiness.xnb 6 Content\Lemon Guy.xnb 7 Content\mc1.xnb 8 Content\the actual thing lol.xnb -
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml
r8850 r8899 18 18 <Options>None</Options> 19 19 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\norsu.xnb</Output> 20 <Time>2017-07-0 3T11:35:49.8121028+03:00</Time>20 <Time>2017-07-04T09:46:13.36812+03:00</Time> 21 21 </Item> 22 22 <Item> … … 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2017-07-03T13:28:49.4882038+03:00</Time> 38 <Time>2017-07-04T13:29:24.1317304+03:00</Time> 39 </Item> 40 <Item> 41 <Source>noneofyourbusiness.png</Source> 42 <Name>noneofyourbusiness</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\noneofyourbusiness.xnb</Output> 47 <Time>2017-07-04T09:52:50.5746395+03:00</Time> 48 </Item> 49 <Item> 50 <Source>Lemon Guy.png</Source> 51 <Name>Lemon Guy</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\Lemon Guy.xnb</Output> 56 <Time>2017-07-04T10:18:47.3023894+03:00</Time> 57 </Item> 58 <Item> 59 <Source>mc1.png</Source> 60 <Name>mc1</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\mc1.xnb</Output> 65 <Time>2017-07-04T13:09:40.4092021+03:00</Time> 66 </Item> 67 <Item> 68 <Source>the actual thing lol.png</Source> 69 <Name>the actual thing lol</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\the actual thing lol.xnb</Output> 74 <Time>2017-07-04T13:15:59.8090258+03:00</Time> 39 75 </Item> 40 76 <BuildSuccessful>true</BuildSuccessful> -
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/obj/x86/Debug/Tasohyppelypeli2.csproj.FileListAbsolute.txt
r8850 r8899 11 11 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\obj\x86\Debug\Tasohyppelypeli2.pdb 12 12 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\obj\x86\Debug\Tasohyppelypeli2.csprojResolveAssemblyReference.cache 13 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\noneofyourbusiness.xnb 14 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\Lemon Guy.xnb 15 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\mc1.xnb 16 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\the actual thing lol.xnb -
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt
r8850 r8899 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\noneofyourbusiness.xnb 6 Content\Lemon Guy.xnb 7 Content\mc1.xnb 8 Content\the actual thing lol.xnb -
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2Content/Tasohyppelypeli2Content.contentproj
r8850 r8899 67 67 </Compile> 68 68 </ItemGroup> 69 <ItemGroup> 70 <Compile Include="noneofyourbusiness.png"> 71 <Name>noneofyourbusiness</Name> 72 <Importer>TextureImporter</Importer> 73 <Processor>TextureProcessor</Processor> 74 </Compile> 75 </ItemGroup> 76 <ItemGroup> 77 <Compile Include="Lemon Guy.png"> 78 <Name>Lemon Guy</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 </Compile> 82 </ItemGroup> 83 <ItemGroup> 84 <Compile Include="mc1.png"> 85 <Name>mc1</Name> 86 <Importer>TextureImporter</Importer> 87 <Processor>TextureProcessor</Processor> 88 </Compile> 89 </ItemGroup> 90 <ItemGroup> 91 <Compile Include="the actual thing lol.png"> 92 <Name>the actual thing lol</Name> 93 <Importer>TextureImporter</Importer> 94 <Processor>TextureProcessor</Processor> 95 </Compile> 96 </ItemGroup> 97 <ItemGroup> 98 <Compile Include="moving1.png"> 99 <Name>moving1</Name> 100 <Importer>TextureImporter</Importer> 101 <Processor>TextureProcessor</Processor> 102 </Compile> 103 </ItemGroup> 104 <ItemGroup> 105 <Compile Include="moving2.png"> 106 <Name>moving2</Name> 107 <Importer>TextureImporter</Importer> 108 <Processor>TextureProcessor</Processor> 109 </Compile> 110 </ItemGroup> 111 <ItemGroup> 112 <Compile Include="ukkelin.anim"> 113 <Name>ukkelin</Name> 114 <Importer>AnimationImporter</Importer> 115 <Processor>AnimationContentProcessor</Processor> 116 </Compile> 117 </ItemGroup> 69 118 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 70 119 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2Content/kentta1.txt
r8850 r8899 1 2 3 4 ########################5 6 ***7 N8 ######## #########9 1 10 2 … … 12 4 13 5 6 7 8 *** 9 N 14 10 ########################
Note: See TracChangeset
for help on using the changeset viewer.