A Tower Defence arena level on the CodeCombat platform: Heart Guardian.
Python
CS1-6 & GD1 CodeCombat Students
Defend your heart and survive for as long as possible
In this arena, you control a hero who will fight against incomming waves of enemy units.
Your hero has the ability to spend gold to spawn allied units who will help in this battle.
Gold is earned by killing enemies.
Traps can also be used to damage enemies.
Build fences to slow down the enemy.
Potions can be collected to heal your heart.
- hero.say("Type,Position"): summon a unit on the specfic position
- hero.buildXY("Item",x,y): build an item on (x,y) points.
- warrior: 25 gold
- knight: 15 gold
- thief: 30 gold
- wizard: 20 gold
- archer: 20 gold
- thrower: 25 gold
- buffer: 30 gold
- warlock: 40 gold
- fence: 5 gold
- palisade: 10 gold