<?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 Walid-remadi on Medium]]></title>
        <description><![CDATA[Stories by Walid-remadi on Medium]]></description>
        <link>https://medium.com/@walidremadi?source=rss-88998040adee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YeEtkoQ9bFspXsu0jC-OTw.jpeg</url>
            <title>Stories by Walid-remadi on Medium</title>
            <link>https://medium.com/@walidremadi?source=rss-88998040adee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:25:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@walidremadi/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[Target audiences within the mobile gaming market]]></title>
            <link>https://walidremadi.medium.com/target-audiences-within-the-mobile-gaming-market-23b00a418308?source=rss-88998040adee------2</link>
            <guid isPermaLink="false">https://medium.com/p/23b00a418308</guid>
            <category><![CDATA[gamer]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[mobile-games]]></category>
            <category><![CDATA[children]]></category>
            <category><![CDATA[games]]></category>
            <dc:creator><![CDATA[Walid-remadi]]></dc:creator>
            <pubDate>Sat, 04 Feb 2023 14:22:20 GMT</pubDate>
            <atom:updated>2023-05-06T12:27:10.795Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5GJREEdwz8lRdV7sVgqZQ.jpeg" /></figure><p><em>Due to its extensive range of offerings, the mobile gaming sector attracts to a diverse spectrum of target customers. The primary target audiences for the sector are provided in this article.</em></p><ul><li><strong>Casual gamers:</strong><br><em>This group consists of people who use their mobile devices to play games in their free time. They usually seek out games with simple and clear gameplay mechanics that are simple to pick up and play. Angry Birds, Subway Surfers, and Candy Crush are a few examples of casual games.</em></li><li><strong>Core gamers:<br></strong><em>The players in this group are passionate gamers who enjoy a range of games on consoles and mobile devices. They seek out immersive, sophisticated experiences with rich storylines and challenging gameplay and are frequently more prepared to devote time and money into a game. PUBG Mobile, Call of Duty Mobile, and Fortnite are a few examples of popular mobile games.</em></li><li><strong>Children:<br></strong><em>This group includes those who use their own or their parents’ mobile devices to play video games. They often seek out games that are enjoyable, instructive, and suitable for their age group. Games for children include Roblox, Minecraft, and Animal Crossing.</em></li><li><strong>Seniors:<br></strong><em>This segment includes older individuals who may not be as tech-savvy as other segments, but are interested in entertaining, uncomplicated games that are easy to learn. Crossword puzzles, solitaire, and Bingo are a few examples of senior-friendly games.</em></li><li><strong>Women:<br></strong><em>This segment includes women who play games on their mobile devices, often during their free time. They might be seeking games that offer social features, such as the ability to play with friends, and games that are relevant to their interests, such as fashion. Examples of games for women include Covet Fashion, Cooking Dash, and Hay Day.</em></li></ul><blockquote>These are the key target audiences within the mobile gaming market. By knowing who your target market is can help you better cater your game offerings and marketing initiatives to their needs and preferences, thus increasing your chances of success.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23b00a418308" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create Modular and Reusable code in Unity]]></title>
            <link>https://walidremadi.medium.com/how-to-create-modular-and-reusable-code-in-unity-213609109b70?source=rss-88998040adee------2</link>
            <guid isPermaLink="false">https://medium.com/p/213609109b70</guid>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity-development]]></category>
            <dc:creator><![CDATA[Walid-remadi]]></dc:creator>
            <pubDate>Wed, 25 Jan 2023 17:31:53 GMT</pubDate>
            <atom:updated>2023-05-06T12:58:10.117Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OlczpYvRK06TqA7g.png" /></figure><p><em>For effective game development, writing modular and reusable code in Unity is an important concept. Here are some suggestions to make your code more reusable and modular:</em></p><p>• <strong>Use ScriptableObjects:</strong> <br><em>ScriptableObjects are data containers that can be used to store and organize game data, such as settings, item properties, and character stats. They can be reused throughout numerous scripts and scenarios and are simple to edit and modify in the Unity editor.</em></p><p>• <strong>Utilize interfaces: <br></strong><em>Interfaces are a way to define a contract for certain functionality that a class is required to implement. You may write more adaptable, reusable code that is simple to extend or modify by using interfaces.</em></p><p>• <strong>Create helper classes and methods:</strong> <br><em>Common functionalities, such as input handling or mathematical operations, can be encapsulated using helper classes and methods. You can keep code organization and reduce redundant logic by creating these helpers.</em></p><p>• <strong>Use the Single Responsibility Principle:</strong> <br><em>The Single Responsibility Principle states that a class should have one, and only one, reason to change. By adhering to this principle, you can develop classes that are focused on a single job, increasing their reusability and testability.</em></p><p>• <strong>Use the Dependency Injection pattern:</strong> <br><em>Dependency injection is a design pattern that allows you to decouple your code by injecting dependencies into a class rather than creating them within the class. This makes your code more flexible, testable, and reusable.</em></p><p>• <strong>Refactor your code regularly:</strong> <br><em>As your game grows, it’s important to regularly review and refactor your code to keep it structured and simple to maintain. Variables may need to be renamed, functions may need to be refactored, or even big classes may need to be divided into smaller ones.</em></p><blockquote>By following these tips and principles, you can write more modular, reusable code that is simpler to maintain and adapt as your game grows.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=213609109b70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object - Oriented Programming explained.]]></title>
            <link>https://walidremadi.medium.com/object-oriented-programming-explained-f29d745e44ea?source=rss-88998040adee------2</link>
            <guid isPermaLink="false">https://medium.com/p/f29d745e44ea</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Walid-remadi]]></dc:creator>
            <pubDate>Mon, 01 Aug 2022 14:57:12 GMT</pubDate>
            <atom:updated>2023-05-06T11:16:23.804Z</atom:updated>
            <content:encoded><![CDATA[<p>Object — Oriented Programming, also knowing as OOP, is a programming paradigm that relies on the concept of classes and objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sNctsmFN0ql5z73mjF7XiA.png" /></figure><h4><strong>Classes and Objects</strong></h4><p>We can divide a game into a bunch of <strong>objects</strong> talking to each other. Each object has it’s own state(s) and behaviour(s).</p><p>How do we create objects ?</p><p>Well, that’s where <strong>classes </strong>come in. A <strong>Class </strong>is a blueprint (Template) for creating objects, also it specifies what properties an object should have and how it should behave.</p><p>Let’s say we want to have different characters in our game, so we create a <strong>Class </strong>called “<strong>Character</strong>”, the variables in our class could represent it’s state(health,damage, …) and functions(methods) could represent its behaviour(Attack,Heal,…).</p><p>Now we can create multiple characters(objects) of the same class, but each can be in an independent state, but they all share the same behaviour.</p><ul><li>An object is an instance of a class.</li></ul><h4><strong>Inheritance</strong></h4><p><strong>Inheritance</strong> allows us to create a new class from an existing class. the new class inherits all the non-private variables and methods of the existing class. The new class is a specialised version of the existing class, which means that the existing class acts as a starting point to the new class.</p><ul><li>The existing class is called the Base Class.</li><li>The new class is called the Child Class.</li></ul><p>Why inheritance ?</p><ul><li><strong>Reusability<br></strong>Inheritance allows us to reuse our existing code. For example if all of our characters have the ability to take damage and heal themselves then we can define this behaviour in the <strong>Base Class</strong> and make all the <strong>Child Classes</strong> inherit that behaviour.</li><li><strong>Code Modification<br></strong>Let’s suppose we want to change how our characters take damage, without inheritance we have to rewrite the code for each class. But with inheritance we only need to do it once in the <strong>Base Class</strong>.</li><li><strong>Extensibility<br></strong>Using inheritance we can extend upon our <strong>Base Class</strong> to add new features to our <strong>Child Class</strong>. For example if we have a new kind of characters that can shield themselves we can use the Base Class behaviour and add it our new feature without the need to rewrite everything from scratch.</li></ul><h4><strong>Encapsulation</strong></h4><p>Encapsulation refers to the bundling of data with the methods that operate on that data. Which means that the variables or data of a class is hidden from any other class and can be accessed only through methods of its own class.</p><p>Encapsulation can be achieved by declaring all the variables in the class as private and writing public methods in the class to get and set the values of variables.</p><p>In our example it is better if we make the (heal and damage) variables in our character class private and have public methods to operate on them like TakeDamage(); Heal(); IncreaseDamage(); etc…</p><h4><strong>Polymorphism</strong></h4><blockquote><em>The word Polymorphism is combination of two Greek words, </em><strong><em>Poly</em></strong><em>, which means many, and </em><strong><em>Morph</em></strong><em> which means forms.</em></blockquote><p>Polymorphism is the ability of an object to take on different forms. It also allows us to perform the same action in many different ways.</p><p>Example a weapon can have different characteristics. A weapon can be a sword at the same time it can be a gun or a crossbow.</p><p>There is two types of polymorphism :</p><ul><li>Compile — time polymorphism</li><li>Runtime polymorphism</li></ul><p><strong>Compile — time polymorphism<br></strong>It is also known as static polymorphism. This type is achieved by <strong>Method Overloading</strong>.</p><p><strong>Method Overloading</strong> : when there are multiple methods with the same name in the same class but with different parameters, which means by changing the number of arguments and/or a changing the type of arguments.</p><p><strong>Runtime polymorphism<br></strong>It is known as dynamic polymorphism. It can be achieved by <strong>Method Overriding.</strong></p><p><strong>Method Overriding </strong>: occurs when a derived class(child class) has a definition for one of the member functions in the base class. In other words, it is when a derived class provides the specific implementation of a method that has been declared by it’s parent class.</p><ul><li><em>The methods in the parent class are called </em><strong><em>overridden methods </em></strong><em>and have to be declared </em><strong><em>virtual</em></strong><em>.</em></li><li><em>The methods in the child class are called </em><strong><em>overriding methods</em></strong><em> and have to include the keyword </em><strong><em>override </em></strong><em>in their signature.</em></li></ul><h4><strong>Abstraction</strong></h4><p>Its main goal is to handle complexity by hiding unnecessary details from the user. In simple terms, abstraction “displays” only the relevant attributes of objects and “hides” the unnecessary details.</p><p>An abstract data type (or class) is a type that defines what operations are to be performed, rather than how they are to be performed.</p><p>How to achieve Abstraction ?</p><p>We can use <strong>Abstract Classes</strong> and <strong>Interfaces</strong> to achieve abstraction.</p><ul><li><em>An </em><strong><em>abstract method</em></strong><em> is declared using the abstract keyword and does not have a body/implementation.</em></li><li><em>An </em><strong><em>abstract method</em></strong><em> can only be declared inside an </em><strong><em>abstract class </em></strong><em>or </em><strong><em>Interface</em></strong><em>.</em></li><li><em>An </em><strong><em>abstract class </em></strong><em>is a class which is declared using the abstract keyword and cannot be instantiated, which means we cannot create an object of an abstract class.</em></li><li><em>An </em><strong><em>abstract class</em></strong><em> can contain </em><strong><em>abstract methods</em></strong><em> and non-abstract/normal methods.</em></li><li><em>To contain any </em><strong><em>abstract method</em></strong><em>, a class has to be declared as an </em><strong><em>abstract class</em></strong><em>. Non-abstract classes cannot have abstract methods.</em></li><li><em>An </em><strong><em>Interface</em></strong><em> is just like an abstract class but only specifies the behaviour that a class must implement.</em></li><li><em>An </em><strong><em>Interface</em></strong><em> can be used to achieve 100% abstraction as it can only contain abstract members.</em></li><li><em>An </em><strong><em>Interface</em></strong><em> can be thought of as a </em><strong><em>contract</em></strong><em> that a class has to fulfill. Which means that the class has to implement all the abstract members of that Interface.</em></li><li><em>A </em><strong><em>class</em></strong><em> can implement multiple </em><strong><em>interfaces</em></strong><em> and an interface can extend from multiple interfaces. But a class can only extend from one class.</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f29d745e44ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>