Skip to content

AnirudhGovil/CoC_in_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoC_in_Python

Terminal based Clash of Clans - esque game in Python

Objective: Destroy all buildings i.e. TownHall (labelled with a T), Huts (labelled with a H), Canons (Labelled with C) and Wizard Towers(Labelled with Z). Walls (Labelled with W) restrict your movement but need not be destroyed to win.

Canons and Wizards will fire at you and your troops from a distance and kill you so be careful. Wizards deal damage in a 3 block radius 7 blocks away.

The colour of the label tells you how much health the troop/structure has left: Green more than 2/3rds health Yellow more than 1/3rd, less than 2/3rds health Red less than 1/3rd health

Watch your own health bar at the bottom of the map to see how much health you have remaining

Controls:

As the King WASD to move, X for axe attack, dealing 50% of your attack rating to everything in a 2 block radius, useful for opening large gaps in walls, Spacebar for sword attacks, dealing 100% of your attack rating to the structure you are facing, useful for destroying buildings.

As the Queen WASD to move, Spacebar for an arrow volley, dealing your attack rating to everything in a 5 block radius 8 blocks away.

J activates Rage Spell, Doubling the attack rating and speed of all troops who are currently alive and spawned. H activates Healing Spell, Increasing your and all alive troops health to 150% of your current health (maxes at full health)

1,2,3 spawn barbarian troops at the 3 corners of the map. 4,5,6 spawn archer troops at the 3 corners of the map. Archers deal damage 5 blocks away and can attack over walls. 7,8,9 spawn balloon troops at the 3 corners of the map. Balloons can fly over walls and buidlings and prioritise taking down defense enemies like cannons and wizards. Balloons avoid canon fire but are vulnerable to Wizard fire.

to play, simply type: python3 game.py

Select King oR Queen to play with

Select one of 3 levels to try.

to watch the replay of your match, type: python3 replay.py

About

Terminla based Clash of Clans like game in Python3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages