A downloadable game for Windows


Hell Fighter is a 3D Melee Arena Fighter were you must defend the fountain of youth using only you fists.

  • Created using unity3D
  • made for a school assignment by myself

Controls

move: wasd

aim: mouse

attack left: left mouse button

attack right: right mouse button

headbutt attack: hold both mouse buttons


Code Sample #1

Here you can find the code behind the charging skull's movement  state machine.

The state machine uses 2 states : move and charge. There is also an in between state during the anticipation of the charge where no states are called.

To change states the following methods can be called:

StartCharge()

Code Sample #2

Here you can find the code behind the health system.

Healthbar

In this game the player has 2 types of health: regular health and recoverable health. Recoverable health (represented with yellow int the health bar above) is the amount of health the player can gain by killing enemies.

The health system works with 2 scripts. First there is the basic health script:

Health script

The health script also contains 2 methods that can be called from other scripts to heal and damage the GameObject.

Heal method

Damage method

Then there is the recoverable health script that extends the base health script.

Recoverable health script

Download

Download
3D Melee Arena Fighter Build.rar 17 MB