Logo made by Rasmus Hartonen

Лаборатория (The Laboratory)

  • Genre: First-Person puzzle game
  • Timeframe: 4 weeks (20h/week)
  • Engine: In-house Engine (TEMP engine), Unity (as a level editor)

My Contributions

  • Raycasting
  • Trigger system
  • Interaction system

Interaction system

I implemented a system that would handle all the interactions in the game, it so happened that alot of other systems got very dependent on this system.

The interaction system checks whether the current InteractionComponent has been interacted with, and if it is currently active. This then sends an event to any system subscribed to it, which in this case is the trigger system.

Trigger system

The trigger system would check if the player is interacting with something, and subsequently take the mouse input and raycast into the world. If any object that could be interacted that had a trigger on it's entity it would trigger that trigger.



This article was updated on April 10, 2024