Base Enemy Entities - UQdeco2800/2022-studio-1 GitHub Wiki

Page Navigation

Jump to section

Enemy Design Guidelines

Design guidelines were implemented in an effort to create unified enemy characters across the two teams:

  • Canvas size of 64x64px
  • Dark colour outline
  • No blending (Only Pixel Shading)
  • Sea Monster colour palette
  • 3D Flat Front Facing (3/4 view)

Technical

Config

As the intention of enemies is to provide a source of income to the player, a new general config class had to be created called EnemyConfig. This class is meant to extend the BaseEntityConfig class by adding a gold variable that tracks how much gold is dropped by the enemy when it is killed. By default this is set to 0, but can be modified when implementing a new enemy within the NPCs.json file.

public class EnemyConfig extends BaseEntityConfig {
    public int gold = 0;
}