<?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[Project Asura - Medium]]></title>
        <description><![CDATA[We are a group of passionate game developers currently working on a Indian-themed horror game with elements of among us. - Medium]]></description>
        <link>https://medium.com/project-asura?source=rss----664a9f6fa2d4---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Project Asura - Medium</title>
            <link>https://medium.com/project-asura?source=rss----664a9f6fa2d4---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:02:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/project-asura" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Leveraging UE4 Gameplay Framework for our Multiplayer game]]></title>
            <link>https://medium.com/project-asura/leveraging-ue4-gameplay-framework-for-our-multiplayer-game-41724f2e1dcd?source=rss----664a9f6fa2d4---4</link>
            <guid isPermaLink="false">https://medium.com/p/41724f2e1dcd</guid>
            <category><![CDATA[unreal-engine]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[multiplayer]]></category>
            <dc:creator><![CDATA[Rohan Mayya]]></dc:creator>
            <pubDate>Sun, 01 Nov 2020 09:04:23 GMT</pubDate>
            <atom:updated>2020-11-01T09:04:23.631Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3DPc8vhiu5g68f3sjZIwQg.png" /></figure><h3>Leveraging UE4&#39;s Gameplay Framework for our Multiplayer game</h3><p>Unreal Engine is great, but the one thing we all collectively dislike about it is its docs.<br>I mean, just search try wrapping your head around Networking for Unreal (and subsequently its Gameplay Framework).</p><p>Thank god for <a href="http://cedric-neukirchen.net/Downloads/Compendium/UE4_Network_Compendium_by_Cedric_eXi_Neukirchen.pdf">Cedric Neukirchen’s Networking compendium</a>, otherwise, we’d all be in trouble today.</p><p>This article is not intended to be a guide. What I intend to detail over the rest of it is how we’ve (successfully) manage to wrangle the Gameplay Framework to our needs, where we struggled, and scope for improvement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*MEavmr1qiwX6lnFFGMBp3Q.png" /><figcaption><em>Credit to Cedric Neukirchen for this golden image.</em></figcaption></figure><p>I’ll be covering these topics in detail with the game we’re building as our context:<br><strong>Pawn<br>PlayerController<br>GameMode<br>GameState<br>PlayerState<br>GameInstance</strong></p><h3>Our Requirements</h3><p>We’re building something similar to Among Us. So we have all the usual stuff. Voting, running around, and being able to kill other people. Multiple intermediary loading screens to be shown, and a lot of states to track. Plus roles.</p><p>We also have 2 levels that players keep transitioning between, so we need to juggle important state between these 2 levels.</p><p>Off the top of my head, we need to:</p><ul><li><strong>Assign vampire</strong>(s) (impostor, as you might call it),</li><li><strong>Keep track of who’s dead</strong></li><li><strong>Figure out managing states BETWEEN levels</strong> (The main level and a voting level)</li></ul><p>Our intention is to map specific problems to specific parts of the Gameplay Framework so that you, the reader, get a better idea of how to use these components, and for what purpose.</p><p>Before I begin, I’d like to say that semanticity matters. It makes sense to use a component to do exactly what it was designed for.</p><p>eg: Writing logic that controls the movement for a player in a Level Blueprint does not make sense at all.</p><p>You get the idea.</p><h3>Let Us Begin</h3><p>First off, we need to find a way to store the <strong>player’s username throughout the session</strong> of being in-game.</p><h3>Game Instance</h3><p>The Game Instance class happens to be perfect for this. There are 3 important things to know about Game Instance:</p><ul><li>Every single device connected to the game has its <strong>own local copy of Game Instance.</strong></li><li>Game Instance is not replicated. In other words, only YOU know about your own GameInstance.</li><li>Data stored in the Game Instance lasts all throughout the lifecycle of the game. This means, <strong>from the time you open your game app till the time it closes, the data persists.</strong></li></ul><p>This is perfect for storing data that is relevant all throughout, <strong>from opening the application right to closing it</strong>.</p><p>This leads to an important observation: Game Instance should ideally be avoided when you’re storing stuff <em>inside a running instance of a game</em>.</p><p>Examples of where we’re using Game Instance (now and in the future):</p><ul><li>Storing the player’s username,</li><li>Storing choices made in the main menu (such as skins selection, lobby size, map choice, etc).</li></ul><h3>Everything In-Game</h3><p>Next, we need to worry about <strong>everything in-game</strong>.<br>Let’s break this down:</p><ul><li><strong>Player details</strong> (<em>Am I dead? Am I a vampire? Have I voted during the voting round? How much of my tasks have I completed?</em>)</li><li><strong>Details about the current state of the game</strong> (<em>How much progress left till everyone collectively finishes all their tasks? How much time has passed in the game currently? Is it daytime? Is it nighttime?</em>)</li><li><strong>Details about win conditions</strong>. (<em>What to do when all the vampires are dead? Or when all the normal players are dead? What about edge cases, like when 1 vampire and 1 civilian are alive?</em>)</li><li><strong>Widgets and HUD</strong> (<em>How do I show my cooldowns and abilities? What about the visual interface for all the buttons I click on to kill or vote for someone?</em>)</li><li><strong>Inputs</strong> (<em>How do I tie in the visual buttons to controls that do something? Should I do that it in the Player Controller or the Player Pawn?</em>)</li></ul><p>Remember, the purpose of this article is to map these questions to suitable components of the Gameplay Framework.<br>Very specific implementations and edge cases are something we’ll talk about in future articles.</p><p>But, to keep it simple:</p><h3>PlayerState</h3><p><strong>We’ve used PlayerState for all relevant player details</strong>. PlayerState is replicated over the network. This means the server is aware of my player state, and so are all the other connected devices (From now, we’ll call them clients).</p><p>It’s important to understand the distinction between something that’s on the PlayerState and having something only locally (on the client).</p><p>To illustrate, think about a detail like storing information about being dead.</p><p>Ask yourself one question: <em>Does every connected player have to know whether you’re dead or alive? If yes, then store it in PlayerState</em>.</p><p>Now ask yourself another question: <em>Does every connected player need to know whether you have the scoreboard open on your own screen? If no, then don’t store it in PlayerState</em>.</p><p>More specifically, for the second question, you can consider using PlayerController or something that’s not necessarily networked, to toggle opening and closing the scoreboard. (I’m speaking about the logic here, not the visual HUD elements.)</p><h3>GameState</h3><p>When considering where to use GameState, ask yourself one important question:</p><p><strong>Does a variable that is continuously changing contribute to ending the game</strong>? If yes, it belongs to GameState. This is a bit of an oversimplified explanation, but it gets the job done in most cases.</p><p>Let’s do examples again. They’ll make things pretty clear.</p><p>Ask yourself this: <em>Does every player need to have a synchronized time clock? If yes, it probably goes in GameState</em>.</p><p>The reason? GameState belongs only to the server, but it is replicated to every client. Hence, it makes <strong>semantic sense to store a variable here that is going to affect every client.</strong></p><p>Great examples of this are current time, number of days that have passed, the progress of all tasks put together, etc.</p><p>To illustrate the first example a little further:<br>Current time changes every second, and on reaching 0:00 seconds, the level ends.<br>So it’s <strong>considered to be a variable that contributes to the game actually ending.</strong></p><h3>GameMode</h3><p>This class is most often associated with win conditions. It also is the right place to define the <strong>rules of a game</strong>.</p><p>When working with this class, ask yourself this:<br><em>Has some condition been reached, or some variable changed, such that we now have to transition to a new level or end the game?</em></p><p>Let’s take our previous example of the current time being stored in the GameState.</p><p>For an easy understanding, let’s assume our game clock starts at 5:00, and when the clock reaches 0:00, we want the game to end.</p><p>This rule is what we would describe in GameMode. We’d have a variable, say, “EndTime”, (set to 0:00), and then we say, if the current time in GameState is equal to the EndTime, then we’d like to end the game in the GameMode.</p><p>Another example is the number of days passed. If 4 days have passed (which we’re keeping track of in the GameState), then end the game here (after doing a check).</p><h3>PlayerController</h3><p><strong>We’re using this for Splash Screens and all our controls</strong>.</p><p>Reason? Other clients don’t care about you actually pressing the W key. They only care to see if your character has moved one step forward. Your character pawn takes care of displaying that.</p><p>This makes it incredibly useful as a space to define all your controls and everything that’s only local to your own device.</p><p><em>Examples of controls are Movement, Calling for an emergency meeting, Camera rotation.</em></p><h3>Pawn</h3><p>We’ve actually decided to keep some of the controls here, such as killing and transforming into a vampire. And also the role-specific abilities.</p><p>The reason? We want to use a <strong>single PlayerController</strong> class to define all the common controls, such as movement and opening scoreboard.</p><p>However, since the roles will have different abilities, it makes more sense to bind that control in the Pawn (in this case, our Character class. Remember, Character inherits from Pawn).</p><h3>Conclusion</h3><p>There are some parts I still haven’t touched, such as retaining state when transitioning between levels, etc. But I definitely plan on covering them sometime in the future. I hope you enjoyed reading this article as much as I did writing it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41724f2e1dcd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/project-asura/leveraging-ue4-gameplay-framework-for-our-multiplayer-game-41724f2e1dcd">Leveraging UE4 Gameplay Framework for our Multiplayer game</a> was originally published in <a href="https://medium.com/project-asura">Project Asura</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Project Asura?]]></title>
            <link>https://medium.com/project-asura/what-is-project-asura-bc8c54950c59?source=rss----664a9f6fa2d4---4</link>
            <guid isPermaLink="false">https://medium.com/p/bc8c54950c59</guid>
            <category><![CDATA[games]]></category>
            <category><![CDATA[indie-game]]></category>
            <category><![CDATA[game-notes]]></category>
            <category><![CDATA[game-development-company]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Sudarshan Senthil Kumar]]></dc:creator>
            <pubDate>Fri, 30 Oct 2020 14:03:50 GMT</pubDate>
            <atom:updated>2020-10-30T14:12:05.892Z</atom:updated>
            <content:encoded><![CDATA[<p>Project Asura is an Indian themed horror game with elements of Among Us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNK1ZqOxljVN__4ZNTyjcA.png" /></figure><h3><strong>What does Asura mean?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*WX4Pj3njr507LkJFETijwg.png" /></figure><h3><strong>Premise</strong>:</h3><p>Two out of 8 players in a village have been infected by a curse that will turn them into a blood-thirsty monster in exactly 3 days. The village Councillor decided that it is up to the people who have been exposed to the curse to figure out and kill the two people in the team who are the infected and only if at the end of the third day none of the remaining people in the village convert, the remaining villagers will come rescue them. Otherwise, they will be left for dead and will be killed/converted by the demons who are still alive on the third day.</p><h3><strong>Players:</strong></h3><p>The core game will consist of 8 players out of which:</p><ul><li>Two players are randomly assigned the role of “Demon” who’s task is to kill the villagers before the third day.</li><li>The remaining players are normal villagers who have to complete set tasks to lift the curse (or) vote out both the cursed by the end of the third day.</li></ul><h3><strong>How do the villagers figure out who the “Demon” is?</strong></h3><p>The demon can transform into their monster form at any time during which he will be allowed to kill other players in the game. When in the Demon form, the player will have a 10 second cool down at the end of which he will be transformed back to his human form. The other villagers will not be able to tell who the cursed player is when they are in their demon form, so to figure it out the villagers have one of two options:</p><ul><li>Follow the demon and see him transform back to a human at the end of his cool down.</li><li>Whenever the demon kills a player, they are automatically transformed to their human form.</li></ul><p>There is a bell at the middle of the map which the players can use at any time to call a meeting. The villagers are forced to kill one player by the end of the meeting by voting them out. The player with the most votes will automatically be killed by the executioner. The meeting is also automatically called at the end of every night if no player rings the bell during night.</p><h3><strong>Abilities</strong></h3><ul><li><strong>All players</strong>: can crouch, vault, run and complete tasks</li><li><strong>Demons</strong>: Can transform and kill players. They get back to their human form when they either kill another villager or their timer runs out. The demon also moves 60% faster than a normal villager.</li><li><strong>Villagers</strong>: Normal characters. Can run around and do their respective tasks. Can do everything a character can do except transform. All special abilities that a villager can use only affect the demons.</li></ul><h3><strong>Day/Night Cycles (5 Minutes Each)</strong></h3><p>If no one rings the bell during night, a meeting is called automatically and the players are forced to kill a player who is alive.</p><h3><strong>Potential changes:</strong></h3><ul><li>More ways for the players to die</li><li>Player revival Mechanics</li><li>Roles for each villager with special abilities</li><li>Real time voting</li><li>After vote during congregation, time crunch so you have to do tasks faster</li></ul><p>The themes and mechanics are still a work in project and are subject to change.</p><h3><strong>Potential Problems</strong>:</h3><ul><li>The demon can abuse the bell system</li><li>The game can get over too quickly</li><li>Tasks can get repetitive</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc8c54950c59" width="1" height="1" alt=""><hr><p><a href="https://medium.com/project-asura/what-is-project-asura-bc8c54950c59">What is Project Asura?</a> was originally published in <a href="https://medium.com/project-asura">Project Asura</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>