Changeset 6010


Ignore:
Timestamp:
2015-06-11 11:33:06 (8 years ago)
Author:
tocholmo
Message:

valmis

Location:
2015/24/TomasC/Tasohyppelypeli1
Files:
1 added
19 edited

Legend:

Unmodified
Added
Removed
  • 2015/24/TomasC/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.cs

    r5993 r6010  
    5656         
    5757         
    58         ColorTileMap ruudut = ColorTileMap.FromLevelAsset(kentta); 
     58         
     59            ColorTileMap ruudut = ColorTileMap.FromLevelAsset(kentta); 
    5960 
    6061        ruudut.SetTileMethod(Color.Black, Lisaahirvio); 
     
    9899        AddCollisionHandler(pelaaja1, "Jarmo", TormaaShrek); 
    99100        AddCollisionHandler(pelaaja1, "maali", TormaaMaali); 
     101        AddCollisionHandler(pelaaja1, "Illu", TormaaIllu); 
    100102        pelaaja1.Tag = "Jimmy"; 
    101103        Add(pelaaja1); 
     
    168170        PhysicsObject Illu= new PhysicsObject(leveys *10, korkeus *10); 
    169171        Illu.Position = paikka; 
     172        Illu.Shape = Shape.FromImage(LoadImage("Illu")); 
    170173        Illu.Image = LoadImage("Illu"); 
    171         Illu.Tag = "Jarmo"; 
     174        Illu.Tag = "Illu"; 
    172175        Illu.Mass = 10.0; 
    173176        Add(Illu, 3); 
     
    210213 
    211214    } 
     215    void rajaytaIllu(PhysicsObject Illu, Image kuva, int pMax) 
     216    { 
     217 
     218        ExplosionSystem rajahdys = new ExplosionSystem(kuva, pMax); 
     219        rajahdys.Position = Illu.Position; 
     220 
     221        Add(rajahdys); 
     222        rajahdys.AddEffect(Illu.X, Illu.Y, pMax); 
     223 
     224    } 
     225    void TormaaIllu(PhysicsObject hahmo, PhysicsObject Illu) 
     226    { 
     227        hahmo.Destroy(); 
     228        MessageDisplay.Add("YOU WEREN'T EXPECTING ME M8 ILLUMINATI IS REAL, WE ARE SUPERIOR"); 
     229        rajaytaIllu(Illu, LoadImage("Illu"), 1000); 
     230        Timer.SingleShot(3.0, LataaKentta); 
     231 
     232    } 
     233     
    212234    void Pelaaja1Tormasi(PhysicsObject pelaaja1, PhysicsObject Jarmo) 
    213235    { 
  • 2015/24/TomasC/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.csproj.Debug.cachefile

    r5993 r6010  
    1212Content\maali.xnb 
    1313Content\Illu.xnb 
    14 Content\Kentta1.png 
     14Content\kentta3.xnb 
     15Content\kentta1.png 
  • 2015/24/TomasC/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/ContentPipeline-{B88964E3-D150-4A29-8542-EAE6F8D61D58}.xml

    r5993 r6010  
    7272      <Options>None</Options> 
    7373      <Output>C:\MyTemp\TomasC\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Kentta1.xnb</Output> 
    74       <Time>2015-06-10T13:43:47.6705671+03:00</Time> 
     74      <Time>2015-06-11T10:26:31.571973+03:00</Time> 
    7575    </Item> 
    7676    <Item> 
     
    8181      <Options>None</Options> 
    8282      <Output>C:\MyTemp\TomasC\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\kentta2.xnb</Output> 
    83       <Time>2015-06-10T12:39:09.8255402+03:00</Time> 
     83      <Time>2015-06-11T10:22:03.818773+03:00</Time> 
    8484    </Item> 
    8585    <Item> 
     
    117117      <Options>None</Options> 
    118118      <Output>C:\MyTemp\TomasC\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Illu.xnb</Output> 
    119       <Time>2015-06-10T13:22:46.1706627+03:00</Time> 
     119      <Time>2015-06-11T09:15:22.279173+03:00</Time> 
     120    </Item> 
     121    <Item> 
     122      <Source>kentta3.png</Source> 
     123      <Name>kentta3</Name> 
     124      <Importer>TextureImporter</Importer> 
     125      <Processor>TextureProcessor</Processor> 
     126      <Options>None</Options> 
     127      <Output>C:\MyTemp\TomasC\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\kentta3.xnb</Output> 
     128      <Time>2015-06-11T10:07:44.676373+03:00</Time> 
    120129    </Item> 
    121130    <BuildSuccessful>true</BuildSuccessful> 
  • 2015/24/TomasC/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/Tasohyppelypeli1.csproj.FileListAbsolute.txt

    r5993 r6010  
    2121C:\MyTemp\TomasC\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\aali.xnb 
    2222C:\MyTemp\TomasC\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Illu.xnb 
     23C:\MyTemp\TomasC\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\kentta3.xnb 
  • 2015/24/TomasC/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/cachefile-{B88964E3-D150-4A29-8542-EAE6F8D61D58}-targetpath.txt

    r5993 r6010  
    1212Content\maali.xnb 
    1313Content\Illu.xnb 
    14 Content\Kentta1.png 
     14Content\kentta3.xnb 
     15Content\kentta1.png 
  • 2015/24/TomasC/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1Content/Tasohyppelypeli1Content.contentproj

    r5993 r6010  
    9898  </ItemGroup> 
    9999  <ItemGroup> 
    100     <Compile Include="Kentta1.png"> 
    101       <Name>Kentta1</Name> 
     100    <Compile Include="kentta1.png"> 
     101      <Name>kentta1</Name> 
    102102      <Importer>TextureImporter</Importer> 
    103103      <Processor>TextureProcessor</Processor> 
     
    133133    </Compile> 
    134134  </ItemGroup> 
     135  <ItemGroup> 
     136    <Compile Include="kentta3.png"> 
     137      <Name>kentta3</Name> 
     138      <Importer>TextureImporter</Importer> 
     139      <Processor>TextureProcessor</Processor> 
     140    </Compile> 
     141  </ItemGroup> 
    135142  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    136143  <!--  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.