Game
Tide
11 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?

Did you know that today is #InternationalJazzDay? 🎷😎

No? 😯 Well, we couldn't pass up this date!

And what better to celebrate this day than #Pecaminosa #OST? 🎷

Let us know what you think about it and have a great weekend!

Chiaki Nanami!

Shoobies leave a sticky trail of mucus in their wake, which can impede movement for any creature that steps in it.

Here's a peaceful little forest scene for this #screenshotsaturday, from the beginning of the game.

Have a good Boi

Runestones: from concept to in-game model🗿

I have added rewards for quests so that villagers can give you something in return for your hard work helping them. 🥳

I want to know - what's your favourite quest reward?

What do you think guys in my robot?Just a beginner in 3d modeling..

My instagram https://www.instagram.com/rojhonbb/