Changeset 8172


Ignore:
Timestamp:
2016-07-27 15:02:29 (7 years ago)
Author:
kaspalmu
Message:
 
Location:
2016/30/KasimirP
Files:
11 added
18 edited

Legend:

Unmodified
Added
Removed
  • 2016/30/KasimirP/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.cs

    r8150 r8172  
    1919    Image tahtiKuva = LoadImage("leaf"); 
    2020    Image VihollisenKuva = LoadImage("pepexd"); 
     21    Image Veri = LoadImage("veri"); 
    2122    private Image[] ukkelinKavely = LoadImages("Dat_boi1", "Dat_boi2", "Dat_boi3", "Dat_boi4", "Dat_boi5"); 
    2223 
     
    2627    { 
    2728        Gravity = new Vector(0, -1000); 
    28         
     29 
    2930        LuoKentta(); 
    3031        LisaaNappaimet(); 
     
    3334        Camera.ZoomFactor = 1.2; 
    3435        Camera.StayInLevel = true; 
     36        SmoothTextures = false; 
     37        Window.Fullscreen = true; 
    3538    } 
    3639 
     
    4548        Level.CreateBorders(); 
    4649        Level.Background.CreateGradient(Color.White, Color.LimeGreen); 
    47          
     50 
    4851    } 
    4952 
     
    7376        pelaaja1.Image = pelaajanKuva; 
    7477        AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
     78        AddCollisionHandler(pelaaja1, "Vihollinen", TormaaViholliseen); 
    7579        Add(pelaaja1); 
    7680        pelaaja1.Animation = new Animation(ukkelinKavely); 
    7781        pelaaja1.Animation.Start(); 
    78         
    7982 
    80      
     83 
     84 
    8185    } 
    8286 
     
    8488 
    8589    { 
    86         Vihollinen = new PlatformCharacter(leveys, korkeus); 
     90        Vihollinen = new PlatformCharacter(30.0, 30.0); 
     91 
    8792        Vihollinen.Position = paikka; 
    8893        Vihollinen.Mass = 4.0; 
    8994        Vihollinen.Image = VihollisenKuva; 
     95        Vihollinen.Tag = "Vihollinen"; 
     96 
    9097        Add(Vihollinen); 
    91          
     98 
     99        PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 
     100        tasoAivot.Speed = 100; 
     101        tasoAivot.FallsOffPlatforms = false; 
     102        Vihollinen.Brain = tasoAivot; 
     103 
     104 
    92105    } 
    93106 
     
    145158        tahti.Destroy(); 
    146159    } 
     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    } 
    147171} 
  • 2016/30/KasimirP/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.csproj.Debug.cachefile

    r8150 r8172  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\pepe.xnb 
     6Content\pepexd.xnb 
     7Content\leaf.xnb 
    58Content\Dat_boi1.xnb 
    69Content\Dat_boi2.xnb 
     
    811Content\Dat_boi4.xnb 
    912Content\Dat_boi5.xnb 
    10 Content\pepe.xnb 
    11 Content\pepexd.xnb 
    12 Content\leaf.xnb 
     13Content\veri.xnb 
     14Content\Shrekxd.xnb 
  • 2016/30/KasimirP/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r8151 r8172  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2016-07-27T13:06:01.6006589+03:00</Time> 
     38      <Time>2016-07-27T14:32:21.8097907+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    6464      <Output>C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\leaf.xnb</Output> 
    6565      <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> 
    66129    </Item> 
    67130    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/30/KasimirP/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/Tasohyppelypeli1.csproj.FileListAbsolute.txt

    r8151 r8172  
    1414C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\pepexd.xnb 
    1515C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\leaf.xnb 
     16C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi1.xnb 
     17C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi2.xnb 
     18C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi3.xnb 
     19C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi4.xnb 
     20C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Dat_boi5.xnb 
     21C:\MyTemp\KasimirP\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\veri.xnb 
     22C:\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  
    66Content\pepexd.xnb 
    77Content\leaf.xnb 
     8Content\Dat_boi1.xnb 
     9Content\Dat_boi2.xnb 
     10Content\Dat_boi3.xnb 
     11Content\Dat_boi4.xnb 
     12Content\Dat_boi5.xnb 
     13Content\veri.xnb 
     14Content\Shrekxd.xnb 
  • 2016/30/KasimirP/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1Content/Tasohyppelypeli1Content.contentproj

    r8151 r8172  
    8888    </Compile> 
    8989  </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> 
    90131  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    91132  <!--  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.