Skip to content

WasixXD/AsciiMon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AsciiMon

Pokemon clone on terminal!

image

Do you think you can reach the star on the end of the map?

Brief 📖

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


Challenges 🐢

  • Use ncurses only
  • Load Mons automatically
  • Battle with trainers
  • Battle with wild mons
  • NPCs
  • Items

Goals 🏆

[ 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)


How it works? 💼

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


How to install 🚀

  • 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 executable

    chmod +x ./script.sh
  • And just run it with

    ./script.sh

▶ DEMO

Please play it with the terminal on fullscreen

  • Wild battle
    image

  • Trainer battle
    image

  • Displaying your mons
    image

  • Seeing info about attacks
    image

  • Seeing info about itens
    image

PS: Pokémon, I Choose You!

About

Pokemon clone on terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published