ENEMIES


Every platformer needs something for the player to shoot, jump or swipe at, and Paint Knight is no different. Enemy interaction, though simple, is important for not only providing challenge to the player, but also to showcasing the differences between the brushes the player can collect and use through exploring the castle rooms.

Paint Knight features two different enemy types that are similar, but provide different interactions for how to approach and what brushes to use. I would like to introduce the Pawn and Bishop!

The Pawn (left) and The Bishop (Right)

From a technical perspective, both enemies operate similarly to each other and actually share a few scripts for basic functions. Removing the graphics, both enemies are simply different sized box colliders with a point that shoots a raycast down and to the direction the enemy is facing to check if they are on the edge of a platform or touch a wall.

Starting with the Pawn, they are the run-of-the-mill grunt of our purple corruption army. They do not have any secondary ability and simply patrol the rooms of the castle. They fall rather quickly, only taking 1 damage to kill from both the Red and Yellow brushes, but they are abundant.

The Bishop, like the Pawns, patrol the rooms of the castle. Yet, upon getting within a few feet, the Bishop will throw up a bubble shield the player cannot enter. They not only force the player to time their attacks for when the shield drops, but be mindful of the other enemies that can still pass through it. The Bishop can take 2 damage before falling and the Blue brush allows the player to bypass the shield. 

The Bishop has an extra script that controls its shield along with a large circle trigger to activate it when the player enters. Upon the player entering, the script will play the shield activation animation, wait a few seconds and then drop it. This process will repeat when the player exits and then re-enters.


Previous
Previous

PLAYER

Next
Next

LEVELS