Changeset 1381


Ignore:
Timestamp:
2010-07-28 14:56:07 (9 years ago)
Author:
pesosant
Message:

jJeesd

Location:
2010/30/pesosant
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • 2010/30/pesosant/War against the fat guy/Content/Content.contentproj

    r1356 r1381  
    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>f23c740c-4059-45bc-ac80-e84972a9a77f</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.bmp"> 
     51      <Name>untitled</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54    </Compile> 
     55  </ItemGroup> 
     56  <ItemGroup> 
     57    <Compile Include="MyTemp.bmp"> 
     58      <Name>MyTemp</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/30/pesosant/War against the fat guy/Peli.cs

    r1356 r1381  
    77class Tasohyppely : PhysicsGame 
    88{ 
     9    const int ruudunLeveys = 25; 
     10    const int ruudunKorkeus = 25; 
     11 
    912    const double nopeus = 250; 
    1013    const double hyppyVoima = 3500; 
     14    
     15    Image palikanKuva = LoadImage("palikka"); 
    1116 
    1217    PlatformCharacter pelaaja1; 
     
    2328        Camera.StayInLevel = true; 
    2429    } 
    25  
    2630    void luoKentta() 
    2731    { 
    28         Level.CreateBorders(); 
     32        TileMap ruudut = TileMap.FromFile("kentta.txt"); 
     33        ruudut['-'] = LuoPalikka; 
     34        ruudut['v']= LuoPahis; 
     35        ruudut['*']= LuoKarkki; 
     36        ruudut['x']= LuoDonitsi; 
     37 
    2938        Level.Background.CreateGradient(Color.Brown, Color.Blue); 
    30          
    31         lisaaTaso(10, -200); 
    32         lisaaTaso(170,-17 ); 
    33         lisaaTaso(-100, 3); 
    34         lisaaTaso(-200, -350); 
    35         lisaaTaso(100, -150); 
    36         lisaaTaso(50, 70); 
    37         lisaaTaso(-300, 50); 
    38         lisaaTaso(-100, 25); 
     39        lisaaPelaajat(); 
     40    } 
     41 
     42    PhysicsObject LuoPalikka() 
     43    { 
     44        PhysicsObject palikka = PhysicsObject.CreateStaticObject(50.0, 50.0); 
     45        return palikka; 
     46    } 
    3947 
    4048 
    41         lisaaPelaajat(); 
    42     } 
    4349 
    4450    void lisaaTaso(double x, double y) 
     
    5561        pelaaja1 = new PlatformCharacter(40, 40); 
    5662        pelaaja1.Mass = 4.0; 
    57         pelaaja1.Image = LoadImage("norsu"); 
     63        pelaaja1.Image = LoadImage("MyTemp"); 
    5864        pelaaja1.X = 0; 
    5965        pelaaja1.Y = Level.Bottom + 120; 
     
    8793        hahmo.Jump(voima); 
    8894    } 
     95 
    8996} 
  • 2010/30/pesosant/War against the fat guy/War against the fat guy.csproj

    r1356 r1381  
    128128    </BootstrapperPackage> 
    129129  </ItemGroup> 
     130  <ItemGroup> 
     131    <Content Include="kentta.txt"> 
     132      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 
     133    </Content> 
     134  </ItemGroup> 
    130135  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    131136  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\Microsoft.Xna.GameStudio.targets" /> 
Note: See TracChangeset for help on using the changeset viewer.