<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SultanOfNiyyat</title>
    <description>The latest articles on DEV Community by SultanOfNiyyat (@sultanofniyyat_87d4bb0836).</description>
    <link>https://dev.to/sultanofniyyat_87d4bb0836</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4248576%2Fb71f78a0-a084-4cda-8f35-b439f36ed1aa.png</url>
      <title>DEV Community: SultanOfNiyyat</title>
      <link>https://dev.to/sultanofniyyat_87d4bb0836</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sultanofniyyat_87d4bb0836"/>
    <language>en</language>
    <item>
      <title>Building an eat-and-grow ball game in Unity: sizes, pouring piles and fair timers</title>
      <dc:creator>SultanOfNiyyat</dc:creator>
      <pubDate>Mon, 16 Nov 2026 22:26:12 +0000</pubDate>
      <link>https://dev.to/sultanofniyyat_87d4bb0836/building-an-eat-and-grow-ball-game-in-unity-sizes-pouring-piles-and-fair-timers-7d9</link>
      <guid>https://dev.to/sultanofniyyat_87d4bb0836/building-an-eat-and-grow-ball-game-in-unity-sizes-pouring-piles-and-fair-timers-7d9</guid>
      <description>&lt;p&gt;I'm a solo developer and I recently shipped &lt;strong&gt;Gobbly.io&lt;/strong&gt;, a casual game for iPhone and Android where you roll a hungry ball around a map, eat the items on a goal list before the timer runs out, and grow as you eat. It's built in Unity 2022.3. Here are a few design and technical decisions that made the biggest difference.&lt;/p&gt;

&lt;h2&gt;
  
  
  Size classes instead of physics checks
&lt;/h2&gt;

&lt;p&gt;Every item has a size class from 1 to 10: the smallest ball size that can eat it. The ball starts each level at Size 1, and each eaten item adds XP equal to its class. The rule is a plain integer compare (&lt;code&gt;item.class &amp;lt;= ball.size&lt;/code&gt;), which is cheap, predictable and easy to explain to players. Items that are too big simply act as walls the ball slides along.&lt;/p&gt;

&lt;p&gt;The ball radius grows by a fixed factor per size (0.45 m x 1.28^(size-1)), and the camera zooms out with it, so the ball looks equally fast at every size.&lt;/p&gt;

&lt;h2&gt;
  
  
  Piles that pour into the ball
&lt;/h2&gt;

&lt;p&gt;The most satisfying moment turned out to be tall stacks and heaps of food. Only the bottom piece of a column is edible, one piece every 45 ms, and the rest slides down into the ball. You just sit next to a pile and watch it pour in. That one feature did more for the feel than any particle effect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Levels from a seed, sized by food, not by time
&lt;/h2&gt;

&lt;p&gt;Levels are generated at runtime from the level number, so the same number always gives the same layout. Each level holds a set amount of food (measured in XP), the map grows until it holds it, and the timer is derived from that amount. That way no level is over in under a minute, difficulty grows steadily, and a bot can play hundreds of levels to check win rates after every change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cheap phones get cheap shadows
&lt;/h2&gt;

&lt;p&gt;Phones with 3 GB of memory or more get real shadows; smaller phones get soft round blob shadows. A release gate in the build pipeline blocks a store build if that rule is broken.&lt;/p&gt;

&lt;h2&gt;
  
  
  Offline first
&lt;/h2&gt;

&lt;p&gt;Everything gameplay-related runs on the device, so every level works in airplane mode. Only ads, purchases and cloud save need a connection.&lt;/p&gt;

&lt;p&gt;If you want to see how it plays, or read the player-facing FAQ, it's here: &lt;a href="https://sultanofniyyat.github.io/gobbly-io/" rel="noopener noreferrer"&gt;https://sultanofniyyat.github.io/gobbly-io/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about any of this in the comments.&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>unity3d</category>
      <category>indiegames</category>
    </item>
  </channel>
</rss>
