Skip to content

JoreKut/Fighter-2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fighter-2D

This is my University project, which I made a little more interesting and user-friendly. In this game you play as a hero.

Hero has :
  • Weapon
  • 4 Types of Armor
    • Helmet
    • Chest
    • Leggs
    • Boots
  • 3 Types of Magic
    • Magic for Attack
    • Magic for Defence
    • Magic for equipment upgrade

Enemies have the same properties

In the game you have access to the sections: Shop, Arena, Crusade, Profile.

Arena & Crusade

The arena is a type of battle where the hero fights until he dies. The level of enemies and their number increase after each battle.


The crusade is a type of battle where the hero fights until he dies or enemies die.

You can control the hero using the arrows on the keyboard.

Profile

In the profile section you can see all information about your hero. Hero's items such as Armor elements, Weapons, Magic, health points, experience, level and ect.

Shop

In the shop you can buy new equipment such as Armor, Weapon, Magic



CUSTOMISATION

In this program you can create your own map for a custom level. All you you to do this is fill array of symbols and mark the walls with a special symbol.

        
        // '*' - wall
        
        String[] battleMap = {
                "******************************",
                "*                            *",
                "*                            *",
                "*                            *",
                "*     ******      ******     *",
                "*     ******      ******     *",
                "*     ******      ******     *",
                "*     ******      ******     *",
                "*     ******      ******     *",
                "*     ******      ******     *",
                "*     ******      ******     *",
                "*     ******      ******     *",
                "*     ******      ******     *",
                "*                            *",
                "*                            *",
                "*                            *",
                "*                            *",
                "*                            *",
                "*                            *",
                "******************************",
        };

In this program you can add any Equipment. Main class has ArrayList of these items.

In method load[Equipment]Shop() you can add your custom item

    public static void loadWeaponShop(){

        weaponList.add(new Weapon("AK-47", 47,  600, 2 ));
        ...
        ...
        ...

    }