<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hamdani on Medium]]></title>
        <description><![CDATA[Stories by Hamdani on Medium]]></description>
        <link>https://medium.com/@noodle-eater?source=rss-c0f5ee5f3c7b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GHrcwKKR-WeuUpl4lws0zg.png</url>
            <title>Stories by Hamdani on Medium</title>
            <link>https://medium.com/@noodle-eater?source=rss-c0f5ee5f3c7b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 15:28:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@noodle-eater/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How Much Modularity Is Enough]]></title>
            <link>https://noodle-eater.medium.com/how-much-modularity-is-enough-e802a8e7f1b9?source=rss-c0f5ee5f3c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e802a8e7f1b9</guid>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Hamdani]]></dc:creator>
            <pubDate>Sat, 30 May 2026 12:04:28 GMT</pubDate>
            <atom:updated>2026-05-30T12:04:28.435Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5Qp2j7f0l9NrvutE" /><figcaption>Photo by <a href="https://unsplash.com/@sloppyperfectionist?utm_source=medium&amp;utm_medium=referral">Hans-Peter Gauster</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Sometimes I question myself: how far should I — or we — pursue code modularity?</p><p>The ideal answer is to make the entire codebase of a project modular. In reality, that can be difficult to achieve. In a company, we have different stakeholders with different needs and requests, and especially as deadlines approach, modularity is often the first thing abandoned as long as the product ships. On a personal project, you might not think much about modularity either — as long as it ships. But in commercial projects, you need to think about modularity, because it helps you maintain a large codebase across different people and teams and makes knowledge transfer easier.</p><p>By using modularity, you isolate the codebase into separate modules that interact with each other either directly via hard references or indirectly via base interfaces or delegates. Modularizing your code also lets you hide internal complexity and expose only what the user needs to know, while providing ways to extend the module’s capabilities through component-based design, class inheritance, or interface extension.</p><h3>Principles and Patterns</h3><p>To make your code modular, you can apply the <strong>SOLID</strong>, <strong>DRY</strong>, and <strong>KISS</strong> principles, as well as design patterns that help you organize and solve code problems. That said, simply knowing these principles won’t make you proficient in using them — you need hands-on experience and exposure to best practices to truly understand when and how to apply them.</p><p>When I first learned about SOLID, I ended up adding interfaces to almost all of my code, and my mentor laughed about it. It was quite the fun learning experience.</p><p>In my humble opinion, the most important principle of all is <strong>Single Responsibility</strong> — I believe the rest stem from it. With single responsibility, you can implement DRY and KISS simultaneously, and from there, apply other SOLID principles and appropriate design patterns naturally.</p><h4>Single Responsibility Principle</h4><p>A class or function should do one thing and do it well. This principle also makes unit testing much easier, since you can confidently verify that a function “does it well.”</p><h4>Open/Closed Principle</h4><p>Code should be open for extension but closed for modification. If your code already incorporates single responsibility, you can design functions or classes to be extendable. The challenge I personally run into is that we don’t always know in advance what needs to be extensible. We can predict, but we might miss something — so sometimes modification is unavoidable.</p><h4>Liskov Substitution Principle</h4><p>A child class should be able to replace its parent class without breaking the program. This also ties back to single responsibility. For example, you might have an Enemy base class with move() and attack() methods — but then a game designer requests a static turret enemy, leaving move() empty. Instead, you could separate concerns into an Enemy base class and an IMoveable interface.</p><h4>Interface Segregation Principle</h4><p>Don’t force code to depend on things it doesn’t use. When building a game, it’s tempting to create a broad ICharacter interface, but you&#39;ll likely end up with empty implementations since not all characters share the same behavior. A better approach is to split it into focused interfaces: IMoveable, IDamageable, IDateable, etc.</p><p>Some interfaces are obvious from the start — like ITickable or IStartable for systems outside the main game loop — but for gameplay code, you might not realize you need this principle until the codebase has grown.</p><h4>Dependency Inversion Principle</h4><p>Depend on abstractions (interfaces), not concrete implementations. For example, in a cross-platform game with a save system — Firebase on mobile, Steam Cloud on PC, and a proprietary API on console — you’ll still end up with some platform-specific branching, but you can define an ISaveData interface and let each platform implement it. Gameplay code then only needs to call save() or load() without knowing the underlying implementation.</p><p><em>As a side note: while writing this, I re-read about SOLID and realized I still have more to learn and much room to improve my understanding.</em></p><h3>When to Modularize</h3><p>In my opinion, code that must be strictly modularized is the <strong>core</strong> of a project — the foundational features that will always exist and can be reused across different projects. Features that are still in active development or prototyping, however, can afford looser modularity. When a feature is rapidly changing and iterating, adding layers of abstraction can slow things down.</p><p>As a coder’s experience grows, even loosely written code becomes more manageable. Once a feature is considered complete, you can revisit and modularize it. There may be updates in the future, but we can’t guard against every unknown change — it’s better to update the module again when needed than to over-engineer for uncertainty.</p><h3>AI as a Coding Assistant</h3><p>With the rise of AI coding tools, this workflow becomes even more practical. You can quickly prototype features with AI, and once a feature is accepted, ask AI to help modularize it. You can also ask AI to follow your project’s coding standards during prototyping so it doesn’t stray too far, helping you catch bugs early — whether caused by the AI or yourself.</p><p>AI is also very helpful during the modularization phase, offering suggestions and insights you might not have considered. However, you need to review its output critically rather than accepting it blindly, since the suggested solution may not suit your project, may be over-engineered, or may be unnecessarily complex. Keep the AI in check.</p><h3>A Real-World Example</h3><p>Take <em>Monster Hunter</em> as an example. The core modules established early on — inventory, save system, weapon system, damage system — are relied upon by every monster and hunter, especially during combat. The concrete behavior of weapons may change (as with some weapon movesets in <em>Monster Hunter World</em> and <em>Wilds</em>), but the underlying module that handles it should remain relatively stable.</p><p>Monster AI behavior, on the other hand, is more iterative — programmers try different approaches, designers create and refine monster behaviors through feedback cycles, before eventually landing on something solid enough to be modularized and reused for other monsters. This is purely my assumption based on observing the series and my own experience.</p><h3>Closing Thoughts</h3><p>Even with the rise of AI, we still have a duty to keep learning — so we can use AI to assist our work rather than blindly trust it.</p><p>Finally, with all this modularity, you end up with a bunch of loosely coupled modules — and some that are slightly more coupled. There’s usually still one place in the project where things come together: your main function, player character, player controller, game state, or some central manager. That’s the place where everything kicks off and orchestrates the whole project. That central hub is inevitable — and that’s okay.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e802a8e7f1b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coding Quest — Automating Spellchecking for Unreal Engine 5 Localization]]></title>
            <link>https://noodle-eater.medium.com/coding-quest-automating-spellchecking-for-unreal-engine-5-localization-bbcd5bc07c66?source=rss-c0f5ee5f3c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbcd5bc07c66</guid>
            <category><![CDATA[unreal-engine-5]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <dc:creator><![CDATA[Hamdani]]></dc:creator>
            <pubDate>Wed, 01 Jan 2025 11:40:25 GMT</pubDate>
            <atom:updated>2025-01-01T12:05:00.379Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Coding Quest — Automating Spellchecking for Unreal Engine 5 Localization</strong></h3><p>It’s been a while since I last wrote on Medium, and I’m eager to start sharing again — whether it’s about something I’m learning or experiments I want to try. More than that, I’ve been thinking about doing something like a coding adventure, inspired by <a href="https://www.youtube.com/@SebastianLague">Sebastian Lague</a> and his awesome Y<a href="https://www.youtube.com/@SebastianLague">ouTube channel</a>. I find his projects cool and motivating, and I’d love to explore similar paths. In this article, I’ll walk you through a small experiment I did: automating spellchecking in Unreal Engine 5 localization files using Python.</p><h3><strong>A. Introduction</strong></h3><p>In game development, text plays a crucial role — whether it’s in menus, dialogue, or tutorials. As the game grows, so does the amount of text, increasing the chances of typos. While hiring professionals for localization and proofreading is ideal, it may not be feasible for smaller studios. Fortunately, we can automate typo checks to save costs without compromising quality.</p><p>Unreal Engine’s localization system allows easy export of text files for external processing. By using Python, we can automate spellchecking on these files. Python is a popular tool for automation and supports Unreal scripting, making it ideal for this task. Additionally, Python’s rich set of libraries for natural language processing enhances spellchecking in the localization pipeline.</p><p>This guide focuses on <strong>English (en)</strong> text, but the process can be adapted for other languages.</p><figure><img alt="Unreal Engine Localization Dashboard" src="https://cdn-images-1.medium.com/max/1024/1*a6i5FbiXpnj29bIqC2uvPQ.png" /><figcaption>Unreal Engine 5 Localization Dashboard</figcaption></figure><h3>B. Implementation</h3><h4><strong>a. Setting Up Python for Unreal Engine 5</strong></h4><p>Before diving into the spellchecking script, we first need to set up Python. I use <strong>PyCharm </strong>and <strong>Python 3.11.8</strong>, and rely on Python’s virtual environment (venv) to manage project dependencies and keep the plugin libraries separate.</p><p>To set up Python in Unreal Engine, follow the <a href="https://dev.epicgames.com/documentation/en-us/unreal-engine/scripting-the-unreal-editor-using-python">Scripting the Unreal Editor Using Python</a> guide. This will help configure Unreal to recognize your Python installation.</p><p>After setting up, export your localization files from Unreal Engine in the <strong>.po</strong> format. This format is commonly used in software localization and will be the target file for spellchecking. Once exported, you can access and manipulate the <strong>.po</strong> files using Python.</p><h4><strong>b. Installing Required Libraries</strong></h4><p>To perform spellchecking and handle the .po files, we’ll need two Python libraries:</p><ul><li><strong>pyspellchecker</strong>: A lightweight library for spell checking.</li><li><strong>polib: </strong>A library specifically designed for handling `.po` and `.mo` files used in software localization.</li></ul><p>You can install these libraries in two ways:</p><p><strong>Using pip in terminal</strong></p><pre>pip install pyspellchecker polib</pre><p><strong>Using PyCharm</strong></p><ul><li>Open your project in PyCharm.</li><li>Go to <strong>File &gt; Settings &gt; Project &gt; Python Interpreter</strong>.</li><li>Click the <strong>+</strong> icon to add a new library.</li><li>Search for <strong>pyspellchecker</strong> and <strong>polib</strong>, and click <strong>Install</strong> for each.</li></ul><h4><strong>c. Challenges Encountered</strong></h4><p>While working on the spellchecking script, I encountered a few issues:</p><ul><li><strong>Unreal’s Isolated Python Environment</strong>: By default, Unreal Engine has an isolated Python environment, meaning it can’t access libraries or virtual environments outside the engine itself.</li><li><strong>sys.path.append Attempt</strong>: Initially, I tried using sys.path.append to add my virtual environment to Unreal’s Python library path, but this approach stopped working for reasons I couldn’t pinpoint.</li><li><strong>Solution</strong>: I eventually added my Python environment directly through Unreal Engine’s settings. Go to <strong>Project Settings &gt; Plugins &gt; Python</strong>, and under the Python section, add the environment you want to use. This allowed Unreal to access the necessary libraries and plugins.</li></ul><figure><img alt="Unreal Engine 5 — Python Additional Path" src="https://cdn-images-1.medium.com/max/1024/1*TwJzmqLs8fAOzP31Av5ruw.png" /><figcaption>Unreal Engine 5 — Python Additional Path</figcaption></figure><h4>d. Running the Script</h4><p>You can run the script directly from PyCharm or within Unreal Engine by navigating to <strong>Tools &gt; Execute</strong> Python Script.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2a17cf72913f34a0dde91fecd2850004/href">https://medium.com/media/2a17cf72913f34a0dde91fecd2850004/href</a></iframe><p>In the Python script, we only process the <strong>msgstr</strong> fields, as these contain translatable text that we can modify. The <strong>msgid </strong>fields, on the other hand, are used internally to link the source content with its corresponding translation and should remain unchanged. Below is the output result of the script, showing how the spellchecker identifies and suggests corrections for misspelled translation text.</p><pre>Misspelled words in entry &#39;Your majesty&#39;s trust in you continues to grow.&#39;: {&#39;grow.&#39;}<br>Suggestions for &#39;grow.&#39;: grows, grown, grow, growl<br>Misspelled words in entry &#39;Helllo World!&#39;: {&#39;helllo&#39;, &#39;world!&#39;}<br>Suggestions for &#39;helllo&#39;: hello<br>Suggestions for &#39;world!&#39;: world, worlds<br>Misspelled words in entry &#39;Hello World!&#39;: {&#39;world!&#39;}<br>Suggestions for &#39;world!&#39;: world, worlds<br>Misspelled words in entry &#39;Hello Wrold Again!&#39;: {&#39;wrold&#39;, &#39;again!&#39;}<br>Suggestions for &#39;wrold&#39;: world, wold<br>Suggestions for &#39;again!&#39;: again<br>Corrected translations saved to D:/UE/UE_Tutorial/Content/Localization/Game/en/Game_Correct.po</pre><p>The <strong>pyspellchecker</strong> library identifies misspelled words and provides a list of suggestions ranked by their similarity to the original word. In this script, we either select the first suggestion, which is often the most likely correction or implement logic to choose the suggestion with the highest similarity. This ensures that errors are corrected efficiently while maintaining accuracy in the localized text.</p><h3>C. Future Expansion</h3><p>To enhance the script, we can integrate it into the Unreal Engine build pipeline, automating spellchecking with each build. Alternatively, we could add a GUI to present spellcheck suggestions, allowing users to select corrections or manually input custom words, offering more flexibility for edge cases or game-specific terms.</p><p>Thank you for reading till the end! I hope this guide was helpful or sparked some new ideas for your own projects. Have a great day!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbcd5bc07c66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unity UI Binding Tools]]></title>
            <link>https://noodle-eater.medium.com/unity-ui-binding-tools-fe6c3c945114?source=rss-c0f5ee5f3c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe6c3c945114</guid>
            <category><![CDATA[gamedev]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity-game-development]]></category>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[unity]]></category>
            <dc:creator><![CDATA[Hamdani]]></dc:creator>
            <pubDate>Tue, 16 Aug 2022 14:17:47 GMT</pubDate>
            <atom:updated>2022-08-16T14:20:34.276Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been using unreal for sometimes and it’s a pretty amazing engine. I found that they have UPROPERTY(meta=(BindWidget))to binding UI variable declaration in the C++ code and the Widget.</p><pre>UPROPERTY(meta=(BindWidget))<br>UTextBlock* TextBlock_PlayerName;</pre><p>Unreal will bind that variable into the UI component that has the same type and name. And lately, I also see that Godot has its own binding, and they improve it in Godot 3.5. But, I do not find Unity built-in UI binding. I did not check the UI Toolkit yet or any other frameworks. So I decide to make my own binding inspired by Unreal.</p><h3>Requirement</h3><p>This UI binding must fulfil these criteria,</p><ul><li>Bind UI declaration in code with the UI component in the scene.</li><li>Warn the User when the binding lost its reference.</li></ul><h3>Implementation</h3><p><strong>How to bind?</strong></p><p>C# attribute is used for binding the variable, this attribute act as a mark and later the variable with this attribute or mark can be retrieved using reflection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*5leB4lR-H4cLOFxu6_y6TQ.png" /><figcaption>UI Example</figcaption></figure><p><strong>How to assign the references?</strong></p><p>The UI class need to inherit from CanvaUI lass, a base class of each UI in this framework. We need to retrieve this class instance to assign the reference to the variable of this class. Using attributes for marking this class is possible, but I want to add basic functionality to the UI, so I need to use class.</p><pre>public class TestPanelUI : CanvasUI<br>{<br>    [BindUI] private Button ChangeTextOne;<br>    [BindUI] private Button ChangeTextTwo;<br>    [BindUI] private TMP_Text ChangeTextTarget;<br>}</pre><p><strong>How to warn broken references?</strong></p><p>We want to warn the user that the reference may be broken when especially after they modify the scene, and after compiling. They may accidentally rename the GameObject or change the variable name.</p><p>We will listen EditorApplication.hierarchyChanged for scene modification and execute the code to validate the binding reference.</p><p>And we also use DidReloadScripts attributes, this will be triggered after unity recompiles its assemblies.</p><pre>public static class UIBindingValidator<br>{<br>    static UIBindingValidator()<br>    {<br>        EditorApplication.hierarchyChanged += ValidateUIBinding;<br>    }<br>    <br>    [DidReloadScripts]<br>    public static void ValidateUIBinding()<br>    {<br>        // Validation code here<br>    }<br>}</pre><p><strong>Why use reflection?</strong></p><p>Normally we bind the reference in the unity editor by drag-dropping the game object into the field. This may be fine in a small scope project but in a bigger project, this may take a longer time. So, we want to do it automatically for a different types of components. We need a reflection to help us find which variable and game object we want and bind them.</p><p><strong>Is it possible not to use reflection?</strong></p><p>I believe it’s possible but with many limitations. It will require a lot more setup, such as</p><ul><li>Declare using base class.</li><li>Cast the reference.</li><li>Difficult to check using field name.</li><li>Need to wrap the variable if needed.</li></ul><p>That’s the limitation I can think of. Reflection also does the same with the check but since we can use and check the type of field in runtime, we can find the right type and the right name for the reference.</p><h3><strong>Setup</strong></h3><p>Follow the setup below to use the UI Binding in your games,</p><ul><li>Add the GameCanvasSystem into a GameObject.</li><li>Create the UI class, and inherit it from CanvasUI .</li></ul><pre>public class TestPanelUI : CanvasUI<br>{<br>    <br>}</pre><ul><li>Add the field you need and make sure its name is the same as the one in the scene.</li><li>Add BindUI attribute into the field.</li></ul><pre>public class TestPanelUI : CanvasUI<br>{<br>    [BindUI] private Button ChangeTextOne;<br>    [BindUI] private Button ChangeTextTwo;<br>    [BindUI] private TMP_Text ChangeTextTarget;<br>}</pre><ul><li>Press play.</li></ul><p>You can find the project <a href="https://github.com/noodle-eater/Toolset/tree/master/Assets/Canvas">here</a>.</p><p>Originally published <a href="https://noodle-eater.github.io/posts/ui-binding-unity/">here</a>.</p><p>Thank you for reading 😃 I hope you enjoy it.</p><p>Have a nice day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe6c3c945114" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enum Generator in Unity]]></title>
            <link>https://noodle-eater.medium.com/enum-generator-in-unity-a6765e929e36?source=rss-c0f5ee5f3c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6765e929e36</guid>
            <category><![CDATA[unity2d]]></category>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity-game-development]]></category>
            <category><![CDATA[unity]]></category>
            <dc:creator><![CDATA[Hamdani]]></dc:creator>
            <pubDate>Sat, 13 Aug 2022 02:41:35 GMT</pubDate>
            <atom:updated>2022-08-16T14:25:14.150Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you ever think to use enum for making ID because it can be access the from code?</p><p>For long list of item id this is not really a good solution, but for short id this should be fine.</p><h3>ScriptableObject</h3><p>ScriptableObject is used for the user interface of this generator because the user most likely wanna have more than one enum generator they can edit. In this ScriptableObject, we need to define directory, namespace, enum name and values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*uE0SrgEF9CYfCbChM1a2ng.png" /><figcaption>ScriptableObject for Enum Generator</figcaption></figure><h3>Generator</h3><p>There are two ways to generate this enum,</p><p>1. Create a template file.</p><p>2. Using C# CodeDom.</p><p>Using CodeDom the generated code will be automatically indented and there should be no error in the indentation or spacing.</p><p>This code generator is also can be used for unit testing, but it’s on another level.</p><p>For this simple generator, we just need to create,</p><ul><li>CodeNamespace, represent a namespace declaration.</li><li>CodeTypeDeclaration, this is where we can declare enum, class, interface and struct.</li><li>CodeCompileUnit, a container for the CodeDom program graph or the above variable.</li></ul><pre>private readonly CodeNamespace _codeNamespace = new();<br>private readonly CodeTypeDeclaration _codeTypeDeclaration = new();<br>private CodeCompileUnit _codeCompileUnit = new();</pre><pre>public EnumGenerationSystem()<br>{<br>     _codeTypeDeclaration.IsEnum = true;<br>     _codeNamespace.Types.Add(_codeTypeDeclaration);<br>     _codeCompileUnit.Namespaces.Add(_codeNamespace);<br>}</pre><p>Use CodeMemberField to add the enum values. CodeMemberField is used to declare a field or type.</p><pre>foreach (var enumValue in Values)<br>{<br>     CodeMemberField field = new CodeMemberField(EnumName, enumValue);<br>     _codeTypeDeclaration.Members.Add(field);<br>}</pre><p>And finally, write the code into a C# file.</p><pre>CodeDomProvider provider = CodeDomProvider.CreateProvider(&quot;CSharp&quot;);</pre><pre>CodeGeneratorOptions options = new CodeGeneratorOptions<br>{<br>     BracingStyle = &quot;C&quot;<br>};</pre><pre>using (StreamWriter sourceWriter = new StreamWriter(filePath))<br>{<br>     provider.GenerateCodeFromCompileUnit(_codeCompileUnit, sourceWriter, options);<br>     AssetDatabase.Refresh();<br>}</pre><h3>Trigger</h3><p>For the trigger to generate the enum, we use ContextMenu, not pretty convenient compared to a button, but at least we can use it. Later we can update it to use a button or even a custom editor window, but I stick to ScriptableObject because this is the faster way to get the generator working.</p><pre>public void GenerateEnum()<br>{<br>    EnumGenerationSystem enumGenerationSystem = new EnumGenerationSystem<br>    {<br>        Namespace = nameSpace,<br>        EnumName = enumName,<br>        FileDirectory = Application.dataPath + &quot;/&quot; + filePath,<br>        Values = values<br>    };<br>    <br>    enumGenerationSystem.GenerateEnum();<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*ZgATrG9zYsUxbMSWqJ-7ig.png" /><figcaption>Enum Generate Menu</figcaption></figure><h3>Result</h3><p>Below is the generated enum from the ScriptableObject above.</p><pre>//------------------------------------------------------------------------------<br>// &lt;auto-generated&gt;<br>//     This code was generated by a tool.<br>//     Runtime Version:4.0.30319.42000<br>//<br>//     Changes to this file may cause incorrect behavior and will be lost if<br>//     the code is regenerated.<br>// &lt;/auto-generated&gt;<br>//------------------------------------------------------------------------------<br>namespace NoodleEater.Toolset.EnumGenerator<br>{<br>    <br>    <br>    public enum ItemTier<br>    {<br>        <br>        Tier1,<br>        <br>        Tier2,<br>        <br>        Tier3,<br>        <br>        Tier4,<br>        <br>        Tier5,<br>    }<br>}</pre><p>You can see the source code <a href="https://github.com/noodle-eater/Toolset/tree/master/Assets/EnumGenerator">here</a></p><p>Thank you 😊 I hope you enjoy it.</p><p>Don’t forget to check my <a href="https://noodle-eater.github.io/">blog</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6765e929e36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GameObject Name Redirector in Unity]]></title>
            <link>https://noodle-eater.medium.com/gameobject-name-redirector-in-unity-ea8c65833c68?source=rss-c0f5ee5f3c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea8c65833c68</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity]]></category>
            <dc:creator><![CDATA[Hamdani]]></dc:creator>
            <pubDate>Wed, 11 May 2022 15:45:01 GMT</pubDate>
            <atom:updated>2022-08-13T02:13:12.493Z</atom:updated>
            <content:encoded><![CDATA[<p>Intro</p><p>A few days ago my friend stumbled across a problem because of the usage of GameObject.Find, it can’t find the game object because the game object was renamed. So, I thought we can have something like Unreal Engine redirector to solve this problem.</p><p>In Unity, There is FormerlySerializedAsAttribute, which is used to rename a field without losing its serialized value.</p><h3>Structure</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*JiiSvX5mJREgnvssEZUA4g.png" /><figcaption>Redirector Structure</figcaption></figure><h3>Data</h3><ul><li><strong>GameObjects</strong>, this data comes from Unity Engine itself, to retrieve this I use</li></ul><pre>Resources.FindObjectsOfTypeAll(typeof(GameObject));</pre><ul><li><strong>ScriptableObject</strong>, is used to store all the game objects. I create a custom class to hold the required data.</li></ul><pre>public class NameConfig<br>{<br>    public int hashCode;<br>    public string oldName;<br>    public string newName;<br>}</pre><h3>System</h3><p>Since I can not find any event for rename I use EditorApplication.hierarchyChanged, below is the step I do to check rename in the game object.</p><ul><li>Listen to EditorApplication.hierarchyChanged.</li><li>When there is any change in hierarchy,</li><li>Find the data that match the hash code of the current game object.</li><li>If any change then stores the new name otherwise clear it.</li></ul><p>I also use a MenuItem to create a menu to register all the game objects manually. It will directly store the data in the ScriptableObject, I use it because working with ScriptableObject is easy and does not require any parsing.</p><h3>API</h3><p>I want to override GameObject.Find but it seems I can’t do that, so I create an extension method so it gonna looks more natural,</p><pre>gameObject.FindByName(&quot;game object name&quot;);</pre><h3>Conclusion</h3><p>The GameObject.Find can be solved using a redirector, but it is gonna need more improvement in the future. This experiment&#39;s purpose is to be a proof of concept. But it gonna need more effort to make a better and more advanced version of the redirector.</p><h3>Improvement</h3><ul><li>Make sure if the hash code is persistent, I am not testing this yet.</li><li>Change ScriptableObject to store data into text-based, e.g json, csv.</li><li>Asset redirector, this gonna need to connect between the redirector data and the engine itself, besides the redirector needs to be compatible with the engine too.</li><li>Script Redirector, use hash code to track any changes, basically similar to this experiment.</li></ul><p>You can take a look at the code <a href="https://github.com/AmdHamdani/Redirector">here</a>.</p><p>Thank you for reading 😃 I hope you enjoy it.</p><p>Do not forget to check <a href="https://noodle-eater.github.io/">my blog too</a>.</p><p>Have a nice day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea8c65833c68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart Framework for Achieving Your Goal]]></title>
            <link>https://noodle-eater.medium.com/smart-framework-for-achieving-your-goal-f5d2c8ac1b67?source=rss-c0f5ee5f3c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5d2c8ac1b67</guid>
            <category><![CDATA[planning]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Hamdani]]></dc:creator>
            <pubDate>Wed, 21 Apr 2021 15:36:46 GMT</pubDate>
            <atom:updated>2021-04-22T02:53:57.114Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NszrEiC5Uc781ri53X53Og.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@esteejanssens?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Estée Janssens</a> on <a href="https://unsplash.com/s/photos/goal?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I believe all of us have a goal to achieve in life. but sometimes it just feels hard to achieve and we do not know where we should start.</p><p>I want to develop and publish my own games but as time pass, I feel pretty lazy, tired especially after work. I usually work on my games in my free times.</p><p>Last year, my senior told me about Smart Framework, I read about it but I failed to really understand it. Because the article I read that time is not pretty clear and to the point for me. But today in the meeting we talk about Smart Framework and I got more understanding of that framework.</p><p>Smart stands for <strong>S</strong>pecific, <strong>M</strong>easureable, <strong>A</strong>ccountable, <strong>R</strong>ealistic, <strong>T</strong>ime-bound.</p><h3>Specific</h3><blockquote>The key here is to define the What (Output, Outcome, Expected Result) and How to achieve it.</blockquote><p>When developed an educational game for an educational game portal, the output I expected from the game was playable and ready to be submitted into the portal to be reviewed.</p><p>How I can achieve this? I will work on the game programming and the game design and art I will ask my friend to work on it. And for the sounds, we will search free to use for commercial audio.</p><h3>Measurable</h3><blockquote>The key here is defining how to measure progress, the definition of done and acceptance criteria.</blockquote><p>The definition of done from my game is when I have a playable game so I can submit my game.</p><p>Since I made this game for an educational portal, the acceptance criteria will be when my game is accepted and it performs well in that portal and generate a good amount of revenue.</p><p>And I separate the game into a smaller milestone, prototype, MVP, test, release to help me measure the progress.</p><h3>Accountable</h3><blockquote>The key here is to define to whom you can delegate the goal.</blockquote><p>You can delegate it not only to a person but to third-party services or other things too that can help you achieve your goal.</p><p>e.g when you need analytics in your game, you can use firebase analytics. Or you need history references for your history games, you can buy a history book or ask your friends that love history.</p><p>In my game, I responsible for game programming.</p><p>Game design and art will be my friends.</p><p>The game audio will be free for commercial use audio.</p><h3>Realistic</h3><blockquote>The key here is making your goal align with your time and resources.</blockquote><p>You should understand, how much time and resources do you have.</p><p>When I worked on my educational game, my resources are 2 people with a time of 3 months. I worked on the programming while my friends in art and design. Since we only have 3 months to finish the game and I only work on it in my free time, we make the game scope smaller and pick the easiest mechanics we can implement.</p><p>The end product is considered mini-games since there is not much gameplay there. If we want to add more content or make a bigger game we will need more time or more people to work on it.</p><p>When you have a friend that working full time on his casual game and takes 3 month to finish it. You need to allocate more time when you work on a similar casual game but in your free time. A similar game scope can take different times to achieve depending on resources and time.</p><h3>Time-Bound</h3><blockquote>The key here is set the deadline for you goal.</blockquote><p>You should give a deadline to your goal, to keep you stay motivated and you can understand if this goal is possible or not with current time-bound. So you can adjust your resources, time and the goal itself.</p><p>In my games, we use the deadline from the game portal that is 3 months to work on the game, make the scope small enough so you can finish it on time.</p><p>Thank you for reading this far, you are awesome.</p><p>I hope it will helpful for you.</p><p>Have a nice day :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5d2c8ac1b67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Need Localization, but I’m Lazy]]></title>
            <link>https://noodle-eater.medium.com/i-need-localization-but-im-lazy-98c10b12d092?source=rss-c0f5ee5f3c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/98c10b12d092</guid>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[software-design]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Hamdani]]></dc:creator>
            <pubDate>Tue, 23 Mar 2021 15:09:23 GMT</pubDate>
            <atom:updated>2021-10-29T03:53:09.161Z</atom:updated>
            <content:encoded><![CDATA[<h3>Develop Automatic Localization System for Unity Game</h3><p>Previously I made a game using Unity3D with my friends where we need to handle localization sent by the server. while my friends focus on working with the game design, I deal with the localization. I show up with some ideas but I found all of them is not suitable, because the game has many texts inside to be found one by one. We need to store the text into a JSON file, we can write it again one by one into the JSON file, but it will take a while.</p><p>In general, I came up with two approaches.</p><h3><strong>Enum Based Localization</strong></h3><p>Because I did not have much time to make fancy tools for the localization, I decide to create a ScriptableObject to hold the localization data when the game is in the prototype phase. I use the dummy quest text I use for testing.</p><p>I assign the text one by one and add a key for the JSON, then export it into a JSON file. Besides export into JSON files, I also generate enum files using <a href="https://docs.microsoft.com/en-us/dotnet/framework/reflection-and-codedom/using-the-codedom">C# CodeDom</a>. I choose to use enum because using string to get a value from the dictionary is prone to typo and will cause an error.</p><p>But as time pass and the game get more content, I figure out that this kind of system is not good, because we have many texts and the enum will get bigger too. And also because the texts are scattered in ScriptableObject, Scripts, GameObject.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*RrnDtGrN7IK0yiv2Q04qEA.png" /><figcaption>Enum Based Localization</figcaption></figure><p>I evaluated again my localization system design and found that this system design diagram is complicated. I thought of other approach and each time I come with an approach, I create another diagram to figure it how the system will look like, how they will interact with each other, how complex the system, and is it meet our need or not.</p><p><strong>Pros</strong></p><ul><li>Accessing the localization will be easier when the text amount is small.</li><li>You can specify the key yourself.</li><li>There should be no repetitive text in your localization.</li><li>You have more control over which text you want to include in your localization.</li></ul><p><strong>Cons</strong></p><ul><li>The system design is pretty complex (I believe it can be made simpler).</li><li>You need to specify set up more keys when game text grows.</li><li>The enum will get bigger and hard to navigate when you do not know what you want to use.</li><li>You need to add a localization component script yourself.</li></ul><h3>HashCode Based Localization</h3><p>Our time got more strict, We do not have much more time to find, drag and drop all the localization. I decide to use the Hash Code provided in Unity API. The hash code of the text will be taken as the key in JSON. The game itself changes from using UI Text into Text Mesh Pro because we need Text Mesh Pro features. Before diving into code, I made a diagram for the system that looks a lot simpler than the previous one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*mjIpZPPD6puGJrotDDsK2g.png" /><figcaption>Hash Code Based Localization Exporter</figcaption></figure><p>I collected all the Text Mesh Pro components in the scene using Resources.FindObjectsOfTypeAlland write it into a JSON file, I do a similar thing for the scriptable object too, but I just drag and drop the ScriptableObject into the list in the editor and write it into JSON.</p><p>The localization files consist of a hash code of the text for its key and the text itself is the value. The game will get the localization JSON from the server. I attach the Localization Component script into each GameObject that has Text Mesh Pro. It will directly replace the Text Mesh Pro string text with the localized text using the hash code from the text in the UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*UPEzhyg5teNMSu_jkEoXWw.png" /><figcaption>Instance ID Based Localization</figcaption></figure><p><strong>Pros</strong></p><ul><li>Fast, I do not need to set up the localization key and value, the system will automatically find it and write it into JSON.</li><li>The localization component script is automatically attached by the system to each game object that has Text Mesh Pro.</li></ul><p><strong>Cons</strong></p><ul><li>The key is not readable because it uses Hash Code.</li><li>There will be similar localization that you can’t delete because it belongs to a different Instance ID.</li></ul><h3>Why not Use Existing Tools?</h3><p>To be honest, I never search in the unity asset store for localization but I just knew about <a href="https://assetstore.unity.com/packages/tools/localization/i2-localization-14884">I2 Localization</a> from my friends. It looks like a pretty interesting and awesome localization tool, I also knew that unity is developing its <a href="https://docs.unity3d.com/Packages/com.unity.localization@0.5/manual/QuickStartGuide.html">localization system</a>.</p><p>I did not use it because I was afraid it does not meet our needs and we need time to learn it or make it meet our needs if it’s not. And when I make my own localization system I design it exactly for my games, not for general usage.</p><p>But after I take a look again at the diagram, I still can use this kind of system in my future game, after some polishing and optimization. This also helps me gain more experience in designing a modular system.</p><p>Thank you for reading my writing, I hope this is helpful.</p><p>Have a nice day :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98c10b12d092" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Post Mortem: Bit Shelter]]></title>
            <link>https://noodle-eater.medium.com/post-mortem-bit-shelter-2ae90c37ee5e?source=rss-c0f5ee5f3c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ae90c37ee5e</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[games]]></category>
            <category><![CDATA[postmortem]]></category>
            <category><![CDATA[gamedev]]></category>
            <category><![CDATA[game-design]]></category>
            <dc:creator><![CDATA[Hamdani]]></dc:creator>
            <pubDate>Fri, 10 Jul 2020 00:51:32 GMT</pubDate>
            <atom:updated>2020-07-10T15:50:21.598Z</atom:updated>
            <content:encoded><![CDATA[<h3>Post Mortem: A Bit Shelter</h3><p>It has been a while since I did not make any games and it pretty gimme haunted feeling because I acknowledge my self as a game programmer but not develop any game for a while. On May I tried to make a game but it turned out that I make many mistakes in that game so it did not go well and I abandon the project because it was too complicated for me and I not a fan or even play any zen game.</p><p>It was already June I decided to make another game that fits with my own skill and can be finished in a month. I come up with some ideas but most of them have a small-medium scale and I do not find what’s good with that idea. And I decide to take a look at the weekly game jam theme that is “Shelter”. I tried to think about shelter and find out what is that mean in google translate, is that word has other meaning. And come up with an idea about shelter for number, Where I want the player to input the correct number based on the rule on that level. At last, the game is changed it turned out to be a puzzle game about the logic gate. Pretty simple and luckily I managed to finish it, although it’s not pretty polished.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*P7wU5F0d91b0Om5paQ9smQ.png" /><figcaption>Bit Shelter Screenshot</figcaption></figure><h3>What went right?</h3><ul><li>I found that has a limitation (e.g theme) will help you find a good game idea.</li><li>I added “Work on my project at least an hour” to my habit tracker and it reminds me each day so I can spare my time.</li><li>I break down my game task into a smaller chunk and added it into sprint table in notion. So I can now what I needed to do today, how many tasks left and how many tasks I had done.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1t90Jiw5k-BU04shEvwq-A.jpeg" /><figcaption>My Sprint Project Boards</figcaption></figure><ul><li>I finished the game, this pretty gives me more confidence because I finish a game after a few times failed to finish it. So it relief my burden because of not finishing my previous game.</li><li>Cut unnecessary feature from the game.</li><li>Controlled my sense to develop tools when making the game.</li><li>Used Tween, I never use tween before. But In this game, I able to learn a bit about using Tween.</li></ul><h3>What went wrong</h3><ul><li>Got distracted by the games I bought recently. I use my habit tracker to solve this.</li><li>Oversimplified the game task. I breakdown it into smaller chunk so I can manage it.</li><li>Do not create a proper or detail level design for each level.</li><li>Tried to find the best solution for the game mechanics problem. I should use the easiest way to solve it rather than find the best solution I want and spent my thinking while I can use the easiest one.</li><li>And the most critical thing I forgot is always testing your game in target platform each time you change something.</li><li>It seems, using a scriptable object in Unity is not good for WebGL, because I found it has different behaviour between the editor and the WebGL.</li></ul><p>That’s what I learn from working on this game. If you are interesting with the game I made you can play it <a href="https://noodleeater.itch.io/bit-shelter">here </a>and get the source code from my <a href="https://github.com/AmdHamdani/Bit-Shelter">GitHub</a>.</p><p>Thank you for reading till the end :) hope you enjoy it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ae90c37ee5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create In-Game Console for Your Unity Game]]></title>
            <link>https://noodle-eater.medium.com/create-in-game-console-for-your-unity-game-2f41319d2af1?source=rss-c0f5ee5f3c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f41319d2af1</guid>
            <category><![CDATA[gamedev]]></category>
            <category><![CDATA[application-development]]></category>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Hamdani]]></dc:creator>
            <pubDate>Tue, 09 Jun 2020 15:04:22 GMT</pubDate>
            <atom:updated>2020-06-09T15:04:22.554Z</atom:updated>
            <content:encoded><![CDATA[<h3>Intro</h3><p>When you working on your game, you also want to debug, know the process of your game, take a look at the log you create for that game. It’s easy to take a look at the log in the game engine or framework, but how if I wanna look the log from the game when it already becomes executable files e.g .exe, .apk etc.</p><p>In Android, you can open a terminal and show the log cat but the experience is painful since it shows all the log from your android device too, or you can open android studio and take a look at the log cat there, but sometimes we do not need all the log from our device. We only need a specific log from the game. Or maybe simply because of the Laptop/PC is reached its limit so we can not open android studio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EIN6GTuX4O08W-1Mam32lw.png" /><figcaption>Logcat in Android Studio</figcaption></figure><p>At this point, we can have an in-game debug console for our games and it will be better for us if we can use it across our game. So we can reduce the time for us to make another debug console.</p><p>I will use unity in here, you can do the same idea in other frameworks/engine. In the Unity Asset Store. you can find some free and ready to use the in-game console. But my goal writing this is, I want to explore and learn how we can create our own in-game console that will fit our need. And sometimes I found my self repeating the same task when testing third-party, and it will be better when I can have debugger to help me test the third-party.</p><h3>Design</h3><p>The goal of the in-game console is simply displaying log from the game to us in-game runtime. We need to listen to the Log Event, so each time the game is logging something we will be notified. And the log will be handled by Log Handler. The raw log will be formatted by Log Formatter and send back to Log Handler. And finally, Log Handler will add the log to the ConsoleView so we can see the log from our game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*rNFo7bd1lVaEQc5HZrvSaQ.png" /><figcaption>In-Game Console Design</figcaption></figure><h3>Log Event</h3><p>First, we want to make sure that we can listen or subscribe to the log event. So we can execute task each time a log is logged. In Unity, we can subscribe to Application.logMessageReceived</p><h3>Log Handler</h3><p>Each time we get notify that a log is logged, we want to process that log and show it in our game console. So we need to have a method for Handle it. In Unity, we need to provide a UI for our game console that I will explain in the next section.</p><p>The HandleLog above will be called each time our game is logging something, so we can directly process the log and show it in our game console.</p><h3>Console View</h3><p>We need a UI in our game to show the game logs, in Unity we can use ScrollView to solve this. We will add each log into the Console Content and to make the Vertical Scroll fit with our log list we can use ContentSizeFitter. In this Console View, I only focus on showing a short log, we can add more features in the future e.g. expand feature to see the detailed log, copy paste and send all the log to somewhere else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*ySlyMVg0d7sPxzfFOrJ3WA.png" /><figcaption>Console UI Hierarchy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*woXyr_GbJyQcRCwCcLyVzw.png" /><figcaption>Log Result from the Game</figcaption></figure><h3>Manage the GameObject</h3><p>Because we will add some log text to the ScrollView we make a prefab of the log text so we can reuse it and we do not need to setup it from the script. We only need to setup the prefab once and we can use it all the time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*v1z9L7TAc3XkuCQdRjgS7Q.png" /><figcaption>Debugger Prefabs</figcaption></figure><p>While creating this in-game console, I also created in-game debugger so we can add some button and inspect some value using text. And this console is also a part of the debugger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Cisd2HW_asJU2gO5MGu_g.png" /><figcaption>In-Game Debugger &amp; Console</figcaption></figure><p>Thank you for reading my post :) Have a nice day. If you have any feedback feel free to tell me.</p><p>You can check the code in <a href="https://github.com/AmdHamdani/Instant-Game-Debugger">github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f41319d2af1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dig Deeper into Game Development Life Cycle]]></title>
            <link>https://noodle-eater.medium.com/dig-deeper-into-game-development-life-cycle-11d5948ba0ee?source=rss-c0f5ee5f3c7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/11d5948ba0ee</guid>
            <category><![CDATA[programmer-tools]]></category>
            <category><![CDATA[game-tools]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Hamdani]]></dc:creator>
            <pubDate>Sun, 15 Mar 2020 13:17:17 GMT</pubDate>
            <atom:updated>2020-03-18T02:24:46.791Z</atom:updated>
            <content:encoded><![CDATA[<p>When I was in college I learn about Game Development Life Cycle (GDLC), but I did not use it properly. I think that I already use it and understand it, but after join Agate I figure it out that I do not understand it properly. I got more understanding and what needs to be focused on each phase after my senior share it to me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*E5Y6KjoJ23cWOc3goo8hnA.png" /><figcaption>Game Development Life Cycle</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*OiPVh7mnurz4q28z5_hjRA.png" /><figcaption>Game Development Life Cycle Goal</figcaption></figure><p>In each phase, there is a challenge that needs to be tackled, before I know about it I only treat GDLC as a sequence of a process without understanding the clear purpose for each phase and the boundaries of each phase. In my opinion, understanding each GDLC phase will help you develop your game better and even faster. When you understand the challenge that exists in each phase and able to solve it, you can iterate faster and better.</p><h3>Prototype Phase</h3><blockquote>The goal of this phase is to create a prototype in a short time (as fast as possible) so we can validate our idea.</blockquote><p>We should define what will be validated. The prototype will become a proof of concept for the game idea. Usually, we want to make sure that the game idea we want to make it fun, at this point we must focus on the game mechanics and test it as fast as possible to know that the game idea is fun or not.</p><p>We also need to be aware of any wildcard that appears when we want to validate our idea, e.g we have 2 game mechanics first is the common mechanics that everyone knows and the second is our new mechanics that not familiar yet. In this case, we want to find out which mechanics is better, so we can tell the tester about the new game mechanics so when we validate them we do not make the second game mechanics worse because the tester is not familiar with it.</p><p>To create a prototype in a short time, we need to have a boilerplate for our game (Base Architecture, Game Template, Development Framework) to make sure that we only focus on developing the game mechanics not another thing. Usually, when creating a prototype we develop it using dirty code and spaghetti code, but if we do it like this we will have to refactor it or recreate it on the production phase. And we have other tasks that are to design architecture needed for our game, but it requires robust design, extendable, easy to understand and easy to use.</p><p>I tried to create my development framework, but because I was lack of knowledge about the requirements above and did not know the goal of my development framework I can not finish it and can not plan it properly. In Unity3D you can use tools/frameworks like Zenject, UniRx, Entitas, Fungus, etc.</p><h3>Production Phase</h3><blockquote>The goal of this phase is to scale into a complete game.</blockquote><p>In this phase, you have a task to scale your game content. When you scale your game content, you will need to deal with more assets, data and also debugging your game. The challenge is you need scalable dan modular design so you can add more content freely. You need to deal with managing your resources/assets, data and debugging your game content.</p><p>You can create your asset management tools to manage your sprite, sound or you can use built-in tools like the addressable asset, asset bundle. It is important to manage your resources because this will help you scale your game and make sure you do not break anything when scale-up. Adding debug tools will be very useful in this phase, you can use tools like Ultimate Console, Mobile Console, TouchConsole tools from Unity3D asset store so you can test the game and check your game log and you can know if an error happens.</p><p>Why not using default debugging tools like log cat or log from Xcode? The log that is shown in the log cat usually comes with the device log and it requires more effort to find your game log. So when you use third-party debugging tools you can inspect your game behaviour from its console without distracted by other logs from your device.</p><h3>Alpha &amp; Beta</h3><blockquote>The goal of this phase is to prepare your game into ready to release the game.</blockquote><p>In this phase, you want to add profitability and sustainability features. The profitability feature will bring money into your pocket, such as In-App Purchase, Advertisement, etc. You will need many third-party like UnityPurchasing, Admob, and other for profitability features.</p><p>You also want to add an analytic tool so you can inspect how is your game behaviour when a player playing it. Analytic will tell what happens with your app and your task to understand why that happens and use it to iterate and improve your game.</p><p>You can add native features such as Share, Local Notif, Push notif, etc into your game. Using local notif you can schedule it to remind the user to play again after a few times off from your game. And you can use push notif to send give to users besides using it as a notification.</p><p>But the challenge in this phase is you need to know the best practices of each feature, and how to deal with technical issues. When you using some third-party there is a chance that it can break your game so you need to know the best practice for this edge case problem.</p><p>In my daily quest, I deal with many weird technical issues when working on Agate Internal Tool. So make sure to always check the forum, third-party release note and if you want to update a third party do not directly import it into your game but import it into an empty project and try to use the feature you need.</p><h3>Release</h3><blockquote>The goal in this phase is to bring your game into larger-scale users.</blockquote><p>And your task is to add a feature that will support a large scale of users. You will need to maintain user data and customer support. Not all game will need this customer support feature, the games in Steam or PS4 does not have this kind of feature but the store usually will provide support for user complaint and feedback.</p><p>The challenge is you need to maintain the user data, store their data into the cloud to make sure that their data does not go when they play your game again, even when they uninstall your game and reinstall it one day. You will also need to handle the user complaint so your game rating will not drop because of it, you can provide a feature like chat with customer support if it’s available.</p><h3>Maintain</h3><blockquote>The goal of this phase is to keep the user engage with your game.</blockquote><p>And you need to add features to enrich your game experience. You may want to add social such as Leaderboard, Chat, Referral, and others to make your user more engage to play your game.</p><p>To do it you will need LiveOps feature to update your game event, news and the game content itself. You can have LiveOps features such as Event, News, Inbox, and Voucher. You can add an event into your game to engage your user and tell them about your event or maintenance using your News or Inbox.</p><p>Your challenge in this phase is to design based on user-centric because, in the end, the one that will use the feature is your user, not you. You can create a feature that good and easy to understand for you, but if your user does not understand it and can not use it then it will be useless.</p><p>What I tell you above is only a small part that I know, to improve your game development process you will need to learn and explore more. if you have feedback for me feel free to tell it. Thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11d5948ba0ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>