Player Combat Guide - UQdeco2800/2021-studio-6 GitHub Wiki

Player Attack Options

You have the ability to do do both ranged and melee (short-range) attacks to defend yourself against the enemies.

Melee Attacks

Melee attacks are your main line of defense against enemies that you encounter. In order to damage the enemies, you must move within a close range of the target. Placing spacebar while facing the enemy will allow you to damage the enemy. Upon doing enough successful damage, the attacks will cause the enemy to disappear.

Ranged Attacks

Your ranged attack will allow you to attack your enemy from range. Upon pressing enter and facing the direction you wish to attack, a bullet will be fired. This bullet will do damage to the enemy if it impacts them. Similar to the melee attacks, sufficiently damaging the enemy will cause them to despawn.