top of page

Colorful Infections

Colorful Infections is a 2D turn-based RPG where the objective is to try and escape the office building and avoid infected creatures. This was a team effort as part of a game jam submission.

Itch.io image.png

Player Movement

For the player movement, I added a fixed update for when the player wasn't in a battle with an enemy. I added a boolean for when the player has grabbed a key and is in combat. I even made an animator so that the player could move vertical and horizontal when they're not in combat.

Pickups

For the pickups, I added an on trigger enter function for when the player collides with either health or the key and a get key down function for the player to actually pickup the object whenever I press the E key! I also created a Boolean called pickup allowed so that when I run into the object it actually disappears after I press the E key. When I collect the heart, it will increase the maximum amount of health.

bottom of page