# Combat Combat is an important component of a 2D action survival game. The combat should also tie in some capacity to the main loop. ## The Preparation Before headed to combat, the player must consider the resources they have prior to an encounter. Ammunition as a scarce resource is an important factor to consider to make encounters more interesting, and give a good balance for melee weapons. On the one hand, guns have range and allow you to kill from a distance, but are noisy, and can attract attention, as well as having limited use by virtue of ammunition being limited. Melee weapons are closer, giving an inherent risk to making an approach, in exchange for being rather silent, and not costing any ammunition to use. ## Movement and Defense The movement itself when in combat should also feel worthwhile. Taking an example from Terraria, PVP and PVE are at its best when you have movement options to dodge the multitude of attacks that an enemy can dish out against you. This feeling should be present in any encounter. One can take a tanky approach by having shields and thicker armor, in exchange for poor movement speed, or opt for a glass cannon approach, with lighter equipment but lightning-fast movement speed. ## Weaponry Weaponry should be varied whenever possible. Melee weapons having the options of daggers, spears, swords and axes are all staples and beloved by all. Guns should also be equally as varied. Utilizing Wordtest as the example of the setting, energy weapons, gauss weapons, ballistics, rocket-propelled weaponry should all be options, at the cost of rarity and complexity.