Sort Marbles
Concept
Sort the contents from the Jar by transferring from one to another and fill the jar with the same content.
Game Checklist
- Customise Jar, Contents and Shelf.
- Input Controller
- Dynamic Layer assignment to control the drop of the contents while transferring.
- Jar and Jar Controller
Gameplay Implementation Brief
Customise Jar, Contents and Shelf.
Creating Scriptable Objects to hold the Data regarding which Jar, Contents or Shelf should be generated when the level is loaded.
Input Controller
Input System is used to send key events to the subscribers.
Dynamic Layer assignment to control the drop of the contents while transferring.
The Jar Prefab is setup with 4 layered box colliders to separate the contents within. When Pouring from one jar to another, A Wall(again a box collider) at the bottom of the jar is configured to only collide with the contents that are at the top to push them out of the Jar.
Jar and Jar Controller
Jar is responsible for holding the contents, Layer Assignment, settle the contents after the pouring is done, check if filled with same contents etc.
Jar Controller is responsible for handling the Jars picked to pour the contents, sending signals regarding pouring and tweening, Resetting the contents if the top of both jars are not similar, etc.