- Timestamp:
- 2013-07-04 07:51:23 (10 years ago)
- Location:
- 2013/27/TeemuM/Game
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/27/TeemuM/Game/Game/Game/Game.cs
r4420 r4421 13 13 public Player player { get; private set; } 14 14 private List<Zombie> enemies = new List<Zombie>(); 15 //DoubleMeter LifeMeter; <-- Huono yritykseni tehdä elämä laskuria, aika loppui niin en kerennyt viimeistellä ja en ois osannukkaan, loput tohon liittyvä löytyy tiedoston pohjalta. -Aqua 15 16 16 17 public override void Begin() … … 18 19 game = this; 19 20 Mouse.IsCursorVisible = true; 20 21 MultiSelectWindow menu = new MultiSelectWindow("TESTMODE", "Developer tools", "Start this thing", "Get me out of here"); 22 menu.DefaultCancel = 2; 21 MainMenu(); 22 } 23 24 public void MainMenu() 25 { 26 MultiSelectWindow menu = new MultiSelectWindow("TESTMODE", "Developer tools", "Start this thing", "Perks", "Get me out of here"); 27 menu.DefaultCancel = -0; 23 28 menu.AddItemHandler(0, delegate() { MessageDisplay.Add("Starting game..."); StartGame(); DeveloperCommand(); }); 24 menu.AddItemHandler(1, StartGame); 25 menu.AddItemHandler(2, Exit); 26 Add(menu); 29 menu.AddItemHandler(1, CharacterMenu); 30 menu.AddItemHandler(2, PerkMenu); 31 menu.AddItemHandler(3, Exit); 32 Add(menu); 33 27 34 } 28 35 … … 122 129 { 123 130 Keyboard.Listen(Key.Escape, ButtonState.Pressed, delegate() { PauseMenu(); }, null); 131 Keyboard.Listen(Key.E, ButtonState.Pressed, delegate() { Inventory(); }, null); 124 132 Keyboard.Listen(Key.Tab, ButtonState.Pressed, DeveloperCommand, null); 125 133 AddScoreMeter(); … … 166 174 ClearAll(); 167 175 MessageDisplay.Add("Saved!"); 168 Begin();176 MainMenu(); 169 177 } 170 178 … … 179 187 IsPaused = true; 180 188 } 189 190 public void Inventory() //ToDo Inventory and funktionality 191 { 192 MultiSelectWindow menu = new MultiSelectWindow("Inventory", "Back to Game"); 193 menu.DefaultCancel = 0; 194 menu.AddItemHandler(0, delegate { IsPaused = false; }); 195 Add(menu); 196 IsPaused = true; 197 } 198 199 public void CharacterMenu() //ToDo Character variations 200 { 201 MultiSelectWindow menu = new MultiSelectWindow("Select Character", "Char NRO1", "Char NRO2", "Char NRO3", "Char NRO4", "Back to Main Menu"); 202 menu.DefaultCancel = 0; 203 menu.AddItemHandler(0, StartGame); 204 menu.AddItemHandler(1, StartGame); 205 menu.AddItemHandler(2, StartGame); 206 menu.AddItemHandler(3, StartGame); 207 menu.AddItemHandler(4, MainMenu); 208 Add(menu); 209 } 210 211 public void PerkMenu() //ToDo Perks, Perk selecting system, Save system, and return to main menu button. 212 { 213 MultiSelectWindow menu = new MultiSelectWindow("Select Perks", "Perk NRO1", "Perk NRO2", "Perk NRO3", "Perk NRO4", "Back to Main Menu"); 214 menu.DefaultCancel = 0; 215 menu.AddItemHandler(0, MainMenu); 216 menu.AddItemHandler(1, MainMenu); 217 menu.AddItemHandler(2, MainMenu); 218 menu.AddItemHandler(3, MainMenu); 219 menu.AddItemHandler(4, MainMenu); 220 Add(menu); 221 } 222 223 /*void CreateLifeMeter() 224 { 225 LifeMeter = new DoubleMeter(10); 226 LifeMeter.MaxValue = 10; 227 LifeMeter.LowerLimit += HealthDepleated; 228 229 ProgressBar LifeBar = new ProgressBar(150, 20); 230 LifeBar.X = Screen.Left + 150; 231 LifeBar.Y = Screen.Top - 20; 232 LifeBar.BindTo(LifeMeter); 233 Add(LifeBar); 234 } 235 236 void HealthDepleated() 237 { 238 MessageDisplay.Add("Elämät loppuivat, voi voi."); 239 } */ 181 240 } -
2013/27/TeemuM/Game/Game/GameContent/obj/x86/Debug/ContentPipeline.xml
r4420 r4421 8 8 <Processor>TextureProcessor</Processor> 9 9 <Options>None</Options> 10 <Output> C:\Users\Juho\Desktop\TeemuM\Game\Game\Game\bin\x86\Debug\Content\Player.xnb</Output>11 <Time>2013-07-0 2T22:31:25.0744006+03:00</Time>10 <Output>D:\TeemuM\Game\Game\Game\bin\x86\Debug\Content\Player.xnb</Output> 11 <Time>2013-07-03T01:58:25.5821591+03:00</Time> 12 12 </Item> 13 13 <Item> … … 17 17 <Processor>TextureProcessor</Processor> 18 18 <Options>None</Options> 19 <Output> C:\Users\Juho\Desktop\TeemuM\Game\Game\Game\bin\x86\Debug\Content\Zombie1.xnb</Output>20 <Time>2013-07-0 2T22:59:50.6059514+03:00</Time>19 <Output>D:\TeemuM\Game\Game\Game\bin\x86\Debug\Content\Zombie1.xnb</Output> 20 <Time>2013-07-03T01:58:28.0001852+03:00</Time> 21 21 </Item> 22 22 <Item> … … 26 26 <Processor>TextureProcessor</Processor> 27 27 <Options>None</Options> 28 <Output> C:\Users\Juho\Desktop\TeemuM\Game\Game\Game\bin\x86\Debug\Content\Zombie2.xnb</Output>29 <Time>2013-07-0 2T22:59:50.5969509+03:00</Time>28 <Output>D:\TeemuM\Game\Game\Game\bin\x86\Debug\Content\Zombie2.xnb</Output> 29 <Time>2013-07-03T01:58:28.0031853+03:00</Time> 30 30 </Item> 31 31 <Item> … … 35 35 <Processor>TextureProcessor</Processor> 36 36 <Options>None</Options> 37 <Output> C:\Users\Juho\Desktop\TeemuM\Game\Game\Game\bin\x86\Debug\Content\Zombie3.xnb</Output>38 <Time>2013-07-0 2T22:59:50.6009511+03:00</Time>37 <Output>D:\TeemuM\Game\Game\Game\bin\x86\Debug\Content\Zombie3.xnb</Output> 38 <Time>2013-07-03T01:58:28.0481857+03:00</Time> 39 39 </Item> 40 40 <Item> … … 44 44 <Processor>TextureProcessor</Processor> 45 45 <Options>None</Options> 46 <Output> C:\Users\Juho\Desktop\TeemuM\Game\Game\Game\bin\x86\Debug\Content\Zombie4.xnb</Output>47 <Time>2013-07-0 2T22:59:50.6029512+03:00</Time>46 <Output>D:\TeemuM\Game\Game\Game\bin\x86\Debug\Content\Zombie4.xnb</Output> 47 <Time>2013-07-03T01:58:28.0501858+03:00</Time> 48 48 </Item> 49 49 <BuildSuccessful>true</BuildSuccessful> … … 53 53 <BuildConfiguration>Debug</BuildConfiguration> 54 54 <CompressContent>false</CompressContent> 55 <RootDirectory> C:\Users\Juho\Desktop\TeemuM\Game\Game\GameContent\</RootDirectory>56 <LoggerRootDirectory> C:\Users\Juho\Desktop\TeemuM\Game\Game\Game\</LoggerRootDirectory>57 <IntermediateDirectory> C:\Users\Juho\Desktop\TeemuM\Game\Game\GameContent\obj\x86\Debug\</IntermediateDirectory>58 <OutputDirectory> C:\Users\Juho\Desktop\TeemuM\Game\Game\Game\bin\x86\Debug\Content\</OutputDirectory>55 <RootDirectory>D:\TeemuM\Game\Game\GameContent\</RootDirectory> 56 <LoggerRootDirectory>D:\TeemuM\Game\Game\Game\</LoggerRootDirectory> 57 <IntermediateDirectory>D:\TeemuM\Game\Game\GameContent\obj\x86\Debug\</IntermediateDirectory> 58 <OutputDirectory>D:\TeemuM\Game\Game\Game\bin\x86\Debug\Content\</OutputDirectory> 59 59 </Settings> 60 60 <Assemblies> 61 61 <Assembly> 62 <Key> C:\Program Files (x86)\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key>63 <Value>2013-0 1-29T09:47:36+02:00</Value>62 <Key>P:\Program Files (x86)\Microsoft Visual Studio 10.0\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key> 63 <Value>2013-06-10T21:54:20+03:00</Value> 64 64 </Assembly> 65 65 <Assembly> 66 <Key> C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key>66 <Key>P:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 67 67 <Value>2010-08-23T12:41:18+03:00</Value> 68 68 </Assembly> 69 69 <Assembly> 70 <Key> C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key>70 <Key>P:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 71 71 <Value>2010-08-23T12:41:18+03:00</Value> 72 72 </Assembly> 73 73 <Assembly> 74 <Key> C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key>74 <Key>P:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 75 75 <Value>2010-08-23T12:41:18+03:00</Value> 76 76 </Assembly> 77 77 <Assembly> 78 <Key> C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key>78 <Key>P:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 79 79 <Value>2010-08-23T12:41:18+03:00</Value> 80 80 </Assembly> 81 81 <Assembly> 82 <Key> C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key>82 <Key>P:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 83 83 <Value>2010-08-23T12:41:18+03:00</Value> 84 84 </Assembly> 85 85 <Assembly> 86 <Key> C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key>86 <Key>P:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 87 87 <Value>2010-08-23T12:41:18+03:00</Value> 88 88 </Assembly> 89 89 <Assembly> 90 <Key> C:\Program Files (x86)\Jypeli\lib\ContentExtensions\AnimationExtension.dll</Key>91 <Value>2013-0 1-29T09:47:38+02:00</Value>90 <Key>P:\Program Files (x86)\Microsoft Visual Studio 10.0\Jypeli\lib\ContentExtensions\AnimationExtension.dll</Key> 91 <Value>2013-06-10T21:54:20+03:00</Value> 92 92 </Assembly> 93 93 <Assembly> 94 94 <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> 95 <Value>201 1-06-27T18:29:19.4335733+03:00</Value>95 <Value>2013-06-28T10:05:36.7114153+03:00</Value> 96 96 </Assembly> 97 97 </Assemblies>
Note: See TracChangeset
for help on using the changeset viewer.