Changeset 5101


Ignore:
Timestamp:
2014-06-25 14:56:37 (9 years ago)
Author:
tihaapas
Message:

tein jotain uutta

Location:
2014/26/TimoH
Files:
5 added
15 edited

Legend:

Unmodified
Added
Removed
  • 2014/26/TimoH/Juoksupeli/Juoksupeli/Juoksupeli/Juoksupeli.cs

    r5087 r5101  
    3737    void LuoPelaaja(Vector paikka, double leveys, double korkeus) 
    3838    { 
    39         Pelaaja = new PhysicsObject(100.0, 100.0); 
     39        Pelaaja = new PhysicsObject(50.0, 50.0); 
    4040        Pelaaja.Position = paikka; 
    41         Pelaaja.Image = LoadImage("jonne"); 
     41        Pelaaja.Shape = Shape.Star; 
     42        //Pelaaja.Image = LoadImage("jonne"); 
    4243        Add(Pelaaja); 
    4344    } 
     
    5455    void LisaaOhjaimet() 
    5556    { 
    56         Keyboard.Listen(Key.Up, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(0, 1000)); 
    57         Keyboard.Listen(Key.Left, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(-1000, 0)); 
    58         Keyboard.Listen(Key.Right, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(1000, 0)); 
    59         Keyboard.Listen(Key.Down, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(0, -1000)); 
     57        Keyboard.Listen(Key.Up, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(0, 2000)); 
     58        Keyboard.Listen(Key.Left, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(-2000, 0)); 
     59        Keyboard.Listen(Key.Right, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(2000, 0)); 
     60        Keyboard.Listen(Key.Down, ButtonState.Down, LiikutaPelaajaa, "liikuttaa pelaajaa", new Vector(0, -2000)); 
    6061        Keyboard.Listen(Key.R, ButtonState.Pressed, AloitaAlusta, "aloitaa pelin alusta"); 
    6162 
     
    7273    void LuoVihu(Vector paikka, double leveys, double korkeus) 
    7374    { 
    74         vihu = new PhysicsObject(100, 100); 
    75         vihu.Image = LoadImage("images"); 
     75        vihu = new PhysicsObject(300, 50); 
     76        vihu.Image = LoadImage("puukko_04"); 
    7677        vihu.Position = paikka; 
    7778        Add(vihu); 
  • 2014/26/TimoH/Juoksupeli/Juoksupeli/Juoksupeli/Juoksupeli.csproj.Debug.cachefile

    r5087 r5101  
    33Content\jonne.xnb 
    44Content\images.xnb 
     5Content\puukko_04.xnb 
    56Content\kentta.txt 
  • 2014/26/TimoH/Juoksupeli/Juoksupeli/Juoksupeli/bin/x86/Debug/Content/kentta.txt

    r5087 r5101  
    1 ############################################################################ 
    2 #..........................................................................# 
    3 #..........................................................................# 
    4 #..........................................................................# 
    5 #..........................................................................# 
    6 #..........................................................................# 
    7 #..........................................................................# 
    8 #..........................................................................# 
    9 #..........................................................................# 
    10 #...........................#####..........................................# 
    11 #..........................................................................# 
    12 #..........................................................................# 
    13 #..................................#.......................................# 
    14 #p..........................#####............................v.............# 
    15 #..........................................................................# 
    16 #..........................................................................# 
    17 #..........................................................................# 
    18 #..........................................................................# 
    19 #..........................................................................# 
    20 #..........................................................................# 
    21 #..........................................................................# 
    22 #..........................................................................# 
    23 #..........................................................................# 
    24 #..........................................................................# 
    25 #..........................................................................# 
    26 #..........................................................................# 
    27 #..........................................................................# 
    28 #..........................................................................# 
    29 #..........................................................................# 
    30 #..........................................................................# 
    31 ############################################################################ 
     1########################################################################################################################## 
     2#........................................................................................................................# 
     3#........................................................................................................................# 
     4#........................................................................................................................# 
     5#........................................................................................................................# 
     6#........................................................................................................................# 
     7#........................................................................................................................# 
     8#........................................................................................................................# 
     9#........................................................................................................................# 
     10#....p......................#####........................................................................................# 
     11#........................................................................................................................# 
     12#.............................................................................................##################.........# 
     13#..................................#..........................................................#................#.........# 
     14#...........................#####..........................................................................v...#.........# 
     15#..............................................................................................................#.........# 
     16#.............................................................................................##################.........# 
     17#........................................................................................................................# 
     18#........................................................................................................................# 
     19#........................................................................................................................# 
     20#........................................................................................................................# 
     21#........................................................................................................................# 
     22#........................................................................................................................# 
     23#........................................................................................................................# 
     24#........................................................................................................................# 
     25#........................................................................................................................# 
     26#........................................................................................................................# 
     27#........................................................................................................................# 
     28#........................................................................................................................# 
     29#........................................................................................................................# 
     30#........................................................................................................................# 
     31########################################################################################################################## 
  • 2014/26/TimoH/Juoksupeli/Juoksupeli/Juoksupeli/obj/x86/Debug/ContentPipeline-{522A2DCB-7EC9-4788-A4D4-9C05B1FEF581}.xml

    r5087 r5101  
    99      <Options>None</Options> 
    1010      <Output>C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\bin\x86\Debug\Content\kentta.xnb</Output> 
    11       <Time>2014-06-25T10:55:08.493092+03:00</Time> 
     11      <Time>2014-06-25T14:00:23.1522908+03:00</Time> 
    1212    </Item> 
    1313    <Item> 
     
    3737      <Output>C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\bin\x86\Debug\Content\images.xnb</Output> 
    3838      <Time>2014-06-25T10:58:46.7569162+03:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>puukko_04.png</Source> 
     42      <Name>puukko_04</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\bin\x86\Debug\Content\puukko_04.xnb</Output> 
     47      <Time>2014-06-25T12:29:28.4184851+03:00</Time> 
    3948    </Item> 
    4049    <BuildSuccessful>true</BuildSuccessful> 
  • 2014/26/TimoH/Juoksupeli/Juoksupeli/Juoksupeli/obj/x86/Debug/Juoksupeli.csproj.FileListAbsolute.txt

    r5087 r5101  
    1111C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\bin\x86\Debug\Content\jonne.xnb 
    1212C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\bin\x86\Debug\Content\images.xnb 
     13C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\obj\x86\Debug\Juoksupeli.csprojResolveAssemblyReference.cache 
     14C:\MyTemp\TimoH\Juoksupeli\Juoksupeli\Juoksupeli\bin\x86\Debug\Content\puukko_04.xnb 
  • 2014/26/TimoH/Juoksupeli/Juoksupeli/Juoksupeli/obj/x86/Debug/cachefile-{522A2DCB-7EC9-4788-A4D4-9C05B1FEF581}-targetpath.txt

    r5087 r5101  
    33Content\jonne.xnb 
    44Content\images.xnb 
     5Content\puukko_04.xnb 
    56Content\kentta.txt 
  • 2014/26/TimoH/Juoksupeli/Juoksupeli/JuoksupeliContent/JuoksupeliContent.contentproj

    r5087 r5101  
    7474    </Compile> 
    7575  </ItemGroup> 
     76  <ItemGroup> 
     77    <Compile Include="puukko_04.png"> 
     78      <Name>puukko_04</Name> 
     79      <Importer>TextureImporter</Importer> 
     80      <Processor>TextureProcessor</Processor> 
     81    </Compile> 
     82  </ItemGroup> 
    7683  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    7784  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2014/26/TimoH/Juoksupeli/Juoksupeli/JuoksupeliContent/kentta.txt

    r5087 r5101  
    1 ############################################################################ 
    2 #..........................................................................# 
    3 #..........................................................................# 
    4 #..........................................................................# 
    5 #..........................................................................# 
    6 #..........................................................................# 
    7 #..........................................................................# 
    8 #..........................................................................# 
    9 #..........................................................................# 
    10 #...........................#####..........................................# 
    11 #..........................................................................# 
    12 #..........................................................................# 
    13 #..................................#.......................................# 
    14 #p..........................#####............................v.............# 
    15 #..........................................................................# 
    16 #..........................................................................# 
    17 #..........................................................................# 
    18 #..........................................................................# 
    19 #..........................................................................# 
    20 #..........................................................................# 
    21 #..........................................................................# 
    22 #..........................................................................# 
    23 #..........................................................................# 
    24 #..........................................................................# 
    25 #..........................................................................# 
    26 #..........................................................................# 
    27 #..........................................................................# 
    28 #..........................................................................# 
    29 #..........................................................................# 
    30 #..........................................................................# 
    31 ############################################################################ 
     1########################################################################################################################## 
     2#........................................................................................................................# 
     3#........................................................................................................................# 
     4#........................................................................................................................# 
     5#........................................................................................................................# 
     6#........................................................................................................................# 
     7#........................................................................................................................# 
     8#........................................................................................................................# 
     9#........................................................................................................................# 
     10#....p......................#####........................................................................................# 
     11#........................................................................................................................# 
     12#.............................................................................................##################.........# 
     13#..................................#..........................................................#................#.........# 
     14#...........................#####..........................................................................v...#.........# 
     15#..............................................................................................................#.........# 
     16#.............................................................................................##################.........# 
     17#........................................................................................................................# 
     18#........................................................................................................................# 
     19#........................................................................................................................# 
     20#........................................................................................................................# 
     21#........................................................................................................................# 
     22#........................................................................................................................# 
     23#........................................................................................................................# 
     24#........................................................................................................................# 
     25#........................................................................................................................# 
     26#........................................................................................................................# 
     27#........................................................................................................................# 
     28#........................................................................................................................# 
     29#........................................................................................................................# 
     30#........................................................................................................................# 
     31########################################################################################################################## 
Note: See TracChangeset for help on using the changeset viewer.