Instructions

Fauna Wars has been developed to be only played on a local computer, the database is created locally and the server runs with NodeJS on the local machine.

To run the server you need to acess the cmd in the folder downloaded using cd “path_to_folder and run the serverScript.js using the command node serverScript.js

Inside the Database folder there are 2 sql scripts used to initialize and populate the database these need to be run for example using MySQL Workbench in order for the game to work. The queries.sql are some test queries that I used.

The game is set to run on port 3306.

Gameplay

Map

Clicking the Map box changes the main window to the world map window. Here the player can see his own, his allies and his enemys cities. Clicking on a city will show the Username, player faction, player total points and city name clicking it also allows the player to send an attack if it is an enemy. See the image below.

Map

City

Clicking the city box changes the main window to the players current selected village view. Here the players can see his buildings and their levels. Here the player can interact with some of his buildings taking him to different windows.

In the build page the player can upgrade the buildings on his currently selected city. Building or upgrading a building cost resources and takes time.

City

City Dropdown

In this section the player can see the currently selected city name. There is also a button here to show a dropdown menu with all the player cities. Here the player can click a certain city in the dropdown menu to select it.

City Dropdown

Buildings

Buildings are one of the main concepts in Fauna Wars. Each building has levels and a level cap to build or upgrade a building you require resources.

You will require more resources the higher the level of the building. The buildings exist in players cities and they define how much points a player possesses. Each building and building level gives the players points

Attacking and Defending

Attacking is one of the core concepts in Fauna Wars. In the world map view after selecting an enemy city a player can select the attack button which leads the player to the window shown below. Here he can select the number of troops he wants to send in an attack.

After sending an attack the troops take a set amount of time to arrive at the enemy. The time the army takes to arrive is always calculated depending on the distance between the cities.

Attack Menu

Attack Points

To know the strength of an attack a total of an army Attack points is calculated.

The formula used is:

Attack Points

Defense Points

To know the strength of a defense a total of an army Defense points is calculated.

The formula used is:

Defense Points

Calculating the winner

To know who wins a battle we calculate the ratio between the Total Attack points of the attacker and Total Defense Points of the Defender is done.

The formula used is:

-If Ratio > 1, then Attacker Wins -If 0 < Ratio < 1, then Defender Wins -If Ratio = 1, then Defender Wins

Troops Lost

To know the number of troops the attacker and defender loose in a battle the ratio between the Total Attack points of the attacker and Total Defense Points of the Defender is used. When the ratio is between 0 and 1 (normalized value), the attacker loses all troops since he lost battle and we use this to know of many troops the defender loses.

Conquering

When the attacker wins a battle, he conquers the enemy city he attacked. This city belongs now to the attacker and he can do what he wants with it. The resources that were present in the city the moment it was conquered also now belong to the attacker. The buildings stay at the level they were. The only thing that changes is the faction and owner.

Troops

Clicking the Recruit box changes the main window to the Recruit window. In the city main view clicking on the Barracks will also take the player to this window. Here the player can recruit troops that stay in the city they are being recruited on until the player gives them some action. Recruiting troops cost resources and takes time.

Troops

Enemy Movements

In this section the player can see information about enemy movements that are happening related to his currently selected city. Enemy movements include attacks coming to the current city.

Enemy Movements

Player Movements

In this section the player can see information about ally movements that are happening related to his currently selected city. Allied movements include his own movements.

Player Movements

Leadboards

In this section the player can see the leaderboards.

Map

Documentation

Document View
Game Design Document View