Game
Tide
10 years ago

Java learning progress - NEW GAME!


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.



0 comments

Loading...

Next up

Not tide related. Using maya and might put it into unity.

Where do these posts get views from?

This Satuday we invite to watch another #speedpainting of our artist Daniel Faiad.

How great is this scene of #Pecaminosa?

#ScreenShotSaturday | #IndieDev | #DigitalArt

So

i may or may not make an full art of some person or i may just leave this like that-

We are under attack!

"Thanks guys for endless hours of fun." 👍

(My first fan art. Read the article, please.)

#sonic #mario #photoshop

I was bored, so... ManutKat.

An infected room from the second part of Cybel ! Are you up for some cleansing?

Who's is this little cutey👸 here? Thanks🙏 for a gorgeous fanart @WheNa! Feel free to share your arts, screenshots, or videos with #playzelter or #zelter hashtags! #pixelart #animating #unity3d #animated #indiegames #unrealengine #animate #conceptart

Auto-chess meets Clash Royale in an intense strategic battle. Outsmart your opponent, hide your play and crush their armies! Empire Builder just got another major update, check it out! https://gamejolt.com/games/EmpireBuilder/558901