- Timestamp:
- 2015-06-25 11:51:52 (6 years ago)
- Location:
- 2015/26/RasmusP/DungeonClasher
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/DungeonClasher.cs
r6260 r6343 9 9 class mob : PhysicsObject 10 10 { 11 private IntMeter elamaLaskuri = new IntMeter( 50,0, 50);11 private IntMeter elamaLaskuri = new IntMeter(25 ,0, 25); 12 12 public IntMeter ElamaLaskuri { get { return elamaLaskuri; } } 13 13 … … 19 19 public int Elamat { get; set; } 20 20 public int Kilpi { get; set; } 21 21 22 } 22 23 … … 27 28 Image tiiliskivi = LoadImage("Tiiliskivi"); 28 29 Image miekkaKuva = LoadImage("Miekka"); 30 Image taustaKuva = LoadImage("TaustaKuva"); 31 Image tyrmaSeina = LoadImage("DunegonWall"); 32 29 33 PlatformCharacter pelaaja; 30 34 PhysicsObject miekka; 31 35 36 37 32 38 33 39 34 40 private IntMeter elamaLaskuri = new IntMeter(20, 0, 20); 41 35 42 36 43 int kenttaNro = 1; … … 42 49 { 43 50 SmoothTextures = false; 44 45 LuoKentta(); 51 52 MultiSelectWindow alkuvaliko = new MultiSelectWindow("DungeonClasher", "Aloita peli", "Lopeta"); 53 alkuvaliko.AddItemHandler(0, AloitaPeli); 54 alkuvaliko.AddItemHandler(1, Exit); 55 56 Add(alkuvaliko); 57 58 59 60 46 61 //SeuraavaKentta(); 47 62 48 63 49 50 } 64 } 65 void AloitaPeli() 66 { 67 68 LuoKentta(); 69 } 70 51 71 void SeuraavaKentta() 52 72 { … … 69 89 ruudut.SetTileMethod('B', LuoBossi); 70 90 ruudut.SetTileMethod('k', LisaaKallio); 91 ruudut.SetTileMethod('D', LuoTyrmanSeina); 92 71 93 ruudut.Execute(40, 40); 72 94 73 95 Gravity = new Vector(0.0, -1000); 74 96 75 Level.CreateBorders(); 97 Level.CreateBorders(false); 98 99 76 100 asetaNappaimet(); 77 101 … … 97 121 pelaaja.Walk(vektori.X); 98 122 } 123 124 void LuoTyrmanSeina(Vector paikka, double korkeus, double leveys) 125 { 126 127 128 GameObject seina = new GameObject(200, 200); 129 seina.Image = tyrmaSeina; 130 131 Add(seina, -2); 132 133 seina.Position = paikka; 134 seina.Y = lattia.Y + lattia.Height / 2; 135 136 137 138 139 } 99 140 void PysaytaPelaaja(Vector vektori) 100 141 { … … 230 271 Add(elamaPalkki); 231 272 232 Add(pelaaja );273 Add(pelaaja, 1); 233 274 234 275 pelaaja.MaxAngularVelocity = 0; -
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/DungeonClasher.csproj.Debug.cachefile
r6260 r6343 7 7 Content\kentta6.xnb 8 8 Content\Miekka.xnb 9 Content\Ritari.xnb 9 Content\TaustaKuva.xnb 10 Content\DunegonWall.xnb 10 11 Content\kentta1.txt 11 12 Content\kentta2.txt -
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/bin/x86/Debug/Content/kentta1.txt
r6241 r6343 7 7 ............................................. 8 8 ............................................. 9 ............................................. 9 DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD 10 10 ..P........................=.......=.....=... 11 11 ********************************************* -
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/obj/x86/Debug/ContentPipeline-{9E8A5BF1-0124-4B72-B960-7241168C215B}.xml
r6260 r6343 9 9 <Options>None</Options> 10 10 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\kentta1.xnb</Output> 11 <Time>2015-06-2 4T09:36:42.0426062+03:00</Time>11 <Time>2015-06-25T11:21:10.4047828+03:00</Time> 12 12 </Item> 13 13 <Item> … … 63 63 <Options>None</Options> 64 64 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\kentta6.xnb</Output> 65 <Time>2015-06-2 4T13:42:24.3553564+03:00</Time>65 <Time>2015-06-25T09:41:00.1578828+03:00</Time> 66 66 </Item> 67 67 <Item> … … 75 75 </Item> 76 76 <Item> 77 <Source> Ritari.png</Source>78 <Name> Ritari</Name>77 <Source>TaustaKuva.png</Source> 78 <Name>TaustaKuva</Name> 79 79 <Importer>TextureImporter</Importer> 80 80 <Processor>TextureProcessor</Processor> 81 81 <Options>None</Options> 82 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritari.xnb</Output> 83 <Time>2015-06-24T14:38:31.5025564+03:00</Time> 82 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\TaustaKuva.xnb</Output> 83 <Time>2015-06-25T09:57:51.0092828+03:00</Time> 84 </Item> 85 <Item> 86 <Source>DunegonWall.png</Source> 87 <Name>DunegonWall</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\DunegonWall.xnb</Output> 92 <Time>2015-06-25T11:16:33.7919828+03:00</Time> 84 93 </Item> 85 94 <BuildSuccessful>true</BuildSuccessful> -
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/obj/x86/Debug/DungeonClasher.csproj.FileListAbsolute.txt
r6260 r6343 31 31 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\kentta6.txt 32 32 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Miekka.xnb 33 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\Ritari.xnb 33 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\TaustaKuva.xnb 34 C:\MyTemp\RasmusP\Hi\DungeonClasher\DungeonClasher\DungeonClasher\bin\x86\Debug\Content\DunegonWall.xnb -
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasher/obj/x86/Debug/cachefile-{9E8A5BF1-0124-4B72-B960-7241168C215B}-targetpath.txt
r6260 r6343 7 7 Content\kentta6.xnb 8 8 Content\Miekka.xnb 9 Content\Ritari.xnb 9 Content\TaustaKuva.xnb 10 Content\DunegonWall.xnb 10 11 Content\kentta1.txt 11 12 Content\kentta2.txt -
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasherContent/DungeonClasherContent.contentproj
r6260 r6343 99 99 </Compile> 100 100 </ItemGroup> 101 <ItemGroup> 102 <Compile Include="TaustaKuva.png"> 103 <Name>TaustaKuva</Name> 104 <Importer>TextureImporter</Importer> 105 <Processor>TextureProcessor</Processor> 106 </Compile> 107 </ItemGroup> 108 <ItemGroup> 109 <Compile Include="DunegonWall.png"> 110 <Name>DunegonWall</Name> 111 <Importer>TextureImporter</Importer> 112 <Processor>TextureProcessor</Processor> 113 </Compile> 114 </ItemGroup> 101 115 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 102 116 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2015/26/RasmusP/DungeonClasher/DungeonClasher/DungeonClasherContent/kentta1.txt
r6241 r6343 7 7 ............................................. 8 8 ............................................. 9 ............................................. 9 DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD 10 10 ..P........................=.......=.....=... 11 11 *********************************************
Note: See TracChangeset
for help on using the changeset viewer.