Changeset 636 for 2010/23


Ignore:
Timestamp:
2010-06-09 15:00:15 (10 years ago)
Author:
laemkaup
Message:

Tein peliä

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"> 
    22  <PropertyGroup> 
    33    <ProjectGuid>00c03621-f910-4a0a-8ee3-8137dd40eabf</ProjectGuid> 
     
    1818    <XnaPlatform>Windows</XnaPlatform> 
    1919  </PropertyGroup> 
    20  <ItemGroup> 
     20  <ItemGroup> 
    2121    <Compile Include="norsu.png"> 
    2222      <Name>norsu</Name> 
     
    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="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> 
    4963  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    5064  <!-- 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  
    6565        void luoKentta() 
    6666        { 
    67             Level.CreateBorders(); 
    68             Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
     67 
     68 
     69 
     70            Level.Background.CreateGradient(Color.Pink, Color.SkyBlue); 
    6971 
    7072            lisaaTaso(-200, -350, 100); 
     
    8486            lisaaTaso(700, -600, 100); 
    8587            lisaaTaso(-700, 160, 100); 
    86  
     88            lisaaTaso(600, -200, 100); 
     89             
    8790 
    8891            //lisaaMaali(); 
    8992            lisaaPelaajat(); 
    90  
     93            Level.CreateBorders(); 
    9194 
    9295       } 
     
    9497        { 
    9598          PhysicsObject taso2 = PhysicsObject.CreateStaticObject ( koko,30); 
    96           taso2.Color = Color.Green; 
     99          taso2.Color = Color.Yellow; 
    97100          taso2.X = x; 
    98101          taso2.Y = y; 
     
    109112        void lisaaPelaajat() 
    110113        { 
    111             pelaaja1 = new PlatformCharacter(40, 40); 
     114            pelaaja1 = new PlatformCharacter(70, 70); 
    112115            pelaaja1.Mass = 4.0; 
    113             pelaaja1.Image = LoadImage("norsu"); 
     116            pelaaja1.Image = LoadImage("Sammakko2"); 
    114117            pelaaja1.X = 0; 
    115118            pelaaja1.Y = Level.Bottom + 120; 
Note: See TracChangeset for help on using the changeset viewer.