<?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 evie ren on Medium]]></title>
        <description><![CDATA[Stories by evie ren on Medium]]></description>
        <link>https://medium.com/@evieren90?source=rss-3192c3dbf0b4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dUotojsuHpzk8heI</url>
            <title>Stories by evie ren on Medium</title>
            <link>https://medium.com/@evieren90?source=rss-3192c3dbf0b4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:46:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@evieren90/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[Sum of multidimensional Array using Recursion]]></title>
            <link>https://medium.com/@evieren90/sum-of-multidimensional-array-using-recursion-f7535e4424a1?source=rss-3192c3dbf0b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7535e4424a1</guid>
            <category><![CDATA[recursion]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[evie ren]]></dc:creator>
            <pubDate>Wed, 03 Oct 2018 02:47:47 GMT</pubDate>
            <atom:updated>2018-10-03T02:47:47.798Z</atom:updated>
            <content:encoded><![CDATA[<p>In this tutorial, I will explain how recursion works in solving multidimensional array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZAjTHVOaPevZbETN8zB5w.jpeg" /></figure><p>lets pretend that we want to find the sum of this array:<br>[ 3 , 5 , [6] , 7 ,[ 10 ,[ 9 , 1] ] ]</p><ol><li>create a variable sum and make it equal to 0, so we will have a space to save the total.</li><li>in the for-loop, we checking the variable at the index if it is an Array, if not, we sum up the num<br>when index = 0 , sum += 3 , sum = 3 <br>when index = 1 , sum += 5 , sum = 8</li><li>when index =2, its an array, we start a new function <br>sum inside the new function starts with 0,<br>index =0, sum+= 6, sum = 6<br>end of 1 digit for-loop<br>now we return this sum = 6 <br>end of 1st recursion</li><li>we come out from the recursion, <br>grabbing the 6 return from the function<br>and add the sum we got from index 1<br>so the sum will now be 14</li><li>when index =3, sum +=7, sum =21</li><li>when index =4, its an array, recursion 1<br>at index = 0 , sum += 10, sum =10</li><li>at index = 1 , recursion 2<br>at index = 0, sum +=9, sum =9<br>at index = 1, sum+=1, sum=10<br>end of array, return sum =10</li><li>grabbing the 10 return from recursion 2<br>and add the sum we got from index 4, which is 10<br>so the sum will now be 20<br>end of array, return 20</li><li>add sum we got before going to the recursion, which is 21, with<br>the sum return from the recursion, which is 20</li><li>we got the final sum =41</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7535e4424a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up Phaser3 environment using Node.js]]></title>
            <link>https://medium.com/@evieren90/setting-up-phaser3-environment-using-node-js-aa22e199467a?source=rss-3192c3dbf0b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa22e199467a</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[phaser]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[evie ren]]></dc:creator>
            <pubDate>Mon, 01 Oct 2018 03:59:54 GMT</pubDate>
            <atom:updated>2018-10-01T03:59:54.646Z</atom:updated>
            <content:encoded><![CDATA[<p>In this tutorial I will explain why and how to setup a basic dev environment in order to make a phaser3 game using Node.js.</p><p>Why do you need a web server ?<br>You want a web server so that you can load your resources such as: images, audios…etc and there is a server level security which make sure that you only access the file you want.</p><p>How to set up a http-server for node.js?<br>In your editor, assume you have already installed Node.js<br> — create an working directory <br> — npm init (create a package.json file for your application)<br> — npm install express (a server-side web framework)<br> — create a server.js file in your main directory<br> — on top of the server.js file, require the dependency, that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SyZr42q-5bao3B1qZPYY6g.jpeg" /></figure><p>— make server listening to localhost port 8080</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lwkb1pkl__JpNUeMEdkvoA.jpeg" /></figure><p>— npm install phaser(check out the lastest version <a href="https://phaser.io/download/stable">https://phaser.io/download/stable</a>)</p><p>This is very simple and easy. However, I did not know what to do when I when looking at phaser3 instructions, it gives you so many options to choose from. I hope this will help anyone who would like to create a game and does not know where to begin.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa22e199467a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>