top of page
image_2023-10-27_164139229-transformed.png
image_2023-10-27_164139229-transformed.png

Visitor and Observer Pattern

 

Playable Demo is here.

​

Project scripts are here.

​

This project implements the visitor pattern by using scriptable objects to create powerups that manipulate the color of your character. There are a few unique interactions between this mechanic, for example, if you're blue and run into the yellow pickup you'll become green instead of yellow, and if you run into the white pickup, no matter what color you are, you'll be set to white. Later in the level, there are large walls that'll only let you pass if you match the wall's color.

​

This project also demonstrates the observer pattern in the form of a milestone system. This project uses it so that multiple scripts are able to react to a single instance of an event occurring, which additionally displays how the system can easily be expanded upon. ​

​

state-transformed.png
state-transformed.png

State Machine

 

The Playable Demo is here.

​

The Scripts can be seen here.

​

This project demonstrates a Finite State Machine in action, with each state existing in its own script and never overlapping. The project is a continuation from a reference, with more states added to it, and with the entire machine being displayed in the diagram below

​

​

image_2023-10-27_155813461-transformed.png
image_2023-10-27_165555838-transformed.png
state-transformed.png

SOLID Principles

 

Playable Demo is here.

 

Project scripts are here.

​

This project implements all of the SOLID principles using a highlight selection system. There are multiple different types of selections that can be cycled through by pressing "n". There's also a points counter, and if you click on one of the green objects with the yellow selector on or if you click on the red objects with the red selector on you'll get more points compared to if you use the selectors the other way around.

​

​

bottom of page