Pixel Arena is an orthogonal platforming video game that will see the player delving into a map filled with AI-enhanced enemies who will try to stop him at any cost.
We are 3 students from the University of Salerno who decided to develop a video game as a combined project for our Software Engineering and Fundamentals of Artificial Intelligence exams. The idea came from wanting to do a different and quite complex project that could test our skills, while also giving us a chance to learn new technologies in the field of game development. For the realization of this project we used the libGDX framework for the game engine and the Tiled program to make the map, the code was written in Java using the Android Studio IDE and uses gradle as the build system.
The application provides a main menu at startup that gives the player the option of starting a new game or loading an old save. In addition, the player will have to choose the character to use through a special Menu before starting the game. When the game starts, the player will find himself in the map where he will have to eliminate all enemies to advance to the next level, the enemies will be equipped with intelligence and will seek out the enemy in their areas of responsibility, in turn trying to eliminate the player. In each level, healing bases and gems will be seeded that the player can collect to later generate power-ups that will be chosen at the end of the level.
An example of a map showing enemy search areas.
Enemy pathfinding is done through the indexed A* algorithm, the implementation of which is provided in the libGDX library "GDX.ai", thanks to this the enemy will be able to reach the player when the player enters its area of action. For attacking the agent will behave as a simple reactive agent, in fact it is provided with an actionArea that acts as a sensor, when the player enters the enemy's actionArea, the enemy will start attacking it.
WASD to Move: Use the W, A, S, D keys to move.
- Press W to move north.
- Press A to head west.
- Use S to head south.
- Click D to move east.
- The player will also be able to turn the run on or off by pressing the LSHIFT key, while attacking the enemy will require pressing the K key.
- Healing Bases: Find bases scattered around the level.
- Stand on Base: Stand on a base to recover health.
- Healing: While on a base, you will recover 10HP per second.
- Gems in the Level: Gems are scattered throughout the level.
- Collect Gems: Walk over the gems to collect them.
- Life of Enemies: Enemies have 80HP total life.
- Attack: Both you and enemies have an attack of 10.
- Strategy: Use your skill and cunning to defeat enemies.
To start the project from Android Studio first you will need to clone the repository.
git clone https://github.com/fraper02/Pixel-Arena.gitafter which you will need to create a new configuration in order to run the project, instructions at this link: https://libgdx.com/wiki/start/import-and-running
