Do you think you can reach the star on the end of the map?
This is a toy replica of the famous Nintendo Game Pokemon, however this version is played on terminal and don't have pretty graphics. Hardly inspired by: https://github.com/lxgr-linux/pokete
- Use ncurses only
- Load Mons automatically
- Battle with trainers
- Battle with wild mons
- NPCs
- Items
[ x ] First time using C on big project
[ x ] Player can have and capture Mons
[ x ] Player can battle with wild Mons by walking on grass and Trainers in the map
[ x ] Player can use itens and change Mons in the battle
[ x ] Player change Mons before a battle
[ x ] Capture wild mons (but not trainer mons)
[ x ] Heal defeated Mons
[ x ] Player can talk with NPCs in the map (Despite having only one dialog)
So I only use a graphics library called ncurses that the main engine behind at all, so after initialize everything every input that the player makes we capture and see if a event has occurred, so if the player is standing in a grass tile ("w") we just calculate a random factor that says if a wild mon wants to battle. In the battle we transfer the control to a new function that handles all the events that can happen (like using a move, or changing the mons order). The battle also can occur when the player enter a trainer sight then again we transfer the control and make the same process. Other things like seeing a item info are just a while loop that display the info while the input are to not close, seems simple but using such a library that have even simplier functions is difficult
- Be sure to have ncurses installed
sudo apt-get install libncurses5-dev libncursesw5-dev
- On windows if you use MingW64 or MSYS you are very likely to already have it
- Now clone and navigate to the repository folder
git clone https://github.com/WasixXD/AsciiMon
cd AsciiMon
-
Be sure to make the
script.sh
executablechmod +x ./script.sh
-
And just run it with
./script.sh
PS: Pokémon, I Choose You!