Skip to content

Wild world simulator written in python with tkinter library. Programming beginnings :) The very first touch with that language and OOP, code written when I was a total lame :)

micmarty/WildWorld-the-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wild world simulator

Link to screenshot

(icons were made in polish language, marked as TODO at the bottom of this page)

Basic info:

  • Game written in OOP Python.

  • GUI made in tkinter library.

  • I tried to use PEP8 standard, for easier code reading and editing.

  • I wrote that as my very first Python project, so don't blame me for crappy code

  • PyCharm from Jetbrains was my IDE

How to run

  1. Make sure you have Python installed(version 3 is preffered -> I tested it on 3.5.2 and it worked like a charm)
  2. Install tkinter library
$ sudo apt install python3-tk
  1. Type in terminal/console:
$ python3 World.py

Rules

no rules, it's a sandbox or a simulation

  1. There are 9 creatures.

  2. Each one has its own attributes, like:

  • initiative - decides who moves first
example: Fox is smarter, so he moves first, then Turtle, etc.
  • strength - the stronger the animal is, the more enemies it can defeat

  • age - if there are two animals with the same initiative, older one moves first.

what animal species does:

they move around, reproduce themselves, kill each other and eat plants

what plants does

they just spread around the map and make no moves

Animals:

Spiecies icon desciption strength initiative
Human human_icon he moves using WSAD, drink stamina elixir - that gives up to 10 strength on 'T' key press, in game he is a 'C' letter, like "człowiek" in polish - -
Wolf wolf_icon - 9 5
Sheep sheep_icon - 4 4
Fox fox_icon SMART power: fox never goes on stronger enemy's teritory 3 7
Turtle turtle_icon
  • MOTIONLESS power: turtle has lower chance to move somewhere. Often stays in place.
  • >SPARTAN SHIELD power: turtles can avoid enemies which have less than 5 points of strength
2 1
Antelope antelope_icon
  • CRAZY JUMP power: antelope jumps every 2 fiels instead of 1(like other species)
  • FAST ESCAPE power: antelope has a 50% chance to do an additional move during a life threatening situation
4 4

Plants:

Plant icon desciption
Grass grass_icon just grows, useless
Sow thistle sow_thistle_icon takes 3 attempts to spread somewhere
Guarana guarana_icon once eaten gives +3 strength
Deadly nightshade deadly_nightshade_icon once eaten, kills

Additional features:

  • You can SAVE game into file (txt), and then LOAD it no you can't :( do that for now

  • There are 2 boxes, that informs you about events (killing, eating, reproducing)

  • You don't need to click 'NextRound' button, just press ENTER

  • MAGIC PEN, hover with mouse at some field. Randomly generated organism would appear.

TODO

  • use PEP
  • update README to markdown
  • create normal icons :)
  • fix game saving and loading beacuse it doesn't work at all
  • adapt to new PEP rules
  • delete crappy code, start anew
  • maybe use PyGame

About

Wild world simulator written in python with tkinter library. Programming beginnings :) The very first touch with that language and OOP, code written when I was a total lame :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages