Ignore:
Timestamp:
2015-06-26 12:12:12 (8 years ago)
Author:
rapelton
Message:
 
Location:
2015/26/RasmusP/DungeonClasher/DungeonClasher
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/DungeonClasher.cs

    r6369 r6457  
    3131    Image tyrmaSeina = LoadImage("DunegonWall"); 
    3232    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 
    3537 
    3638    PlatformCharacter pelaaja; 
     
    164166            Hirvio.Shape = Shape.Rectangle; 
    165167            Hirvio.Color = Color.Yellow; 
     168            Hirvio.Image = ocrImage; 
    166169            Hirvio.Mass = 1000; 
    167170            Hirvio.MaxVelocity = 0; 
     
    174177        { 
    175178            //darkKnight 
    176             Hirvio = new mob(128, 128); 
     179            Hirvio = new mob(64, 128); 
    177180            Hirvio.Elamat = 3; 
    178181            Hirvio.Shape = Shape.Rectangle; 
     
    181184            Hirvio.MaxVelocity = 0; 
    182185            Hirvio.MaxAngularVelocity = 0; 
     186            Hirvio.Image = darkKnightImage; 
    183187            Hirvio.Tag = "Enimy"; 
    184188        } 
     
    193197            Hirvio.MaxVelocity = 0; 
    194198            Hirvio.MaxAngularVelocity = 0; 
     199            Hirvio.Image = darkKnightImage; 
    195200            Hirvio.Tag = "Enimy"; 
    196201 
     
    242247        Boss.Shape = Shape.Rectangle; 
    243248        Boss.Color = Color.Pink; 
     249        Boss.Image = BossImage; 
     250         
    244251        Boss.Y -= 20 - Boss.Height * 0.5; 
    245252         
    246253        Boss.MaxAngularVelocity = 0; 
    247         Boss.MaxVelocity = 1000; 
     254        Boss.MaxVelocity = 100; 
    248255 
    249256        Boss.Tag = "Boss"; 
     
    279286        pelaaja.Color = Color.Black; 
    280287        pelaaja.Image = ritari; 
     288        pelaaja.Shape = Shape.FromImage(ritari); 
    281289 
    282290        elamaLaskuri.LowerLimit += delegate { pelaaja.Destroy(); }; 
     
    292300        pelaaja.MaxAngularVelocity = 0; 
    293301        pelaaja.MaxVelocity = 500; 
    294  
    295302 
    296303        AddCollisionHandler(pelaaja, "Enimy", PelaajaOsui); 
     
    344351            MiekanLiikutus.Start(); 
    345352 
    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  
    352353             
    353354        } 
  • 2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/DungeonClasher.csproj.Debug.cachefile

    r6369 r6457  
    1212Content\Ritarihyokkaa.xnb 
    1313Content\Ritari.xnb 
     14Content\Ritarihyokkaa2.xnb 
     15Content\RitarinKavely.xnb 
     16Content\dknight.xnb 
     17Content\orc.xnb 
     18Content\Boss.xnb 
    1419Content\kentta1.txt 
    1520Content\kentta2.txt 
  • 2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/obj/x86/Debug/ContentPipeline-{9E8A5BF1-0124-4B72-B960-7241168C215B}.xml

    r6369 r6457  
    1818      <Options>None</Options> 
    1919      <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Tiiliskivi.xnb</Output> 
    20       <Time>2015-06-25T13:28:47.9960828+03:00</Time> 
     20      <Time>2015-06-26T09:03:04.8935788+03:00</Time> 
    2121    </Item> 
    2222    <Item> 
     
    108108      <Options>None</Options> 
    109109      <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritarihyokkaa.xnb</Output> 
    110       <Time>2015-06-25T14:43:48.9060828+03:00</Time> 
     110      <Time>2015-06-26T09:14:45.1337788+03:00</Time> 
    111111    </Item> 
    112112    <Item> 
     
    117117      <Options>None</Options> 
    118118      <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> 
    120165    </Item> 
    121166    <BuildSuccessful>true</BuildSuccessful> 
  • 2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/obj/x86/Debug/DungeonClasher.csproj.FileListAbsolute.txt

    r6369 r6457  
    3636C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritarihyokkaa.xnb 
    3737C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritari.xnb 
     38C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritarihyokkaa2.xnb 
     39C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\RitarinKavely.xnb 
     40C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\dknight.xnb 
     41C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\orc.xnb 
     42C:\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  
    1212Content\Ritarihyokkaa.xnb 
    1313Content\Ritari.xnb 
     14Content\Ritarihyokkaa2.xnb 
     15Content\RitarinKavely.xnb 
     16Content\dknight.xnb 
     17Content\orc.xnb 
     18Content\Boss.xnb 
    1419Content\kentta1.txt 
    1520Content\kentta2.txt 
  • 2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasherContent/DungeonClasherContent.contentproj

    r6369 r6457  
    132132    </Compile> 
    133133  </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> 
    134169  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    135170  <!--  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.