- Timestamp:
- 2013-07-28 20:23:29 (9 years ago)
- Location:
- 2013/30/DenisZ/CastleMaster/CastleMaster
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/CastleMaster.csproj
r4713 r4749 87 87 <Compile Include="Entities\TileEntities\TileEntityBlock.cs" /> 88 88 <Compile Include="Entities\TileEntities\TileEntityTree.cs" /> 89 <Compile Include="Errors\MrsMarple.cs" /> 89 90 <Compile Include="Graphics\TimerHelper.cs" /> 90 91 <Compile Include="Graphics\Camera.cs" /> -
2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/Game.cs
r4743 r4749 1 #region Information 2 /* Castle Master by Denis Zhidkikh 3 * 4 * Controls: 5 * Use W, A, S, D to move around the map 6 * Hold Shift while moving to move faster 7 * Hold middle mouse button and drag to move the map 8 * Scroll to zoom in/out 9 * Click on unit with right mouse button to select it 10 * Hold Ctrl while clicking to choose multiple units 11 * Give orders to your units by clicking left mouse button (ordering button) on other units/entities 12 * 13 * Classes: 14 * Woodcutter: 15 * - Costs 5 gold 16 * - Has 20 health 17 * - Really fast 18 * - Order to cut by clicking on the tree with the ordering button 19 * - Order to walk by clicking on the empty tile with the ordering button 20 * - After cutting first tree woodcutter will begin looking for nearby trees to cut 21 * 22 * Warrior: 23 * - Costs 20 gold 24 * - Has 50 health 25 * - Slow 26 * - Order to attack enemy units by clicking on them with the ordering button 27 * - After killing will stay in place until he either gets another order or gets attacked by the enemy 28 * 29 * Ranger: 30 * - Costs 15 gold 31 * - Has 30 health 32 * - Medium speed 33 * - Attacks the same way the warrior does 34 * 35 * Units: 36 * King (and the castle): 37 * - Has 400 health 38 * - Doesn't do anything 39 * - The game ends after being destroyed 40 * 41 * Store (large wooden building): 42 * - Has 400 health 43 * - Can exchange wood to gold 44 * - Selecting it will open the exchange window 45 * - Cannot exchange wood to gold after being destroyed 46 * 47 * Armory (small stone building): 48 * - Has 400 health 49 * - Uses money to buy woodcutters, warriors and rangers 50 * - Selecting it will open the armory window 51 * - Cannot buy more units after being destroyed 52 * 53 * Objective: 54 * Win game by destroying enemy's castle. Make it easier by killing enemy's woodcutters and destroying the store and/or armory. 55 * 56 */ 57 58 #endregion 59 1 60 using CastleMaster.Graphics; 2 61 using CastleMaster.Input; -
2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/Guis/GuiStoreMenu.cs
r4694 r4749 14 14 { 15 15 private const string NAME = "Lumber Exchange"; 16 private const string HELP_TEXT = "<ENTER> Sell wood";16 private const string HELP_TEXT = "<ENTER> Sell all wood"; 17 17 private const string PRICE_TEXT1 = "#1 yields &"; 18 18 -
2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/Program.cs
r4535 r4749 1 1 2 using CastleMaster.Errors; 3 using System; 2 4 namespace CastleMaster 3 5 { … … 10 12 static void Main(string[] args) 11 13 { 12 using (Game game = new Game())14 try 13 15 { 14 game.Run(); 16 using (Game game = new Game()) 17 { 18 game.Run(); 19 } 20 } 21 catch (Exception e) 22 { 23 MrsMarple.LogError(e, "An error has occured:", NamePreferences.DATETIME); 24 Environment.Exit(1); 15 25 } 16 26 } -
2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/Units/UnitStore.cs
r4703 r4749 24 24 HasHealth = true; 25 25 maxHealth = 400; 26 26 27 27 renderOffset.X = 128; 28 28 renderOffset.Y = 83; … … 41 41 public void SellWood() 42 42 { 43 if(Owner.LumberAmount >= 1)43 while (Owner.LumberAmount >= 1) 44 44 { 45 45 Owner.LumberAmount--;
Note: See TracChangeset
for help on using the changeset viewer.