- Timestamp:
- 2010-06-09 15:00:15 (13 years ago)
- Location:
- 2010/23/laemkaup/Tasohyppelypeli
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/23/laemkaup/Tasohyppelypeli/Content/Content.contentproj
r606 r636 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>00c03621-f910-4a0a-8ee3-8137dd40eabf</ProjectGuid> … … 18 18 <XnaPlatform>Windows</XnaPlatform> 19 19 </PropertyGroup> 20 <ItemGroup>20 <ItemGroup> 21 21 <Compile Include="norsu.png"> 22 22 <Name>norsu</Name> … … 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="Sammakko.png"> 51 <Name>Sammakko</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 </Compile> 55 </ItemGroup> 56 <ItemGroup> 57 <Compile Include="Sammakko2.png"> 58 <Name>Sammakko2</Name> 59 <Importer>TextureImporter</Importer> 60 <Processor>TextureProcessor</Processor> 61 </Compile> 62 </ItemGroup> 49 63 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 50 64 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2010/23/laemkaup/Tasohyppelypeli/Peli.cs
r606 r636 65 65 void luoKentta() 66 66 { 67 Level.CreateBorders(); 68 Level.Background.CreateGradient(Color.White, Color.SkyBlue); 67 68 69 70 Level.Background.CreateGradient(Color.Pink, Color.SkyBlue); 69 71 70 72 lisaaTaso(-200, -350, 100); … … 84 86 lisaaTaso(700, -600, 100); 85 87 lisaaTaso(-700, 160, 100); 86 88 lisaaTaso(600, -200, 100); 89 87 90 88 91 //lisaaMaali(); 89 92 lisaaPelaajat(); 90 93 Level.CreateBorders(); 91 94 92 95 } … … 94 97 { 95 98 PhysicsObject taso2 = PhysicsObject.CreateStaticObject ( koko,30); 96 taso2.Color = Color. Green;99 taso2.Color = Color.Yellow; 97 100 taso2.X = x; 98 101 taso2.Y = y; … … 109 112 void lisaaPelaajat() 110 113 { 111 pelaaja1 = new PlatformCharacter( 40, 40);114 pelaaja1 = new PlatformCharacter(70, 70); 112 115 pelaaja1.Mass = 4.0; 113 pelaaja1.Image = LoadImage(" norsu");116 pelaaja1.Image = LoadImage("Sammakko2"); 114 117 pelaaja1.X = 0; 115 118 pelaaja1.Y = Level.Bottom + 120;
Note: See TracChangeset
for help on using the changeset viewer.