Changeset 603


Ignore:
Timestamp:
2010-06-09 11:58:00 (13 years ago)
Author:
aaolluuk
Message:
 
Location:
2010/23/aaolluuk/ApinaJaBanaani 2
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • 2010/23/aaolluuk/ApinaJaBanaani 2/Content/Content.contentproj

    r557 r603  
    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>238ab6d4-c821-4c94-990e-c4901c11a426</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="Apina.png"> 
     51      <Name>Apina</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54    </Compile> 
     55  </ItemGroup> 
     56  <ItemGroup> 
     57    <Compile Include="Banaani.png"> 
     58      <Name>Banaani</Name> 
     59      <Importer>TextureImporter</Importer> 
     60      <Processor>TextureProcessor</Processor> 
     61    </Compile> 
     62  </ItemGroup> 
     63  <ItemGroup> 
     64    <Compile Include="Talo.png"> 
     65      <Name>Talo</Name> 
     66      <Importer>TextureImporter</Importer> 
     67      <Processor>TextureProcessor</Processor> 
     68    </Compile> 
     69  </ItemGroup> 
    4970  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    5071  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2010/23/aaolluuk/ApinaJaBanaani 2/Peli.cs

    r557 r603  
    1010    { 
    1111        const double nopeus = 200; 
    12         const double hyppyVoima = 1000000; 
     12        const double hyppyVoima = 4000; 
    1313 
    1414        IntMeter pisteLaskuri; 
     
    6969            lisaaTaso(-200, -350); 
    7070            lisaaTaso(0, -200); 
     71            lisaaTaso(250, -150); 
     72            lisaaTaso(520, -50); 
     73            lisaaTaso(260, -150); 
     74            lisaaTaso(500, 200); 
     75            lisaaTaso(620, 100); 
     76            lisaaTaso(350, 300); 
     77            lisaaTaso(100, 200); 
     78            lisaaTaso(-210, 250); 
     79 
     80 
     81            lisaaTaso(-500, -500); 
     82            lisaaTaso(-300, -500); 
     83            lisaaTaso(-200, -500); 
     84            lisaaTaso(-100, -500); 
     85            lisaaTaso(0, -500); 
     86            lisaaTaso(200, -500); 
     87            lisaaTaso(400, -500); 
     88            lisaaTaso(600, -500); 
     89            lisaaTaso(200, -470); 
     90             
    7191 
    7292            lisaaMaali(); 
     
    7797        { 
    7898            PhysicsObject taso = PhysicsObject.CreateStaticObject(100, 30); 
    79             taso.Color = Color.Green; 
     99            taso.Color = Color.Brown; 
    80100            taso.X = x; 
    81101            taso.Y = y; 
     
    87107            pelaaja1 = new PlatformCharacter(40, 40); 
    88108            pelaaja1.Mass = 4.0; 
    89             pelaaja1.Image = LoadImage("norsu"); 
     109            pelaaja1.Image = LoadImage("Apina"); 
    90110            pelaaja1.X = 0; 
    91111            pelaaja1.Y = Level.Bottom + 120; 
     
    98118        void lisaaMaali() 
    99119        { 
    100             PhysicsObject maali = PhysicsObject.CreateStaticObject(50, 50, Shapes.Circle); 
     120            PhysicsObject maali = PhysicsObject.CreateStaticObject(100, 100, Shapes.Circle); 
    101121            maali.Tag = "maali"; 
    102122            maali.IgnoresCollisionResponse = true; 
    103             maali.X = 30; 
    104             maali.Y = -60; 
    105             maali.Image = LoadImage("tahti"); 
     123            maali.X = 100; 
     124            maali.Y = 350; 
     125            maali.Image = LoadImage("Talo"); 
    106126            Add(maali); 
    107127        } 
     
    145165                int edellisenKentanPisteet = pisteLaskuri.Value; 
    146166                seuraavaKentta(); 
    147                 MessageDisplay.Add("Pääsit läpi kentän " + kenttaNro + ". Pisteitä: " + edellisenKentanPisteet); 
     167                MessageDisplay.Add("Onnittelut..pääsit kentän läpi " + kenttaNro + ". Pisteitä: " + edellisenKentanPisteet); 
    148168            } 
    149169        } 
Note: See TracChangeset for help on using the changeset viewer.