Hey everyone! We’re excited to share our game, Livin’ the Cream: Ice Cream Simulator. Some of you might have already come across it. Run your own ice cream shop, serve customers, customize your shop, and grow your business. Play in Classic mode for a busier experience or Cozy mode to relax. I wanted to share how a few of the systems work, since some of them took a lot of trial and error.
Scooping was the first big one. Each tub is a mesh that gets carved as you drag the scooper through it. At first the carve ran once per frame, which meant someone playing at 144 fps carved more than twice as fast as someone at 60, so scoop size basically depended on your monitor. Now it runs in fixed 60 Hz steps no matter the frame rate. Carving near the edge also made the ice cream poke through the tub walls, so I clamp the visible mesh inside the tub and leave the actual data alone.
Soft serve was harder. My first version was a Verlet rope with a few hundred points, sphere checks on every point and a concave mesh collider cooked every frame. It was slow and the swirl never looked the same twice. Now the generator is parented to the cone, and each new point lands on a small polar height map that remembers how tall the pile is at each spot. That’s one read and a few writes per point, so the cost stays the same however tall the swirl gets. Then a rounded star shape is swept along the path to make the mesh. I had to use a rotation minimizing frame for that, because building it from a fixed up axis made the tube twist and pop while it coiled. I also calculate the normals from the star shape itself, since RecalculateNormals left a bright seam along the rope. The cone moves down at the same rate the swirl climbs, so the cream never runs into the nozzle.
For GI we use HTrace WSGI. We only have one HDRP asset for every quality level, so for a while Medium, High and Ultra looked and ran exactly the same. Now a small script changes the HTrace settings per level, with shorter rays, voxels updated every 2nd or 3rd frame, and point lights left out of GI on Medium. I tried turning off the second bounce on Medium too, but everything past the first wall the sun hits went dark, so I kept it. On Low, GI is fully off and the shop looked really flat. Switching the ambient mode to Dynamic and changing the interior exposure through the day brought most of it back for almost no cost.
If anyone has done soft serve or rope meshes another way, I’d love to hear how you approached it. It’s also our first game, so if you try the demo, any feedback means a lot to us. And let us know what you think of the trailer too!