- Timestamp:
- 2017-06-13 13:28:21 (6 years ago)
- Location:
- 2017/24/JouniP
- Files:
-
- 5 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/24/JouniP/Maryo/Maryo/Maryo/Maryo.cs
r8548 r8587 9 9 public class Maryo : PhysicsGame 10 10 { 11 PhysicsObject pelaaja; 11 PlatformCharacter pelaaja; 12 Image pelaajaKatsooOikealle = LoadImage("Melissa_R"); 12 13 13 14 public override void Begin() 14 15 { 16 SmoothTextures = false; 17 15 18 KeskitaIkkuna(); 16 19 … … 20 23 LuoKentta(); 21 24 22 //Gravity = new Vector(0.0, -100.0); 23 25 Gravity = new Vector(0.0, -1000.0); 26 Camera.Zoom(2.0); 27 Camera.Follow(pelaaja); 24 28 25 29 } … … 45 49 void LuoPelaaja() 46 50 { 47 pelaaja = new P hysicsObject(100.0, 100.0);51 pelaaja = new PlatformCharacter(100.0, 100.0); 48 52 pelaaja.CanRotate = false; 53 pelaaja.Image = pelaajaKatsooOikealle; 49 54 Add(pelaaja); 50 55 } … … 58 63 void LisaaNappainkuuntelijat() 59 64 { 60 Keyboard.Listen(Key.Left, ButtonState.Down, LiikutaPelaajaa, null, new Vector(-100, 0));61 Keyboard.Listen(Key.Right, ButtonState.Down, LiikutaPelaajaa, null, new Vector(100, 0));62 Keyboard.Listen(Key.Up, ButtonState.Down, LiikutaPelaajaa, null, new Vector(0, 100));63 Keyboard.Listen(Key.Down, ButtonState.Down, LiikutaPelaajaa, null, new Vector(0, -100));65 Keyboard.Listen(Key.Left, ButtonState.Down, KavelytaPelaajaa, null, -300.0); 66 Keyboard.Listen(Key.Right, ButtonState.Down, KavelytaPelaajaa, null, 300.0); 67 Keyboard.Listen(Key.Up, ButtonState.Down, HypaytaPelaajaa, null); 68 //Keyboard.Listen(Key.Down, ButtonState.Down, LiikutaPelaajaa, null, new Vector(0, -100)); 64 69 65 70 //PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 66 71 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 72 } 73 74 void KavelytaPelaajaa(double nopeusVaakasuunnassa) 75 { 76 pelaaja.Walk(nopeusVaakasuunnassa); 77 } 78 79 void HypaytaPelaajaa() 80 { 81 pelaaja.Jump(500.0); 67 82 } 68 83 -
2017/24/JouniP/Maryo/Maryo/Maryo/obj/x86/Debug/ContentPipeline-{5C191065-01B3-4B75-A129-AF58D1488B13}.xml
r8545 r8587 2 2 <XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 3 3 <Asset Type="Pipeline:BuildItemCollection"> 4 <Item> 5 <Source>Melissa_R.png</Source> 6 <Name>Melissa_R</Name> 7 <Importer>TextureImporter</Importer> 8 <Processor>TextureProcessor</Processor> 9 <Options>None</Options> 10 <Output>C:\MyTemp\JouniP\Maryo\Maryo\Maryo\bin\x86\Debug\Content\Melissa_R.xnb</Output> 11 <Time>2017-06-13T13:18:28.7858361+03:00</Time> 12 </Item> 4 13 <BuildSuccessful>true</BuildSuccessful> 5 14 <Settings> … … 16 25 <Assemblies> 17 26 <Assembly> 27 <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key> 28 <Value>2016-03-29T10:06:40+03:00</Value> 29 </Assembly> 30 <Assembly> 31 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 32 <Value>2011-09-01T17:22:30+03:00</Value> 33 </Assembly> 34 <Assembly> 35 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 36 <Value>2011-09-01T17:22:30+03:00</Value> 37 </Assembly> 38 <Assembly> 39 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 40 <Value>2011-09-01T17:22:30+03:00</Value> 41 </Assembly> 42 <Assembly> 43 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 44 <Value>2011-09-01T17:22:30+03:00</Value> 45 </Assembly> 46 <Assembly> 47 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 48 <Value>2011-09-01T17:22:30+03:00</Value> 49 </Assembly> 50 <Assembly> 51 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 52 <Value>2011-09-01T17:22:30+03:00</Value> 53 </Assembly> 54 <Assembly> 55 <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\AnimationExtension.dll</Key> 56 <Value>2016-03-29T10:06:38+03:00</Value> 57 </Assembly> 58 <Assembly> 18 59 <Key>C:\WINDOWS\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 19 60 <Value>2017-01-23T21:13:21.3033127+02:00</Value> -
2017/24/JouniP/Maryo/Maryo/Maryo/obj/x86/Debug/Maryo.csproj.FileListAbsolute.txt
r8545 r8587 7 7 C:\MyTemp\JouniP\Maryo\Maryo\Maryo\obj\x86\Debug\Maryo.exe 8 8 C:\MyTemp\JouniP\Maryo\Maryo\Maryo\obj\x86\Debug\Maryo.pdb 9 C:\MyTemp\JouniP\Maryo\Maryo\Maryo\bin\x86\Debug\Content\Melissa_R.xnb -
2017/24/JouniP/Maryo/Maryo/MaryoContent/MaryoContent.contentproj
r8545 r8587 45 45 <Reference Include="AnimationExtension" /> 46 46 </ItemGroup> 47 <ItemGroup> 48 <Compile Include="Melissa_R.png"> 49 <Name>Melissa_R</Name> 50 <Importer>TextureImporter</Importer> 51 <Processor>TextureProcessor</Processor> 52 </Compile> 53 </ItemGroup> 47 54 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 48 55 <!-- 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.