Changeset 6457
- Timestamp:
- 2015-06-26 12:12:12 (8 years ago)
- Location:
- 2015/26/RasmusP/DungeonClasher
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/DungeonClasher.cs
r6369 r6457 31 31 Image tyrmaSeina = LoadImage("DunegonWall"); 32 32 Image ritari = LoadImage("Ritari"); 33 34 private Image[] pelaajahyokkaa = LoadImages("Ritari", "Ritarihyokkaa"); 33 Image darkKnightImage = LoadImage ("dknight"); 34 Image ocrImage = LoadImage("orc"); 35 Image BossImage = LoadImage("Boss"); 36 35 37 36 38 PlatformCharacter pelaaja; … … 164 166 Hirvio.Shape = Shape.Rectangle; 165 167 Hirvio.Color = Color.Yellow; 168 Hirvio.Image = ocrImage; 166 169 Hirvio.Mass = 1000; 167 170 Hirvio.MaxVelocity = 0; … … 174 177 { 175 178 //darkKnight 176 Hirvio = new mob( 128, 128);179 Hirvio = new mob(64, 128); 177 180 Hirvio.Elamat = 3; 178 181 Hirvio.Shape = Shape.Rectangle; … … 181 184 Hirvio.MaxVelocity = 0; 182 185 Hirvio.MaxAngularVelocity = 0; 186 Hirvio.Image = darkKnightImage; 183 187 Hirvio.Tag = "Enimy"; 184 188 } … … 193 197 Hirvio.MaxVelocity = 0; 194 198 Hirvio.MaxAngularVelocity = 0; 199 Hirvio.Image = darkKnightImage; 195 200 Hirvio.Tag = "Enimy"; 196 201 … … 242 247 Boss.Shape = Shape.Rectangle; 243 248 Boss.Color = Color.Pink; 249 Boss.Image = BossImage; 250 244 251 Boss.Y -= 20 - Boss.Height * 0.5; 245 252 246 253 Boss.MaxAngularVelocity = 0; 247 Boss.MaxVelocity = 100 0;254 Boss.MaxVelocity = 100; 248 255 249 256 Boss.Tag = "Boss"; … … 279 286 pelaaja.Color = Color.Black; 280 287 pelaaja.Image = ritari; 288 pelaaja.Shape = Shape.FromImage(ritari); 281 289 282 290 elamaLaskuri.LowerLimit += delegate { pelaaja.Destroy(); }; … … 292 300 pelaaja.MaxAngularVelocity = 0; 293 301 pelaaja.MaxVelocity = 500; 294 295 302 296 303 AddCollisionHandler(pelaaja, "Enimy", PelaajaOsui); … … 344 351 MiekanLiikutus.Start(); 345 352 346 pelaaja.Animation = new Animation(pelaajahyokkaa);347 348 pelaaja.Animation.Start();349 pelaaja.Animation.FPS = 8;350 Timer.SingleShot(2, delegate { pelaaja.Animation.Stop(); });351 352 353 353 354 } -
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/DungeonClasher.csproj.Debug.cachefile
r6369 r6457 12 12 Content\Ritarihyokkaa.xnb 13 13 Content\Ritari.xnb 14 Content\Ritarihyokkaa2.xnb 15 Content\RitarinKavely.xnb 16 Content\dknight.xnb 17 Content\orc.xnb 18 Content\Boss.xnb 14 19 Content\kentta1.txt 15 20 Content\kentta2.txt -
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/obj/x86/Debug/ContentPipeline-{9E8A5BF1-0124-4B72-B960-7241168C215B}.xml
r6369 r6457 18 18 <Options>None</Options> 19 19 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Tiiliskivi.xnb</Output> 20 <Time>2015-06-2 5T13:28:47.9960828+03:00</Time>20 <Time>2015-06-26T09:03:04.8935788+03:00</Time> 21 21 </Item> 22 22 <Item> … … 108 108 <Options>None</Options> 109 109 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritarihyokkaa.xnb</Output> 110 <Time>2015-06-2 5T14:43:48.9060828+03:00</Time>110 <Time>2015-06-26T09:14:45.1337788+03:00</Time> 111 111 </Item> 112 112 <Item> … … 117 117 <Options>None</Options> 118 118 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritari.xnb</Output> 119 <Time>2015-06-25T14:56:41.5952828+03:00</Time> 119 <Time>2015-06-26T09:23:13.3281538+03:00</Time> 120 </Item> 121 <Item> 122 <Source>Ritarihyokkaa2.png</Source> 123 <Name>Ritarihyokkaa2</Name> 124 <Importer>TextureImporter</Importer> 125 <Processor>TextureProcessor</Processor> 126 <Options>None</Options> 127 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritarihyokkaa2.xnb</Output> 128 <Time>2015-06-26T09:14:45.1337788+03:00</Time> 129 </Item> 130 <Item> 131 <Source>RitarinKavely.png</Source> 132 <Name>RitarinKavely</Name> 133 <Importer>TextureImporter</Importer> 134 <Processor>TextureProcessor</Processor> 135 <Options>None</Options> 136 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\RitarinKavely.xnb</Output> 137 <Time>2015-06-26T09:25:46.6517555+03:00</Time> 138 </Item> 139 <Item> 140 <Source>dknight.png</Source> 141 <Name>dknight</Name> 142 <Importer>TextureImporter</Importer> 143 <Processor>TextureProcessor</Processor> 144 <Options>None</Options> 145 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\dknight.xnb</Output> 146 <Time>2015-06-26T10:06:59.0836007+03:00</Time> 147 </Item> 148 <Item> 149 <Source>orc.png</Source> 150 <Name>orc</Name> 151 <Importer>TextureImporter</Importer> 152 <Processor>TextureProcessor</Processor> 153 <Options>None</Options> 154 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\orc.xnb</Output> 155 <Time>2015-06-26T10:31:48.7936007+03:00</Time> 156 </Item> 157 <Item> 158 <Source>Boss.png</Source> 159 <Name>Boss</Name> 160 <Importer>TextureImporter</Importer> 161 <Processor>TextureProcessor</Processor> 162 <Options>None</Options> 163 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Boss.xnb</Output> 164 <Time>2015-06-26T11:00:42.0304007+03:00</Time> 120 165 </Item> 121 166 <BuildSuccessful>true</BuildSuccessful> -
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/obj/x86/Debug/DungeonClasher.csproj.FileListAbsolute.txt
r6369 r6457 36 36 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritarihyokkaa.xnb 37 37 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritari.xnb 38 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritarihyokkaa2.xnb 39 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\RitarinKavely.xnb 40 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\dknight.xnb 41 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\orc.xnb 42 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Boss.xnb -
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/obj/x86/Debug/cachefile-{9E8A5BF1-0124-4B72-B960-7241168C215B}-targetpath.txt
r6369 r6457 12 12 Content\Ritarihyokkaa.xnb 13 13 Content\Ritari.xnb 14 Content\Ritarihyokkaa2.xnb 15 Content\RitarinKavely.xnb 16 Content\dknight.xnb 17 Content\orc.xnb 18 Content\Boss.xnb 14 19 Content\kentta1.txt 15 20 Content\kentta2.txt -
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasherContent/DungeonClasherContent.contentproj
r6369 r6457 132 132 </Compile> 133 133 </ItemGroup> 134 <ItemGroup> 135 <Compile Include="Ritarihyokkaa2.png"> 136 <Name>Ritarihyokkaa2</Name> 137 <Importer>TextureImporter</Importer> 138 <Processor>TextureProcessor</Processor> 139 </Compile> 140 </ItemGroup> 141 <ItemGroup> 142 <Compile Include="RitarinKavely.png"> 143 <Name>RitarinKavely</Name> 144 <Importer>TextureImporter</Importer> 145 <Processor>TextureProcessor</Processor> 146 </Compile> 147 </ItemGroup> 148 <ItemGroup> 149 <Compile Include="dknight.png"> 150 <Name>dknight</Name> 151 <Importer>TextureImporter</Importer> 152 <Processor>TextureProcessor</Processor> 153 </Compile> 154 </ItemGroup> 155 <ItemGroup> 156 <Compile Include="orc.png"> 157 <Name>orc</Name> 158 <Importer>TextureImporter</Importer> 159 <Processor>TextureProcessor</Processor> 160 </Compile> 161 </ItemGroup> 162 <ItemGroup> 163 <Compile Include="Boss.png"> 164 <Name>Boss</Name> 165 <Importer>TextureImporter</Importer> 166 <Processor>TextureProcessor</Processor> 167 </Compile> 168 </ItemGroup> 134 169 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 135 170 <!-- 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.