Changeset 3211
- Timestamp:
- 2012-06-26 13:30:08 (10 years ago)
- 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 10 10 { 11 11 Image pelaajankuva = LoadImage("smile"); 12 Image tausta = LoadImage("death"); 12 13 PhysicsObject pelaaja; 13 14 public override void Begin() 14 15 { 16 Level.Background.Image = tausta; 17 Level.Background.ScaleToLevelFull(); 15 18 Camera.ZoomToLevel(); 19 Level.CreateBorders(); 16 20 LuoOhjaimet(); 17 21 … … 26 30 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 27 31 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)); 29 33 } 30 34 … … 33 37 pelaaja.Push(vektori); 34 38 } 39 40 protected override void Update(Time time) 41 { 42 base.Update(time); 43 pelaaja.Velocity = new Vector(0, pelaaja.Velocity.Y); 44 } 35 45 } -
2012/26/JoelH/Last Cry/Last Cry/Last CryContent/Last CryContent.contentproj
r3198 r3211 51 51 </Compile> 52 52 </ItemGroup> 53 <ItemGroup> 54 <Compile Include="death.jpg"> 55 <Name>death</Name> 56 <Importer>TextureImporter</Importer> 57 <Processor>TextureProcessor</Processor> 58 </Compile> 59 </ItemGroup> 53 60 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 54 61 <!-- 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.