A terminal-based turn-based battle game written in C.
Choose a DC character, choose an opponent, and fight using attacks with damage, cooldowns, buffs, debuffs, status effects, and character-specific AI.
-
Batman — balanced burst-damage fighter
- Jab
- Batarang
- Explosive Gel
-
Scarecrow — debuff and poison fighter
- Scythe
- Poison Bomb
- Fear Toxin
-
Mr. Freeze — crowd-control fighter
- Ice Cickle
- Ice Blast
- Blizzard
-
Bane — high-health combo fighter
- Punch
- Back Breaker
- Venom
-
Joker — randomized, unpredictable fighter
- Stab
- Laughing Gas
- Shotgun
-
Poison Ivy — poison and healing fighter
- Thorns
- Poison Spores
- Blossom
- Turn-based combat
- Six selectable characters
- Cooldowns for secondary and main attacks
- Status effects:
- Poison
- Fear
- Frozen
- Frost Bite
- Venom damage boost
- Laughing Gas
- Healing
- Character-specific enemy AI
- Randomized Joker AI
- ANSI terminal colors
- Dynamic memory allocation and cleanup
- Tested with Valgrind with no memory leaks or errors
Compile with:
gcc -Wall -Wextra -g batman.c main.c -o batman