Base class for enemies and players. Includes logic for health, combat, movement patterns, and anything else needed to make an object that reacts to its environment.
- Health amount = 0.5
- Amount of hearts.
- Speed amount = 40
- How fast the entity moves.
- Damage amount = 0
- Contact damage of entity. Set to 0 for none.
- Walks in a random direction for ‘length’ seconds. Chooses a new direction when time is up. If in contact with a wall, the entity will start walking in the opposite direction without resetting the timer.