Quantcast
Channel: News Articles for Tide
Viewing all articles
Browse latest Browse all 11

Java learning progress - NEW GAME!

$
0
0

I have made good progress with learning java and i am now creating a small text based game. i may or may not impliment a UI when the bulk of it is finished. if i do, i might upload it to gamejolt (it will likely be wordy, like current versions of tide are. probably less wordy than that. I might make some static images).

the game is heavily based of a text based game i made before tide (you could call it a remake). this game placed the player in controll of a small band of units, where you could search for food, look for a fight, recruit units, or move to another area. you could only take so many actions before you had to move on. 

i made it on a holiday, when i forgot to bring medevil 2 total war along with me (stratergy game). i spent about 2 days on it and stayed up till midnight untill it was completed (i was also playing other games in between proramming and doing holiday stuff).

so far i have completed the following:

  1. A class that takes in a chance (20% , 42% etc) and outputs True or False.
  2. Using prementioned class, A class that takes in 2 numbers (army sizes) and outputs True of False (if the player won) and 2 numbers (remainder army sizes). basicly, its what runs the battles.

The battles work like the following (subject to change):

each unit in the players army gets chanced with 50% (will change with prehaps skill and/or gear). if True is returned, they kill an enemy unit. If false is returned, they are killed by the enemy.

once one army reaches 0, the winner is decided (the army with 0 units looses). each killed unit then gets a 25% chance to survive (they were injured and not killed). this means if your army looses, you don't loose all your units.

because the program iterates over every unit and runs about 20 lines of code on each one, exsessively large battles will take some time to process. 1000 on both sides is perfectly fine, but 1000000 (1 million) takes a few seconds.

if anyone has any system that they think may work better, please comment.

if you have any ideas for this game, comment also.

if you think i should make a GUI whan it's done and upload it to gamejot..... you know what to do by now.


Viewing all articles
Browse latest Browse all 11

Latest Images

Trending Articles





Latest Images