Changeset 6343 for 2015


Ignore:
Timestamp:
2015-06-25 11:51:52 (4 years ago)
Author:
rapelton
Message:
 
Location:
2015/26/RasmusP/DungeonClasher
Files:
14 edited

Legend:

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

    r6260 r6343  
    99class mob : PhysicsObject 
    1010{ 
    11     private IntMeter elamaLaskuri = new IntMeter(50,0, 50); 
     11    private IntMeter elamaLaskuri = new IntMeter(25 ,0, 25); 
    1212    public IntMeter ElamaLaskuri { get { return elamaLaskuri; } } 
    1313 
     
    1919    public int Elamat { get; set; } 
    2020    public int Kilpi { get; set; } 
     21 
    2122} 
    2223 
     
    2728    Image tiiliskivi = LoadImage("Tiiliskivi"); 
    2829    Image miekkaKuva = LoadImage("Miekka"); 
     30    Image taustaKuva = LoadImage("TaustaKuva"); 
     31    Image tyrmaSeina = LoadImage("DunegonWall"); 
     32 
    2933    PlatformCharacter pelaaja; 
    3034    PhysicsObject miekka; 
    3135     
     36    
     37     
    3238     
    3339 
    3440    private IntMeter elamaLaskuri = new IntMeter(20, 0, 20); 
     41 
    3542 
    3643    int kenttaNro = 1; 
     
    4249    { 
    4350        SmoothTextures = false; 
    44          
    45         LuoKentta(); 
     51 
     52        MultiSelectWindow alkuvaliko = new MultiSelectWindow("DungeonClasher", "Aloita peli", "Lopeta"); 
     53        alkuvaliko.AddItemHandler(0, AloitaPeli); 
     54        alkuvaliko.AddItemHandler(1, Exit); 
     55 
     56        Add(alkuvaliko); 
     57 
     58      
     59 
     60 
    4661        //SeuraavaKentta(); 
    4762 
    4863         
    49  
    50     } 
     64    } 
     65    void AloitaPeli() 
     66    { 
     67 
     68    LuoKentta(); 
     69    } 
     70 
    5171    void SeuraavaKentta() 
    5272{ 
     
    6989        ruudut.SetTileMethod('B', LuoBossi); 
    7090        ruudut.SetTileMethod('k', LisaaKallio); 
     91        ruudut.SetTileMethod('D', LuoTyrmanSeina); 
     92 
    7193        ruudut.Execute(40, 40); 
    7294 
    7395        Gravity = new Vector(0.0, -1000); 
    7496 
    75         Level.CreateBorders(); 
     97        Level.CreateBorders(false); 
     98 
     99         
    76100        asetaNappaimet(); 
    77101 
     
    97121        pelaaja.Walk(vektori.X); 
    98122    } 
     123 
     124    void LuoTyrmanSeina(Vector paikka, double korkeus, double leveys) 
     125{ 
     126     
     127 
     128    GameObject seina = new GameObject(200, 200); 
     129    seina.Image = tyrmaSeina; 
     130     
     131    Add(seina, -2); 
     132 
     133    seina.Position = paikka; 
     134    seina.Y = lattia.Y + lattia.Height / 2; 
     135     
     136     
     137 
     138 
     139} 
    99140    void PysaytaPelaaja(Vector vektori) 
    100141    { 
     
    230271        Add(elamaPalkki); 
    231272 
    232         Add(pelaaja); 
     273        Add(pelaaja, 1); 
    233274 
    234275        pelaaja.MaxAngularVelocity = 0; 
  • 2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/DungeonClasher.csproj.Debug.cachefile

    r6260 r6343  
    77Content\kentta6.xnb 
    88Content\Miekka.xnb 
    9 Content\Ritari.xnb 
     9Content\TaustaKuva.xnb 
     10Content\DunegonWall.xnb 
    1011Content\kentta1.txt 
    1112Content\kentta2.txt 
  • 2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/bin/x86/Debug/Content/kentta1.txt

    r6241 r6343  
    77............................................. 
    88............................................. 
    9 ............................................. 
     9DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD 
    1010..P........................=.......=.....=... 
    1111********************************************* 
  • 2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/obj/x86/Debug/ContentPipeline-{9E8A5BF1-0124-4B72-B960-7241168C215B}.xml

    r6260 r6343  
    99      <Options>None</Options> 
    1010      <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\kentta1.xnb</Output> 
    11       <Time>2015-06-24T09:36:42.0426062+03:00</Time> 
     11      <Time>2015-06-25T11:21:10.4047828+03:00</Time> 
    1212    </Item> 
    1313    <Item> 
     
    6363      <Options>None</Options> 
    6464      <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\kentta6.xnb</Output> 
    65       <Time>2015-06-24T13:42:24.3553564+03:00</Time> 
     65      <Time>2015-06-25T09:41:00.1578828+03:00</Time> 
    6666    </Item> 
    6767    <Item> 
     
    7575    </Item> 
    7676    <Item> 
    77       <Source>Ritari.png</Source> 
    78       <Name>Ritari</Name> 
     77      <Source>TaustaKuva.png</Source> 
     78      <Name>TaustaKuva</Name> 
    7979      <Importer>TextureImporter</Importer> 
    8080      <Processor>TextureProcessor</Processor> 
    8181      <Options>None</Options> 
    82       <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritari.xnb</Output> 
    83       <Time>2015-06-24T14:38:31.5025564+03:00</Time> 
     82      <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\TaustaKuva.xnb</Output> 
     83      <Time>2015-06-25T09:57:51.0092828+03:00</Time> 
     84    </Item> 
     85    <Item> 
     86      <Source>DunegonWall.png</Source> 
     87      <Name>DunegonWall</Name> 
     88      <Importer>TextureImporter</Importer> 
     89      <Processor>TextureProcessor</Processor> 
     90      <Options>None</Options> 
     91      <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\DunegonWall.xnb</Output> 
     92      <Time>2015-06-25T11:16:33.7919828+03:00</Time> 
    8493    </Item> 
    8594    <BuildSuccessful>true</BuildSuccessful> 
  • 2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/obj/x86/Debug/DungeonClasher.csproj.FileListAbsolute.txt

    r6260 r6343  
    3131C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\kentta6.txt 
    3232C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Miekka.xnb 
    33 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritari.xnb 
     33C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\TaustaKuva.xnb 
     34C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\DunegonWall.xnb 
  • 2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/obj/x86/Debug/cachefile-{9E8A5BF1-0124-4B72-B960-7241168C215B}-targetpath.txt

    r6260 r6343  
    77Content\kentta6.xnb 
    88Content\Miekka.xnb 
    9 Content\Ritari.xnb 
     9Content\TaustaKuva.xnb 
     10Content\DunegonWall.xnb 
    1011Content\kentta1.txt 
    1112Content\kentta2.txt 
  • 2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasherContent/DungeonClasherContent.contentproj

    r6260 r6343  
    9999    </Compile> 
    100100  </ItemGroup> 
     101  <ItemGroup> 
     102    <Compile Include="TaustaKuva.png"> 
     103      <Name>TaustaKuva</Name> 
     104      <Importer>TextureImporter</Importer> 
     105      <Processor>TextureProcessor</Processor> 
     106    </Compile> 
     107  </ItemGroup> 
     108  <ItemGroup> 
     109    <Compile Include="DunegonWall.png"> 
     110      <Name>DunegonWall</Name> 
     111      <Importer>TextureImporter</Importer> 
     112      <Processor>TextureProcessor</Processor> 
     113    </Compile> 
     114  </ItemGroup> 
    101115  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    102116  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasherContent/kentta1.txt

    r6241 r6343  
    77............................................. 
    88............................................. 
    9 ............................................. 
     9DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD 
    1010..P........................=.......=.....=... 
    1111********************************************* 
Note: See TracChangeset for help on using the changeset viewer.