PyCity

Home

PyCity is open source free city building game

On this website we will publish updates in news,you can download game
from downloads,and game instructions are in How to play? section





News


Welcome to PyCity website!

Published on 17th March 2020

Welcome to the pycity website! Here you will see updates,news and downloads.


Services,terrain edit,bridge,tax rate,taxes

Published on 28th May 2020

Added fire police stations, hospital, city hall, prison,water,sand, forest lake,
mountains and asphalt in terrain edit mode, added taxes and tax rate and free diffculty and varius bug fixes







How to play?

Starting game

First to start game you need pygame (look in downloads).
When you have pygame installed you can run the pycity.py file:

In linux terminal locate to src folder and run: $ python3 pycity.py

In windows you just run the pycity.py file by double clicking it

The black window should appear and the cmd window too. Then type info (size of the map, city name, difficulty) in the cmd window.
Dont worry if game window says not responding when you enter information it will respond again. When game window appears you can minimize cmd window(terminal in linux).



Building

To start building hover with your mouse cursor over green square where you want to build and press one of the following keys:




Erasing buildings

If you want to erase a building hover with your mouse cursor above it and press E




Terrain edit

To enable edit mode press up arrow on keyboard and down arrow to disable

The edit mode text show if terrain edit is on or off

Edit mode enables you to edit map terrain


Game mehanics

Land value mehanics

Building parks increases land value:
with 0 parks building rezidential zones will build normal houses,
with 1 park building rezidential zone will build bigger homes and with 2 and 3 parks building rezidential zone will build a building

Building rezidential zones also decreases land value so if you build a lot of rezidential zones you could decrease from
a building to a normal house so if you again want to build buildings then you first need to build more parks


Citien's demands

Demands based on square colors(under the money and population)

Demand rules

10 rezidential zones need 1 comertial zone

1 comertial zone needs 1 industrial zone

20 rezidential zones need 1 police and fire station

50000 population needs 1 hospital

5 police stations need 1 prison


Taxes and tax rate

Player gets tax revenue every 100 seconds

Tax rate is calculated by: number of rezidential,comercial,industrial × tax rate × 1000

Tax rate ranges from 0% to 20%

To increase tax rate you need to build city hall and then the tax rate text should appear on the right
press left arrow on keyboard to decraese tax rate, right to increase




Downloads

To download the game click the link bellow

Download


When you click the link you will be redirected to GitHub webpage. To download the game click the green button on the right 'clone or download' and then clone repository with git or click on download zip

When you have the folder downloaded you will need to install pygame python libary

To install pygame open cmd on windows and type 'pip install pygame' or on linux $ pip3 install pygame

For more info on installing pygame click here




Bug reports and your game ideas send at pycityproject@gmail.com
Get the lastest updated at: https://www.pygame.org/project/4740/
PyCity youtube cannel
Made by The Leo Developer