WorldGame is a project created for my OOP classes. It's created in a pure Java ☕ with a little bit of Swing library and is a turn-based 🎲 game.
Every time we run the program for the first time we start with:
- a player 👦 placed on the board
- a few animals 😺 (like wolfes, sheeps, turtles etc.)
- and also several plants 🌿 (like guarana, grass etc.)
In every round each of animals move, interact with each other (breed or fight), while plants are trying to spread their seeds across the board. Each animal and plant species has their own power, initiative indicating when it can move and unique behavior.
If both of them are animal and each one of them is the same type then they reproduce 🐤. Otherwise they fight 💢 and the organism with more power points kill another organism 💀.
- ⬅️ Move player to the left
- ➡️ Move player to the right
- ⬆️ Move player up
- ⬇️ Move player down
- 🔤 Click S to activate player's special power
- ✏️ Click on free board position to select and add new organism
Each organism including player has it's own initiative point. Organism with more initiative points moves before other ones with less initiative points.
Below the game board is space that contains logs 📝 about events from previous round - e.g "Wolf killed Player" or "New Wolf on the board"
Of course you can! 😄
After pressing S on the keyboard, player activates his super power - he burns 🔥 every organism that's near him. Super power lasts 5 rounds and user can't use it until 5 rounds will pass.
Name | Power | Initiative | Action performed every round | Action performed after collision |
---|---|---|---|---|
Human | 5 | 4 | Reacts to key presses | Normal fight (unless super power is turned on) |
Wolf | 9 | 5 | Move on random position | Normal fight |
Sheep | 4 | 4 | Move on random position | Normal fight |
Fox | 3 | 7 | Fox will never move on position occupied by stronger organism | Normal fight |
Turtle | 2 | 1 | There is 75% chance that turtle won't move in round | Animals with less power points than 5 can't fight turtle - they need to go back on previous position |
Antelope | 4 | 4 | Antelope's range of movement is 2 fields | Has 50% chance to escape the fight with other organism |
Cyber-sheep | 11 | 4 | Cyber-sheep move towards Borsch if there is any on the board | Can eat Borsch (other animals die after contact with Borsch) |
Name | Power | Initiative | Action performed every round | Action performed after collision |
---|---|---|---|---|
Grass | 0 | 0 | Tries to spread it's seeds | Is eaten by another animal |
Sonchus | 0 | 0 | Has 3 chances to spread it's seeds every round | Is eaten by another animal |
Guarana | 0 | 0 | Tries to spread it's seeds | Animal that eats Guarana gets 3 additional power points |
Berries | 99 | 0 | Tries to spread it's seeds | Animals that eats it - dies immediately |
Borsch | 10 | 0 | Kills every nearby animals | Animals that eats it - dies immediately (except Cyber-Sheep) |