Making my own little game (javascript)

Got a great idea for a game - why not post it here!

Moderator: Slitherine Core

Post Reply
Surtur
Site Admin
Site Admin
Posts: 653
Joined: Thu Oct 16, 2008 8:38 am

Making my own little game (javascript)

Post by Surtur »

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

Image

Uploaded with ImageShack.us
Last edited by Surtur on Thu Aug 12, 2010 3:15 pm, edited 2 times in total.
IainMcNeil
Site Admin
Site Admin
Posts: 13558
Joined: Fri Apr 01, 2005 10:19 am

Post by IainMcNeil »

If you get some good gameplay in there I'm sure we can find some graphics to drop in. Good luck!
Surtur
Site Admin
Site Admin
Posts: 653
Joined: Thu Oct 16, 2008 8:38 am

Post by Surtur »

Thanks Iain! I am working on it :)
adherbal
The Artistocrats
The Artistocrats
Posts: 3900
Joined: Fri Jun 24, 2005 6:42 pm
Location: Belgium

Post by adherbal »

Javascript - does that mean it's played in a browser?
Surtur
Site Admin
Site Admin
Posts: 653
Joined: Thu Oct 16, 2008 8:38 am

Post by Surtur »

Yes it does need to be played in a browser.

I just wanted to find out a bit how it is to make a game, and I don't really know any other languages that well.

Movement is almost complete, I made the move files for the first army, now I need to copy (and alter a little) to the other armies.
Meanwhile I am tracking a nasty syntax error, gosh these are frustrating.
Surtur
Site Admin
Site Admin
Posts: 653
Joined: Thu Oct 16, 2008 8:38 am

Post by Surtur »

Movement is working good for now, but I am not yet happy with it. The ui is still quite terrible, but I will make the core game work before I will make these adjustments.
Surtur
Site Admin
Site Admin
Posts: 653
Joined: Thu Oct 16, 2008 8:38 am

Post by Surtur »

Another small update:

Movement is nearly complete and it seems bug free (completely different now). ALso started the script for battles.
I also want to make a start with the random events so I am asking you all to come up for cool ideas for random events.

(Birth waves giving increased amount of citizens, foreign immigrants, money stolen, food found etc.

The game is a 2 player game as of yet, but after it is finnished I will try my luck and script a decent AI. I also would like to get a cooler map adding perhaps forests and rivers/bridges.
Surtur
Site Admin
Site Admin
Posts: 653
Joined: Thu Oct 16, 2008 8:38 am

Post by Surtur »

I once heared that java and javascript are fairly similar. Can someone tell me if it will be possible to convert this game to java once it is finnished ?
Post Reply

Return to “Game Ideas”