Changeset 1452


Ignore:
Timestamp:
2010-07-30 12:57:57 (13 years ago)
Author:
roeehakk
Message:

tein loppuun no ainakin melkein

Location:
2010/30/roeehakk/Tasohyppely1/Tasohyppely1
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • 2010/30/roeehakk/Tasohyppely1/Tasohyppely1/Content/Content.contentproj

    r1386 r1452  
    1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> 
     1<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> 
    22  <PropertyGroup> 
    33    <ProjectGuid>1c8489c8-97c2-4192-a818-f61851b8c053</ProjectGuid> 
     
    4747    <Reference Include="Microsoft.Xna.Framework.Content.Pipeline.XImporter, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> 
    4848  </ItemGroup> 
     49  <ItemGroup> 
     50    <Compile Include="Untitled.png"> 
     51      <Name>Untitled</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54    </Compile> 
     55  </ItemGroup> 
    4956  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    5057  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2010/30/roeehakk/Tasohyppely1/Tasohyppely1/Peli.cs

    r1415 r1452  
    1818    IntMeter pisteLaskuri; 
    1919    Image TahdenKuva = LoadImage("tahti"); 
     20    Image PalikkanKuva = LoadImage("Untitled"); 
     21 
    2022 
    2123    protected override void Begin() 
     
    4244    ruudut['1'] = lisaaPelaajan; 
    4345    ruudut['¤'] = LuoTahti; 
     46    ruudut['@'] = LuoKuolemanPalikka; 
    4447    ruudut.Insert(ruudunLeveys, ruudunKorkeus); 
    4548    } 
     
    134137         
    135138    } 
    136  
    137  
     139    PhysicsObject LuoKuolemanPalikka()  
     140    { 
     141        PhysicsObject KuolemanPalikka = PhysicsObject.CreateStaticObject(50.0, 50.0); 
     142        KuolemanPalikka.Tag = "KuolemanPalikka"; 
     143        KuolemanPalikka.Image = PalikkanKuva; 
     144            return KuolemanPalikka; 
     145    } 
     146    void KasittelaPelaaja1Tormays(PhysicsObject Pelaaja1, PhysicsObject kohde) 
     147    { 
     148        if (kohde.Tag.ToString() == "KuolemanPalikka") 
     149        { 
     150            Pelaaja1.Destroy(); 
     151            Pelaaja1.Destroy(); 
     152        } 
     153    } 
    138154} 
  • 2010/30/roeehakk/Tasohyppely1/Tasohyppely1/kentta1.txt

    r1415 r1452  
    1 ********************************************* 
    2 *                                           * 
    3 *                                           * 
    4 *                                           * 
    5 *                    ¤¤¤                    * 
    6 *                    ###     ¤¤¤            * 
    7 * ¤¤¤¤¤¤¤¤¤¤                 ###            * 
    8 * ¤¤¤¤¤¤¤¤¤¤          ¤¤¤                   * 
    9 * ¤¤¤¤¤¤¤¤¤¤          ###  ¤¤¤              * 
    10 * ##########    ¤          ###              *  
    11 *              ¤#######################     * 
    12 *              ####                   #     * 
    13 *           ¤ # ###                   #     * 
    14 *           # # ###                  2#     * 
    15 *       ¤ # # # ###¤   ################     *                               
    16 *       # # # # ####¤                       *           
    17 *   ¤ # # # # # ######¤                     *  
    18 * 1 # # # # # # #######                     * 
    19 ********************************************* 
     1********************************************** 
     2*                                 ¤¤¤¤¤¤     * 
     3*                         ¤¤      ¤¤¤¤¤¤     * 
     4*                         ##      ###### ¤   * 
     5* @@@@@@@@@@         ¤¤¤  ¤              ¤   * 
     6*                    ###  #  ¤¤¤         ¤   * 
     7* ¤¤¤¤¤¤¤¤¤¤                 ###  @@@@@@ ¤   * 
     8* ¤¤¤¤¤¤¤¤¤¤          ¤¤¤                ¤   * 
     9* ¤¤¤¤¤¤¤¤¤¤          ###  ¤¤¤           ¤   * 
     10* ##########    ¤          ###               *  
     11*              ¤#######################  ¤   *  
     12*               ###    ¤¤¤¤¤¤¤¤¤¤¤¤   #      *  
     13*           ¤ # ###  ¤¤############## #  ¤   *  
     14*           # # ###  ###2¤            #      *  
     15*       ¤ # # #  ##¤   ################  ¤   *                              
     16*       # # # #  ###¤     ¤¤¤¤¤¤¤¤¤          *           
     17*   ¤ # # # # #@@@####¤   #########      ¤   *  
     18* 1 #@#@#@#@#@#@@@##################     ¤   * 
     19********************************************** 
Note: See TracChangeset for help on using the changeset viewer.