Changeset 1131 for 2010/27/jomiilri


Ignore:
Timestamp:
2010-07-07 11:32:02 (13 years ago)
Author:
jomiilri
Message:

Paransin kenttää.

Location:
2010/27/jomiilri
Files:
7 added
4 edited

Legend:

Unmodified
Added
Removed
  • 2010/27/jomiilri/Duel/Content/Content.contentproj

    r1108 r1131  
    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>eef895b1-ba18-4382-b497-0dbbd9530cfc</ProjectGuid> 
     
    3434    <Reference Include="Microsoft.Xna.Framework.Content.Pipeline.XImporter, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> 
    3535  </ItemGroup> 
     36  <ItemGroup> 
     37    <Compile Include="tausta1.png"> 
     38      <Name>tausta1</Name> 
     39      <Importer>TextureImporter</Importer> 
     40      <Processor>TextureProcessor</Processor> 
     41    </Compile> 
     42  </ItemGroup> 
     43  <ItemGroup> 
     44    <Compile Include="tausta2.png"> 
     45      <Name>tausta2</Name> 
     46      <Importer>TextureImporter</Importer> 
     47      <Processor>TextureProcessor</Processor> 
     48    </Compile> 
     49  </ItemGroup> 
     50  <ItemGroup> 
     51    <Compile Include="taustakuva1.bmp"> 
     52      <Name>taustakuva1</Name> 
     53      <Importer>TextureImporter</Importer> 
     54      <Processor>TextureProcessor</Processor> 
     55    </Compile> 
     56  </ItemGroup> 
    3657</Project> 
  • 2010/27/jomiilri/Duel/Peli.cs

    r1108 r1131  
    66public class Peli : PhysicsGame 
    77{ 
    8     PhysicsObject pelaaja1; 
     8    PlatformCharacter p1; 
     9    PlatformCharacter p2; 
     10 
    911 
    1012    const int ruudunLeveys = 32; 
     
    1416    { 
    1517        LuoKentta(); 
     18        AloitaPeli(); 
     19        IsFullScreen = true; 
     20        p1 = LuoHahmo(); 
     21        Add(p1); 
     22        LuoOhjaimet(); 
    1623    } 
    1724 
     25    void AloitaPeli() 
     26    { 
     27        GameObject alareuna = Level.CreateBottomBorder(); 
     28        GameObject ylareuna = Level.CreateTopBorder(); 
     29        alareuna.Image = LoadImage("tausta1"); 
     30        ylareuna.Image = LoadImage("tausta1"); 
     31 
     32        //Level.Background.Image = LoadImage("taustakuva1"); 
     33        //Level.Background.FitToLevel(); 
     34 
     35        Camera.ZoomToLevel(); 
     36    } 
     37     
    1838    void LuoKentta() 
    1939    { 
     
    2848        PhysicsObject seina = PhysicsObject.CreateStaticObject(32.0, 32.0); 
    2949        seina.Shape = Shapes.Rectangle; 
    30         seina.Color = Color.Gray; 
     50        seina.Image = LoadImage("tausta1"); 
    3151        return seina; 
    3252    } 
    3353 
     54    PlatformCharacter LuoHahmo() 
     55    { 
     56        PlatformCharacter ukko = new PlatformCharacter(32, 32); 
     57 
     58        return ukko; 
     59    } 
     60 
     61    void LiikutaPelaajaa() 
     62    { 
     63 
     64    } 
     65 
     66    void LuoOhjaimet() 
     67    { 
     68        Keyboard.Listen(Key.Left, ButtonState.Down, LiikutaPelaajaa, null); 
     69        Keyboard.Listen(Key.Right, ButtonState.Down, LiikutaPelaajaa, null); 
     70        Keyboard.Listen(Key.Up, ButtonState.Down, LiikutaPelaajaa, null); 
     71        Keyboard.Listen(Key.Down, ButtonState.Down, LiikutaPelaajaa, null); 
     72    } 
     73 
    3474} 
  • 2010/27/jomiilri/Duel/TextFile1.txt

    r1108 r1131  
    1  1IIIIIIIIIIIIIIIIIII 
    2  2I                 I 
    3  3I                 I 
    4  4I                 I 
    5  5I                 I 
    6  6I                 I 
    7  7I                 I 
    8  8I                 I 
    9  9I                 I 
    10 10I                 I 
    11 11I                 I 
    12 12I                 I 
    13 13I                 I 
    14 14I                 I 
    15 15I                 I 
    16 16I                 I 
    17 17I                 I 
    18 18I                 I 
    19 19I                 I 
    20 20IIIIIIIIIIIIIIIIIII 
     1IIIIIIIIIIIIIIIIIIIIIIIIIIII 
     2IIIIIIIIIIIIIIIIIIIIIIIIIIII 
     3II                        II 
     4II                        II 
     5II                        II 
     6II                        II 
     7II                        II 
     8II                        II 
     9II                        II 
     10II                        II 
     11II                        II 
     12II                        II 
     13II                        II 
     14II                        II 
     15II                        II 
     16II                        II 
     17II                        II 
     18II                        II 
     19II                        II 
     20II                        II 
     21IIIIIIIIIIIIIIIIIIIIIIIIIIII 
     22IIIIIIIIIIIIIIIIIIIIIIIIIIII 
  • 2010/27/jomiilri/Pong/Content/Content.contentproj

    r1076 r1131  
    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>2f4aa2be-ae4f-4f8d-a209-7bff513e67e5</ProjectGuid> 
     
    3434    <Reference Include="Microsoft.Xna.Framework.Content.Pipeline.XImporter, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> 
    3535  </ItemGroup> 
     36  <ItemGroup> 
     37    <Compile Include="taustakuva1.bmp"> 
     38      <Name>taustakuva1</Name> 
     39      <Importer>TextureImporter</Importer> 
     40      <Processor>TextureProcessor</Processor> 
     41    </Compile> 
     42  </ItemGroup> 
    3643</Project> 
Note: See TracChangeset for help on using the changeset viewer.