Changeset 4749 for 2013


Ignore:
Timestamp:
2013-07-28 20:23:29 (6 years ago)
Author:
dezhidki
Message:

Yksinkertainen virheiden loggaus (tallentee virheitä logs kansioon)
Kaupassa voi nyt myydä kaikki puut kerralla
Lisätty tarkemmat ohjeet Game.cs:ään

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  
    8787    <Compile Include="Entities\TileEntities\TileEntityBlock.cs" /> 
    8888    <Compile Include="Entities\TileEntities\TileEntityTree.cs" /> 
     89    <Compile Include="Errors\MrsMarple.cs" /> 
    8990    <Compile Include="Graphics\TimerHelper.cs" /> 
    9091    <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 
    160using CastleMaster.Graphics; 
    261using CastleMaster.Input; 
  • 2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/Guis/GuiStoreMenu.cs

    r4694 r4749  
    1414    { 
    1515        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"; 
    1717        private const string PRICE_TEXT1 = "#1 yields &"; 
    1818 
  • 2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/Program.cs

    r4535 r4749  
    11 
     2using CastleMaster.Errors; 
     3using System; 
    24namespace CastleMaster 
    35{ 
     
    1012        static void Main(string[] args) 
    1113        { 
    12             using (Game game = new Game()) 
     14            try 
    1315            { 
    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); 
    1525            } 
    1626        } 
  • 2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/Units/UnitStore.cs

    r4703 r4749  
    2424            HasHealth = true; 
    2525            maxHealth = 400; 
    26              
     26 
    2727            renderOffset.X = 128; 
    2828            renderOffset.Y = 83; 
     
    4141        public void SellWood() 
    4242        { 
    43             if (Owner.LumberAmount >= 1) 
     43            while (Owner.LumberAmount >= 1) 
    4444            { 
    4545                Owner.LumberAmount--; 
Note: See TracChangeset for help on using the changeset viewer.