Changeset 3211 for 2012


Ignore:
Timestamp:
2012-06-26 13:30:08 (10 years ago)
Author:
jokrhiet
Message:

Talletus.

Location:
2012/26/JoelH
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • 2012/26/JoelH/Last Cry/Last Cry/Last Cry/Last_Cry.cs

    r3198 r3211  
    1010{ 
    1111    Image pelaajankuva = LoadImage("smile"); 
     12    Image tausta = LoadImage("death"); 
    1213    PhysicsObject pelaaja; 
    1314    public override void Begin() 
    1415    { 
     16        Level.Background.Image = tausta; 
     17        Level.Background.ScaleToLevelFull(); 
    1518        Camera.ZoomToLevel(); 
     19        Level.CreateBorders(); 
    1620        LuoOhjaimet(); 
    1721 
     
    2630        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    2731        Mouse.Listen(MouseButton.Left, ButtonState.Down, PelaajaLiikkuu, null, new Vector(0, 1000)); 
    28         Mouse.Listen(MouseButton.Left, ButtonState.Up, PelaajaLiikkuu, null, new Vector(0, 0)); 
     32        Mouse.Listen(MouseButton.Right, ButtonState.Down, PelaajaLiikkuu, null, new Vector(0, -1000)); 
    2933    } 
    3034 
     
    3337        pelaaja.Push(vektori); 
    3438    } 
     39 
     40    protected override void Update(Time time) 
     41    { 
     42        base.Update(time); 
     43        pelaaja.Velocity = new Vector(0, pelaaja.Velocity.Y); 
     44    } 
    3545} 
  • 2012/26/JoelH/Last Cry/Last Cry/Last CryContent/Last CryContent.contentproj

    r3198 r3211  
    5151    </Compile> 
    5252  </ItemGroup> 
     53  <ItemGroup> 
     54    <Compile Include="death.jpg"> 
     55      <Name>death</Name> 
     56      <Importer>TextureImporter</Importer> 
     57      <Processor>TextureProcessor</Processor> 
     58    </Compile> 
     59  </ItemGroup> 
    5360  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    5461  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
Note: See TracChangeset for help on using the changeset viewer.