- Timestamp:
- 2017-06-14 13:23:02 (6 years ago)
- Location:
- 2017/24/JouniP
- Files:
-
- 5 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/24/JouniP/Aliohjelmanaytelma/Aliohjelmanaytelma/Aliohjelmanaytelma/Aliohjelmanaytelma.cs
r8619 r8659 11 11 public override void Begin() 12 12 { 13 // Kutsutaan neljällä erilaisella parametrilla:14 PiirraOlio(100.0, 100.0, -40.0, 100.0);15 PiirraOlio(20.0, 20.0, 0.0, 0.0);13 //// Kutsutaan neljällä erilaisella parametrilla: 14 //PiirraOlio(100.0, 100.0, -40.0, 100.0); 15 //PiirraOlio(20.0, 20.0, 0.0, 0.0); 16 16 17 // Kutsutaan vain kahdella parametrilla: 18 PiirraOlio(100.0, 100.0); 17 //// Kutsutaan vain kahdella parametrilla: 18 //PiirraOlio(100.0, 100.0); 19 20 //PiirraOlio(100.0, 100.0, 0*150.0, 0.0); 21 //PiirraOlio(100.0, 100.0, 1*150.0, 0.0); 22 //PiirraOlio(100.0, 100.0, 2*150.0, 0.0); 23 //PiirraOlio(100.0, 100.0, 3*150.0, 0.0); 24 25 for (int i = 0; i < 10; i++) 26 { 27 PiirraOlio(100.0, 100.0, i * 150.0, 0.0); 28 } 29 30 Camera.ZoomToAllObjects(); 31 19 32 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 20 33 } -
2017/24/JouniP/Aliohjelmanaytelma/Aliohjelmanaytelma/Aliohjelmanaytelma/obj/x86/Debug/Aliohjelmanaytelma.csproj.FileListAbsolute.txt
r8619 r8659 6 6 C:\MyTemp\JouniP\Aliohjelmanaytelma\Aliohjelmanaytelma\Aliohjelmanaytelma\obj\x86\Debug\Aliohjelmanaytelma.exe 7 7 C:\MyTemp\JouniP\Aliohjelmanaytelma\Aliohjelmanaytelma\Aliohjelmanaytelma\obj\x86\Debug\Aliohjelmanaytelma.pdb 8 C:\MyTemp\JouniP\Aliohjelmanaytelma\Aliohjelmanaytelma\Aliohjelmanaytelma\obj\x86\Debug\Aliohjelmanaytelma.csprojResolveAssemblyReference.cache -
2017/24/JouniP/Maryo/Maryo/Maryo/Maryo.cs
r8619 r8659 18 18 KeskitaIkkuna(); 19 19 20 LuoPelaaja();20 //LuoPelaaja(); 21 21 LisaaNappainkuuntelijat(); 22 22 … … 24 24 25 25 Gravity = new Vector(0.0, -1000.0); 26 Camera.Zoom(2.0);26 //Camera.Zoom(2.0); 27 27 Camera.Follow(pelaaja); 28 28 … … 57 57 } 58 58 59 void LuoPelaaja( )59 void LuoPelaaja(Vector paikka, double leveys, double korkeus) 60 60 { 61 pelaaja = new PlatformCharacter(100.0, 100.0); 61 pelaaja = new PlatformCharacter(leveys, korkeus); 62 63 pelaaja.Position = paikka; 64 65 // Voisi olla myös näin: 66 //pelaaja.X = paikka.X; 67 //pelaaja.Y = paikka.Y; 68 62 69 pelaaja.CanRotate = false; 63 70 pelaaja.Image = pelaajaKatsooOikealle; … … 102 109 void LuoKentta() 103 110 { 104 LuoEste(300.0, 0.0);105 LuoEste(-300.0, 0.0);106 LuoEste(0.0, 300.0);107 LuoEste(0.0, -300.0);111 //LuoEste(300.0, 0.0); 112 //LuoEste(-300.0, 0.0); 113 //LuoEste(0.0, 300.0); 114 //LuoEste(0.0, -300.0); 108 115 109 LuoVihollinen(-100.0, 200.0);116 //LuoVihollinen(-100.0, 200.0); 110 117 111 Level.CreateBorders(); 118 //Level.CreateBorders(); 119 120 TileMap ruudut = TileMap.FromLevelAsset("kentta1"); 121 ruudut.SetTileMethod('#', LuoPalikka); 122 ruudut.SetTileMethod('!', LuoPelaaja); 123 //ruudut.SetTileMethod('*', LuoTahti); 124 ruudut.Execute(100.0, 100.0); 125 126 127 } 128 129 void LuoPalikka(Vector paikka, double leveys, double korkeus) 130 { 131 PhysicsObject palikka = PhysicsObject.CreateStaticObject(leveys, korkeus); 132 palikka.Position = paikka; 133 palikka.Shape = Shape.Rectangle; 134 palikka.Color = Color.HotPink; 135 Add(palikka); 112 136 } 113 137 } -
2017/24/JouniP/Maryo/Maryo/Maryo/Maryo.csproj.Debug.cachefile
r8587 r8659 1 1 Content\Melissa_R.xnb 2 Content\kentta1.xnb -
2017/24/JouniP/Maryo/Maryo/Maryo/obj/x86/Debug/ContentPipeline-{5C191065-01B3-4B75-A129-AF58D1488B13}.xml
r8587 r8659 10 10 <Output>C:\MyTemp\JouniP\Maryo\Maryo\Maryo\bin\x86\Debug\Content\Melissa_R.xnb</Output> 11 11 <Time>2017-06-13T13:18:28.7858361+03:00</Time> 12 </Item> 13 <Item> 14 <Source>kentta1.txt</Source> 15 <Name>kentta1</Name> 16 <Importer>TextFileImporter</Importer> 17 <Processor>TextFileContentProcessor</Processor> 18 <Options>None</Options> 19 <Output>C:\MyTemp\JouniP\Maryo\Maryo\Maryo\bin\x86\Debug\Content\kentta1.xnb</Output> 20 <Time>2017-06-14T13:21:07.9135048+03:00</Time> 12 21 </Item> 13 22 <BuildSuccessful>true</BuildSuccessful> -
2017/24/JouniP/Maryo/Maryo/Maryo/obj/x86/Debug/Maryo.csproj.FileListAbsolute.txt
r8587 r8659 8 8 C:\MyTemp\JouniP\Maryo\Maryo\Maryo\obj\x86\Debug\Maryo.pdb 9 9 C:\MyTemp\JouniP\Maryo\Maryo\Maryo\bin\x86\Debug\Content\Melissa_R.xnb 10 C:\MyTemp\JouniP\Maryo\Maryo\Maryo\bin\x86\Debug\Content\kentta1.xnb -
2017/24/JouniP/Maryo/Maryo/Maryo/obj/x86/Debug/cachefile-{5C191065-01B3-4B75-A129-AF58D1488B13}-targetpath.txt
r8587 r8659 1 1 Content\Melissa_R.xnb 2 Content\kentta1.xnb -
2017/24/JouniP/Maryo/Maryo/MaryoContent/MaryoContent.contentproj
r8587 r8659 52 52 </Compile> 53 53 </ItemGroup> 54 <ItemGroup> 55 <Compile Include="kentta1.txt"> 56 <Name>kentta1</Name> 57 <Importer>TextFileImporter</Importer> 58 <Processor>TextFileContentProcessor</Processor> 59 </Compile> 60 </ItemGroup> 54 61 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 55 62 <!-- 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.