-
Notifications
You must be signed in to change notification settings - Fork 2
PlateComponent
The PlateComponent
is game component designed to manage the behavior of plates within the game environment, inspired by mechanics from games like Overcooked. The PlateComponent
is interactable.
Key functionalities include:
• Spawning individual plates with id.
• Handling the state of the plate (clean, dirty).
Below is Rough UML Diagram of related components of the PlateComponent
for reference.
To spawn a PlateComponent, the ItemFactory method createPlate() can be used to create a plate with id of 0. In game, this is done as part of the Dishwasher Component functionality.
Entity Component System
is utilized for the code to be rendered on screen and also backend. The PlateComponent
extends ItemComponent
as it was added to an entity. They are able to be interacted with (pick up, put down on a bench, etc) as required by the Meal Creation cycle.
The design of the PlateComponent
is inspired by the game Overcooked, where they are interactable items.
As per picture below we can see plates are can be picked up and put on benches.
The PlateComponent follows the ECS pattern, where behavior is defined by components attached to entities. This decouples functionality and allows for flexible and reusable game mechanics.
The plate’s state transitions between DIRTY and CLEAN, each state triggering different interactions and constraints.
Inventory System
Scoring System
Food Recipes
Level System
Player Actions
Ordering System
Stations
Items
Map Design
Customers
Pause Menu
Upgrades
End of Day Display
Day Night Cycle
Moral System
Debug Terminal
Game Interactions Tutorial
Backstory Cutscenes
Entities and Components
Input Handling
Game Screens and Areas
Fire Extinguisher Handler Component
MainGameActions Create Docket Triggers
Main Game Order Button Display
BackstoryCutsceneDisplay Test Plan
Test Plan for MainGameOrderTicketDisplay
Test Plan for MainGameOrderBtnDisplay
Test Plan for DocketLineDisplay
Test plan for RandomComboService
Test plan for SpeedBoostUpgrade
Test plan for DancePartyUpgrade