top of page

Create Your First Project

Start adding your projects to your portfolio. Click on "Manage Projects" to get started

Eventful Horror Escape

Link

Utilized the Observer Design Pattern to create a Horror experience where various in-game events trigger spooky moments.

- Event System: Created an event system using the Observer Pattern, where different game events, like "Lights off by Ghost", "Rat Rush Event", "Skull Drop Event", act as observers. These events can then notify other game elements when they occur.
- Listener Components: Each game element that needs to respond to specific events, such as the player's sanity dropping or the appearance of supernatural phenomena, registers itself as a listener to the corresponding event.
- Decoupled Logic: By decoupling the event triggers from the logic that responds to them, makes game more modular and flexible. Now, one can easily add new events or modify existing ones without affecting the rest of the game's codebase.

Advantages of the Observer Design Pattern:
1. Flexibility: It allows for dynamic relationships between objects, making it easy to add or remove observers and change their behavior at runtime.
2. Modularity: By separating concerns and decoupling components, the Observer Pattern promotes modular design, making code easier to maintain and extend.
3. Scalability: As the game evolves, one can seamlessly integrate new features and events without disrupting existing functionality, thanks to the pattern's loosely coupled architecture.
4. Reusability: Components can be reused across different parts of the game, promoting code reuse and reducing development time.

bottom of page