<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abhi</title>
    <description>The latest articles on DEV Community by Abhi (@abhi).</description>
    <link>https://dev.to/abhi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F543296%2F67662843-2228-4d56-b69e-a625b387a577.jpg</url>
      <title>DEV Community: Abhi</title>
      <link>https://dev.to/abhi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abhi"/>
    <language>en</language>
    <item>
      <title>( YouTube Tutorial ) Multi-Conditional Booleans For Games</title>
      <dc:creator>Abhi</dc:creator>
      <pubDate>Fri, 25 Dec 2020 14:51:52 +0000</pubDate>
      <link>https://dev.to/abhi/youtube-tutorial-multi-conditional-booleans-for-games-43ee</link>
      <guid>https://dev.to/abhi/youtube-tutorial-multi-conditional-booleans-for-games-43ee</guid>
      <description>&lt;h1&gt;
  
  
  What are multi-conditional booleans?
&lt;/h1&gt;

&lt;p&gt;Multi-Conditional booleans, as the name suggests, are bool values that can be true or false under multiple conditions. For example, in your game you might have conditions under which your player character is invincible. Let's consider two states: The player is invincible if they are equipped with a &lt;em&gt;Shield&lt;/em&gt; or they are invincible for 5 seconds after they choose to &lt;em&gt;Revive&lt;/em&gt; in the game.&lt;/p&gt;

&lt;h1&gt;
  
  
  What happens if you implement these with a single boolean?
&lt;/h1&gt;

&lt;p&gt;Suppose you have a boolean called &lt;em&gt;_invincible&lt;/em&gt; that is set to &lt;em&gt;true&lt;/em&gt; or &lt;em&gt;false&lt;/em&gt; depending on the current player state. Now the player dies in the game and chooses to &lt;em&gt;Revive&lt;/em&gt;. You set the bool value to &lt;em&gt;true&lt;/em&gt;. Now before 5 seconds elapse, the player equips the &lt;em&gt;Shield&lt;/em&gt;. You again set the boolean to &lt;em&gt;true&lt;/em&gt; (or you may check if it's already true and not set it to the same value). After 5 seconds of &lt;em&gt;Revive&lt;/em&gt; elapse you set the boolean to &lt;em&gt;false&lt;/em&gt;, and now we have a problem. The player is equipped with a &lt;em&gt;Shield&lt;/em&gt; and is NOT invincible.&lt;/p&gt;

&lt;h1&gt;
  
  
  How do multi-conditional booleans help with this?
&lt;/h1&gt;

&lt;p&gt;Multi-conditional boolean is a wrapper class, that uses bitwise operations to determine the final state of the boolean. We reserve bits of an integer, one for each condition under which the player can be invincible. In the example above, we will reserve the first bit for &lt;em&gt;Revive&lt;/em&gt; and the second bit for &lt;em&gt;Shield&lt;/em&gt;. We set the corresponding bit to '1' or '0' depending on if that particular condition is &lt;em&gt;true&lt;/em&gt; or &lt;em&gt;false&lt;/em&gt;. The multi-conditional boolean is false when all the bits are set to 0, i.e the integers value is 0. If it is greater than 0 then the multi-conditional boolean is true.&lt;/p&gt;

&lt;p&gt;In the following tutorial, I show you how to implement multi-conditional booleans in your games using Unity and C#.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/peckZFJCWXE"&gt;Multi-Conditional Booleans&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;P.S: For more tutorials and game dev content please &lt;strong&gt;SUBSCRIBE!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>tutorial</category>
      <category>gamedev</category>
      <category>csharp</category>
    </item>
    <item>
      <title>( YouTube Tutorial ) Codeless IAP for Unity3D.</title>
      <dc:creator>Abhi</dc:creator>
      <pubDate>Wed, 23 Dec 2020 14:14:19 +0000</pubDate>
      <link>https://dev.to/abhi/youtube-tutorial-codeless-iap-for-unity3d-236l</link>
      <guid>https://dev.to/abhi/youtube-tutorial-codeless-iap-for-unity3d-236l</guid>
      <description>&lt;p&gt;So you have been working hard on finishing your mobile game and preparing for release. All those months or years of hard work finally coming to fruition. You are dreaming of all the money you gonna make and then it dawns on you! That &lt;em&gt;ONE&lt;/em&gt; task that you have been procrastinating on is still in the back burner section of your Trello list. You finally, with a heavy heart, drag the 'Implement IAP' card into the In Progress section. And so, the hunt to learn &lt;em&gt;'How to Implement IAP in Unity'&lt;/em&gt; begins!&lt;/p&gt;

&lt;p&gt;I am happy to announce that I have made a tutorial on implementing &lt;strong&gt;Codeless IAP&lt;/strong&gt; in Unity. Codeless IAP makes it really easy to get in-app purchasing working in your projects without the need to write complex IAP code. You can implement purchasing and restoring of IAP products by just adding &lt;em&gt;IAPButtons&lt;/em&gt; in your game. For the complete video tutorial follow the link below.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;P.S : I would subscribe :)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=zWvH4cWKRQ4"&gt;Codeless IAP Unity Tutorial&lt;/a&gt;&lt;/p&gt;

</description>
      <category>unity3d</category>
      <category>tutorial</category>
      <category>gamedev</category>
      <category>mobile</category>
    </item>
    <item>
      <title>All the game devs out there! Drop in a Hi to connect :)</title>
      <dc:creator>Abhi</dc:creator>
      <pubDate>Sat, 19 Dec 2020 07:27:50 +0000</pubDate>
      <link>https://dev.to/abhi/all-the-game-devs-out-there-drop-in-a-hi-to-connect-2gpb</link>
      <guid>https://dev.to/abhi/all-the-game-devs-out-there-drop-in-a-hi-to-connect-2gpb</guid>
      <description>&lt;p&gt;A fellow indie game developer here! New to this community and trying to connect with amazing game devs.&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>unity3d</category>
      <category>programming</category>
      <category>career</category>
    </item>
  </channel>
</rss>
