Shrimp Fried Rice

Prove cannibalism isn’t so bad after all by cooking your siblings to create fabulous delicacies! Break the limit and set high scores, and unlock new cosmetics in Shrimp Fried Rice!

Roles: Creative Director - Lead Programmer
Timeframe: Ongoing since August 2024 - Currently in Pre-Alpha
Team Size: 7 people
Scope: Mobile game with an infinite game mode, and cosmetic items
Repository: Github

Controlling the wok.

To be accessible to as many people as possible, we decided to employ two control schemes for mobile: Touch and Gyro.

To make the code easier to iterate on, I created two functions which “conditioned” the input data to be normal between Touch and Gyro, allowing me to analyze them both using the same functions.

This made it far easier to iterate on the Wok controls at a deeper level, as we could tweak in the Gyro and Touch sense, and tweak the analysis without them relying on each other.

Focus on using events in code.

A good portion of code employs the observer pattern, waiting for outward data to come from watched scripts.

A key one is our Fire System, which On Overlap sends out an event. Listening is our Heat Manager, the game’s status manager, and the Wok Texture Manager, which modulated the heat according the amount of heat incoming.

Another was our SFX Manager, which keyed into important game events to know when to play certain SFX.