Changeset 8172
- Timestamp:
- 2016-07-27 15:02:29 (7 years ago)
- Location:
- 2016/30/KasimirP
- Files:
-
- 11 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/30/KasimirP/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.cs
r8150 r8172 19 19 Image tahtiKuva = LoadImage("leaf"); 20 20 Image VihollisenKuva = LoadImage("pepexd"); 21 Image Veri = LoadImage("veri"); 21 22 private Image[] ukkelinKavely = LoadImages("Dat_boi1", "Dat_boi2", "Dat_boi3", "Dat_boi4", "Dat_boi5"); 22 23 … … 26 27 { 27 28 Gravity = new Vector(0, -1000); 28 29 29 30 LuoKentta(); 30 31 LisaaNappaimet(); … … 33 34 Camera.ZoomFactor = 1.2; 34 35 Camera.StayInLevel = true; 36 SmoothTextures = false; 37 Window.Fullscreen = true; 35 38 } 36 39 … … 45 48 Level.CreateBorders(); 46 49 Level.Background.CreateGradient(Color.White, Color.LimeGreen); 47 50 48 51 } 49 52 … … 73 76 pelaaja1.Image = pelaajanKuva; 74 77 AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 78 AddCollisionHandler(pelaaja1, "Vihollinen", TormaaViholliseen); 75 79 Add(pelaaja1); 76 80 pelaaja1.Animation = new Animation(ukkelinKavely); 77 81 pelaaja1.Animation.Start(); 78 79 82 80 83 84 81 85 } 82 86 … … 84 88 85 89 { 86 Vihollinen = new PlatformCharacter(leveys, korkeus); 90 Vihollinen = new PlatformCharacter(30.0, 30.0); 91 87 92 Vihollinen.Position = paikka; 88 93 Vihollinen.Mass = 4.0; 89 94 Vihollinen.Image = VihollisenKuva; 95 Vihollinen.Tag = "Vihollinen"; 96 90 97 Add(Vihollinen); 91 98 99 PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 100 tasoAivot.Speed = 100; 101 tasoAivot.FallsOffPlatforms = false; 102 Vihollinen.Brain = tasoAivot; 103 104 92 105 } 93 106 … … 145 158 tahti.Destroy(); 146 159 } 160 161 void TormaaViholliseen(PhysicsObject a, PhysicsObject b) 162 { 163 ExplosionSystem rajahdusSysteemi = new ExplosionSystem(Veri, 50); 164 165 Add(rajahdusSysteemi); 166 167 rajahdusSysteemi.AddEffect(a.Position, 50); 168 a.Destroy(); 169 170 } 147 171 } -
2016/30/KasimirP/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.csproj.Debug.cachefile
r8150 r8172 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\pepe.xnb 6 Content\pepexd.xnb 7 Content\leaf.xnb 5 8 Content\Dat_boi1.xnb 6 9 Content\Dat_boi2.xnb … … 8 11 Content\Dat_boi4.xnb 9 12 Content\Dat_boi5.xnb 10 Content\pepe.xnb 11 Content\pepexd.xnb 12 Content\leaf.xnb 13 Content\veri.xnb 14 Content\Shrekxd.xnb -
2016/30/KasimirP/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml
r8151 r8172 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2016-07-27T1 3:06:01.6006589+03:00</Time>38 <Time>2016-07-27T14:32:21.8097907+03:00</Time> 39 39 </Item> 40 40 <Item> … … 64 64 <Output>C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\leaf.xnb</Output> 65 65 <Time>2016-07-27T11:08:06.3855949+03:00</Time> 66 </Item> 67 <Item> 68 <Source>Dat_boi1.png</Source> 69 <Name>Dat_boi1</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi1.xnb</Output> 74 <Time>2016-07-27T13:26:42.487442+03:00</Time> 75 </Item> 76 <Item> 77 <Source>Dat_boi2.png</Source> 78 <Name>Dat_boi2</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi2.xnb</Output> 83 <Time>2016-07-27T13:26:42.487442+03:00</Time> 84 </Item> 85 <Item> 86 <Source>Dat_boi3.png</Source> 87 <Name>Dat_boi3</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi3.xnb</Output> 92 <Time>2016-07-27T13:26:42.487442+03:00</Time> 93 </Item> 94 <Item> 95 <Source>Dat_boi4.png</Source> 96 <Name>Dat_boi4</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi4.xnb</Output> 101 <Time>2016-07-27T13:26:42.487442+03:00</Time> 102 </Item> 103 <Item> 104 <Source>Dat_boi5.png</Source> 105 <Name>Dat_boi5</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 <Options>None</Options> 109 <Output>C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi5.xnb</Output> 110 <Time>2016-07-27T13:26:42.487442+03:00</Time> 111 </Item> 112 <Item> 113 <Source>veri.png</Source> 114 <Name>veri</Name> 115 <Importer>TextureImporter</Importer> 116 <Processor>TextureProcessor</Processor> 117 <Options>None</Options> 118 <Output>C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\veri.xnb</Output> 119 <Time>2016-07-27T14:38:38.5507907+03:00</Time> 120 </Item> 121 <Item> 122 <Source>Shrekxd.png</Source> 123 <Name>Shrekxd</Name> 124 <Importer>TextureImporter</Importer> 125 <Processor>TextureProcessor</Processor> 126 <Options>None</Options> 127 <Output>C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Shrekxd.xnb</Output> 128 <Time>2016-07-27T15:00:24.5557907+03:00</Time> 66 129 </Item> 67 130 <BuildSuccessful>true</BuildSuccessful> -
2016/30/KasimirP/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/Tasohyppelypeli1.csproj.FileListAbsolute.txt
r8151 r8172 14 14 C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\pepexd.xnb 15 15 C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\leaf.xnb 16 C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi1.xnb 17 C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi2.xnb 18 C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi3.xnb 19 C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi4.xnb 20 C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi5.xnb 21 C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\veri.xnb 22 C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Shrekxd.xnb -
2016/30/KasimirP/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt
r8151 r8172 6 6 Content\pepexd.xnb 7 7 Content\leaf.xnb 8 Content\Dat_boi1.xnb 9 Content\Dat_boi2.xnb 10 Content\Dat_boi3.xnb 11 Content\Dat_boi4.xnb 12 Content\Dat_boi5.xnb 13 Content\veri.xnb 14 Content\Shrekxd.xnb -
2016/30/KasimirP/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1Content/Tasohyppelypeli1Content.contentproj
r8151 r8172 88 88 </Compile> 89 89 </ItemGroup> 90 <ItemGroup> 91 <Compile Include="Dat_boi1.png"> 92 <Name>Dat_boi1</Name> 93 <Importer>TextureImporter</Importer> 94 <Processor>TextureProcessor</Processor> 95 </Compile> 96 <Compile Include="Dat_boi2.png"> 97 <Name>Dat_boi2</Name> 98 <Importer>TextureImporter</Importer> 99 <Processor>TextureProcessor</Processor> 100 </Compile> 101 <Compile Include="Dat_boi3.png"> 102 <Name>Dat_boi3</Name> 103 <Importer>TextureImporter</Importer> 104 <Processor>TextureProcessor</Processor> 105 </Compile> 106 <Compile Include="Dat_boi4.png"> 107 <Name>Dat_boi4</Name> 108 <Importer>TextureImporter</Importer> 109 <Processor>TextureProcessor</Processor> 110 </Compile> 111 <Compile Include="Dat_boi5.png"> 112 <Name>Dat_boi5</Name> 113 <Importer>TextureImporter</Importer> 114 <Processor>TextureProcessor</Processor> 115 </Compile> 116 </ItemGroup> 117 <ItemGroup> 118 <Compile Include="veri.png"> 119 <Name>veri</Name> 120 <Importer>TextureImporter</Importer> 121 <Processor>TextureProcessor</Processor> 122 </Compile> 123 </ItemGroup> 124 <ItemGroup> 125 <Compile Include="Shrekxd.png"> 126 <Name>Shrekxd</Name> 127 <Importer>TextureImporter</Importer> 128 <Processor>TextureProcessor</Processor> 129 </Compile> 130 </ItemGroup> 90 131 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 91 132 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2016/30/KasimirP/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1Content/kentta1.txt
r8150 r8172 1 2 3 4 5 N ##############6 X ********** 7 ################## #########1 ..................................... 2 . 3 ............................#######............. 4 .......................X........................X.......#### 5 .N..................######....................######## 6 ........**********...............*........................ 7 ##################.............#####...####
Note: See TracChangeset
for help on using the changeset viewer.