A downloadable Code Protect Game

"Code Protect" is a Action game where the player faces waves of spawning enemies that try to destroy the player house. 

This project was developed during my time in Mastered and its focus was on learning how to use and implement Programming Patterns.

The Programming patterns that are used in this project are:

  • The Singleton Pattern that was used to make sure that there was only one instance of the Object Pool in the whole game;
  • The Object Pool Pattern used for pooling bullets and enemies;

Pool.cs

Pool.cs

  • The Flyweight Pattern that was used to create a scriptable object that holds the information on player and enemy stats;

Stats.cs

Stats.cs

  • The State Pattern used to create the AI behaviour present in the project;

StateMachine.cs

StateMachine.cs

AttackState.cs / PursueState.cs
AttackState.cs / PursueState.c

GitHub repository: https://github.com/IShkorubsky/Roguelite-Mastered-Project

Download

Download
CodeProtectBuild.zip 47 MB

Install instructions

To play the game you can download the Zip and extract it in a folder of your choice and run the .exe file to start the game.


Controls:

  • WASD to move;
  • Mouse left click to attack towards the pointed position;
  • Left shift to dash.