Making my own little game (javascript)
Posted: Sun Jul 25, 2010 10:02 pm
Hi guys,
Since I did not really know a better place on these forums to place this I thought I might as well place it right here.
So I am kinda new to this and quite bad, yet javascript is fairly easy to understand.
I am making a strategy game where to players face of in turns.
Both teams (red and blue) have one castle and two villages. At the castle they can recruit troops. At the villages he can change tax rates.
Here is some more info:
The game
Goal:
Capture the opponents castle
This is a turnbased strategy game where two players take turns organising their economy, recruit soldiers and fight battles.
During their turn, the players can preform various actions.
The player:
Recieves income/pays upkeep
changes tax
increases/decreases population
recruits armies
moves armies
fights battles
Towns
Every town (4 in totsl, 2 for each team) has got a certain amount of male battle-ready citizens. This number increases slightly throughout the game and can be used to train soldiers. The more citizens you have in the town, the more wealth they generate. The amount of money that a town generates is also known as town wealth. A player can choose how much money they tax from the town wealth. When the town is poor however, growth will be slow, may halt completely and citizens may even migrate to other towns. Yet when the player gathers to little tax, he will not have the money to recruit and support an army. The number of citizens can be recruited, but the less citizens, the less the town wealth, the less money will reach your coffers!
Armies
An army consists of an amount as chosen by the player (minimum = 50, maximum = 1500). Armies can move two squars every turn and can fight an oposing army that is right next to it. An army can sack an enemy village, depriving it of resources while standing upon the village tile. When An army is right next to the enemy's castle, it can choose to lay siege upon it.
Note that armies have an upkeep, depending on the number or soldiers.
If a player has no money to sustain his troops (upkeep) he will loose 10% of every army every turn he can't pay them, until the army has less then 50 men and after that is will dissolve. The people that are leaving the army will return to the villiges they originated from (the village from where they where recruited)
Combat mechanics:
Each army gets one combat point for each soldier within the army.
This is how combat is atm, it is WIP and if you have any thoughts please share them:
So if an army has 50 men, it gets 50 battlepoints as a basic.
If this army is defending, it gets another + 20 %
The damage for the opponent is then calculated by multipling the total amount of battle points divided by 5, with a random generated numer (between 0 and 1)
I would also like to add random events such as ambushes and suprise attacks.
Sacking villages
When an army of the player is standing within an enemy village, the village will not generate wealth for that opponent and region wealth and citizen number will decrease every turn. Yet the attacking army is now plundering and disorganized and will suffer a 10% penalty and loses it's defending bonus.
Random events:
Every turn the player may encounter a random event. This can be both bad and good and when the game is a close call, may even directly shift the balance of power.
----------------------------------
This is what is possible at the moment:
Change taxes
Recruit armies (up to 3)
All citizen growth and birth and migration mechanics done
Upkeep done
Soldiers will leave the army if polayer has no money
Currently working on moving the army.
What do you guys think and do you have any ideas?
Also if someone here happens to be able to make some beautiful tiny 2d images of soldiers/villages/castles it would be welcome!
Thanks in advance,
Surtur
ps. A very WIP screen of the game

Uploaded with ImageShack.us
Since I did not really know a better place on these forums to place this I thought I might as well place it right here.
So I am kinda new to this and quite bad, yet javascript is fairly easy to understand.
I am making a strategy game where to players face of in turns.
Both teams (red and blue) have one castle and two villages. At the castle they can recruit troops. At the villages he can change tax rates.
Here is some more info:
The game
Goal:
Capture the opponents castle
This is a turnbased strategy game where two players take turns organising their economy, recruit soldiers and fight battles.
During their turn, the players can preform various actions.
The player:
Recieves income/pays upkeep
changes tax
increases/decreases population
recruits armies
moves armies
fights battles
Towns
Every town (4 in totsl, 2 for each team) has got a certain amount of male battle-ready citizens. This number increases slightly throughout the game and can be used to train soldiers. The more citizens you have in the town, the more wealth they generate. The amount of money that a town generates is also known as town wealth. A player can choose how much money they tax from the town wealth. When the town is poor however, growth will be slow, may halt completely and citizens may even migrate to other towns. Yet when the player gathers to little tax, he will not have the money to recruit and support an army. The number of citizens can be recruited, but the less citizens, the less the town wealth, the less money will reach your coffers!
Armies
An army consists of an amount as chosen by the player (minimum = 50, maximum = 1500). Armies can move two squars every turn and can fight an oposing army that is right next to it. An army can sack an enemy village, depriving it of resources while standing upon the village tile. When An army is right next to the enemy's castle, it can choose to lay siege upon it.
Note that armies have an upkeep, depending on the number or soldiers.
If a player has no money to sustain his troops (upkeep) he will loose 10% of every army every turn he can't pay them, until the army has less then 50 men and after that is will dissolve. The people that are leaving the army will return to the villiges they originated from (the village from where they where recruited)
Combat mechanics:
Each army gets one combat point for each soldier within the army.
This is how combat is atm, it is WIP and if you have any thoughts please share them:
So if an army has 50 men, it gets 50 battlepoints as a basic.
If this army is defending, it gets another + 20 %
The damage for the opponent is then calculated by multipling the total amount of battle points divided by 5, with a random generated numer (between 0 and 1)
I would also like to add random events such as ambushes and suprise attacks.
Sacking villages
When an army of the player is standing within an enemy village, the village will not generate wealth for that opponent and region wealth and citizen number will decrease every turn. Yet the attacking army is now plundering and disorganized and will suffer a 10% penalty and loses it's defending bonus.
Random events:
Every turn the player may encounter a random event. This can be both bad and good and when the game is a close call, may even directly shift the balance of power.
----------------------------------
This is what is possible at the moment:
Change taxes
Recruit armies (up to 3)
All citizen growth and birth and migration mechanics done
Upkeep done
Soldiers will leave the army if polayer has no money
Currently working on moving the army.
What do you guys think and do you have any ideas?
Also if someone here happens to be able to make some beautiful tiny 2d images of soldiers/villages/castles it would be welcome!
Thanks in advance,
Surtur
ps. A very WIP screen of the game

Uploaded with ImageShack.us