Changeset 1452
- Timestamp:
- 2010-07-30 12:57:57 (13 years ago)
- 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"> 2 2 <PropertyGroup> 3 3 <ProjectGuid>1c8489c8-97c2-4192-a818-f61851b8c053</ProjectGuid> … … 47 47 <Reference Include="Microsoft.Xna.Framework.Content.Pipeline.XImporter, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> 48 48 </ItemGroup> 49 <ItemGroup> 50 <Compile Include="Untitled.png"> 51 <Name>Untitled</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 </Compile> 55 </ItemGroup> 49 56 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 50 57 <!-- 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 18 18 IntMeter pisteLaskuri; 19 19 Image TahdenKuva = LoadImage("tahti"); 20 Image PalikkanKuva = LoadImage("Untitled"); 21 20 22 21 23 protected override void Begin() … … 42 44 ruudut['1'] = lisaaPelaajan; 43 45 ruudut['¤'] = LuoTahti; 46 ruudut['@'] = LuoKuolemanPalikka; 44 47 ruudut.Insert(ruudunLeveys, ruudunKorkeus); 45 48 } … … 134 137 135 138 } 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 } 138 154 } -
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.