Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 3.48 KB

README.md

File metadata and controls

60 lines (37 loc) · 3.48 KB

Turn-Based Battle Game

This game, inspired by classic electronic RPGs like Pokémon and Chrono Trigger, is an exercise for the Algorithm and Data Structures course in the Computer Science program at cesar.school.

Designed for two players, it offers a tactic turn-based battle experience where each participant selects three unique characters.

Each character is distinct, possessing individual Health Points, Resistances, Immunity, Vulnerability, Weakness and a set of three attacks. This varied design enhances the strategic depth of the game.

The game initially features six Types: Physical, Magical, Fire, Water, Poison, and Electric. To illustrate them, we have chosen a representative Pokémon for each type.

Due to its modularity, it´s easy to customize or create their characters and graphics through the manipulation of character.c, character.h, and assets.c files.

The game was developed in C (only with standard libraries), on WSL Ubuntu and MacOS enviroments with gcc compiler.

To run it, a Makefile with commands is provided:

make run

Check to create folder and file for the ranking and the build in the root:

/build
/data/ranking.dat

The game is structured around three main cores:

Characters: The heart of the game, where each character's design plays a role.

character_rattata
character_rattata_art
character_struct

Combat: The battleground where strategies are tested and skills are showcased.

main_combat
combat_loop
attack

User Interface and Ranking: A simple interface and a competitive ranking system, adds to the overall experience.

main_init
update_ranking

Presentation slides

Youtube

https://youtu.be/oxeSl30gNEc

Developed by:
Pedro Coelho and Camila Cirne
Special thanks to the artists at (asciiart.eu) and (Matheus Faria) for their ASCII art contributions, which bring charm and nostalgia to our game.