Battle

Battle Game

A turn based battle game based on the combat mechanics of games like Final Fantasy.


This battle demo is a standalone version of a battle in an RPG like Final Fantasy. It puts the player against two enemies with everyone taking their turns after the other. At each turn, there is the option of attacking or using a potion. The enemies have some simple AI so they can choose whether to attack or use a potion depending on their own health.


Game is controlled with the mouse.

7 thoughts on “Battle

  1. Thank you so much for the code, i’ve been using this in my new project. I won’t make any money of it don’t worry.

  2. I want to practice such game on my own to text my capable, but I don’t know where I can get those animation pictures, please help sir.

  3. question about the panels. how did you make the panels that long? cuz when I tried to follow the code it just basically shows a square icon not a long panel like yours, and when i checked the assets for the panel they dont have the long panel. (i kind of modified my code because i cropped when following the 800×400 px screen). thank you

    1. The panel is a .png image so I just drew it to the required dimensions. If you resize your game window then you would need to change the size of the panel image as well. You can either edit the image directly in paint or something like that, or you can scale it in code. There are a couple of functions for scaling images in pygame, take a look at the documentation on pygame.org for examples of it and see what suits your project best.

Leave a Reply

Your email address will not be published. Required fields are marked *