tag:blogger.com,1999:blog-61407241800128791032024-03-04T22:09:35.101-08:00Naive DevI am not Pro. Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.comBlogger23125tag:blogger.com,1999:blog-6140724180012879103.post-45459412565725089222016-11-17T09:26:00.002-08:002016-11-17T09:28:29.903-08:00A Beginner Guide To JsonResume <span style="font-family: "arial" , "helvetica" , sans-serif;">Hi, new post again. I am going to tech you how to use <b>jsonresume </b>and create your own dashing resume easily. </span><br />
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">If you search on google something like this "<i>online resume builder/maker, download resume template</i>" you get thousands of sites but most of them are not free. but jsonresume is <b>free </b>and <b>opensource</b>. you can easily create super cool resume just in a moment. So lets get started. </span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHYRpH77iTcoXtcfFUY_cNnCJlyn0D0zVznvKSoPERhQ-1zUfN6cZG7a0xC5IWX1jHNykEeeK7HwUOv-xgEqwiZ8zVnCx3mWoFWZVBxh3-7uuZ4dmICkE8y6ugBrGWFUvvjAD9pfW1A_Y/s1600/how+to+use+json+resume.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHYRpH77iTcoXtcfFUY_cNnCJlyn0D0zVznvKSoPERhQ-1zUfN6cZG7a0xC5IWX1jHNykEeeK7HwUOv-xgEqwiZ8zVnCx3mWoFWZVBxh3-7uuZ4dmICkE8y6ugBrGWFUvvjAD9pfW1A_Y/s1600/how+to+use+json+resume.PNG" /></a></div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><b>step - 01 </b>: you need to install git on your machine follow this <a href="https://git-scm.com/downloads" rel="nofollow" target="_blank"><b>site </b></a>and download and install git.</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><b>step - 02</b> : Now you need to install <i>nodejs </i>on your machine. here is the <a href="https://nodejs.org/en/download/" rel="nofollow" target="_blank">official site</a> download and install <i>nodejs</i>. Now you are ready to get started json resume.lets check that everything is working fine. open the command prompt or terminal <i style="font-weight: bold;">npm -v </i>you will the current version number mine is 3.10.8. If you did not see this then reinstall the nodejs.</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><b>step - 03</b>: Here is the official site (<a href="https://jsonresume.org/">https://jsonresume.org/</a></span><span style="font-family: "arial" , "helvetica" , sans-serif;">) jsonresume. To install jsonresume open your terminal and write the following code </span><span style="font-family: "courier new" , "courier" , monospace;"><span style="font-family: "arial" , "helvetica" , sans-serif;"> </span><span style="font-family: "arial" , "helvetica" , sans-serif;"><b><i>npm install -g resume-cli</i></b></span></span><span style="font-family: "arial" , "helvetica" , sans-serif;"><b><i> </i></b> now we are completely ready to create our first resume. </span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><b><br /></b></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><b>step - 04</b> : <i style="font-weight: bold;">resume init </i>write the code in terminal you should ask for your name and email give them properly. Browse the directory (in windows it should be "<i>C:\Users\YourName\node_modules</i>") there you will find a resume.json file open the file in any editor and edit the field those field are pretty self explanatory. when your are done </span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">write the following command resume serve to see your resume live in browser.</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span>
<span style="font-family: "arial" , "helvetica" , sans-serif;">you should see the basic flat theme but don't worry there are so many elegant themes are available. <a href="http://node-modules.com/search?q=jsonresume-theme-*" rel="nofollow" target="_blank"><b><i>Here is the list of them</i></b><i> </i></a> you have to install them into your directory. forget to mention you can export your theme as pdf format by this command <i style="font-weight: bold;">resume export </i>.</span><br />
<br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">Feel free comment if you have any error.</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">follow me on twitter <b>@shohan4556</b></span></div>
Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com2tag:blogger.com,1999:blog-6140724180012879103.post-72705394114732502752016-09-28T09:57:00.000-07:002016-11-25T10:35:05.524-08:00Captain Bland's Space Adventure <span style="font-family: "verdana" , sans-serif;">Hi, after finishing the "<b>Complete Unity Developer</b>" Course at Udemy I feel like I have a good foundation on Unity. So that I want to go for long run, this is the game I am currently working on "<b>Captain Bland's Space Adventure</b>". A cute pixel art space adventure game.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Please like the <b><a href="https://www.facebook.com/gamecbsa/" target="_blank">Facebook</a> </b>page.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><i>**The <b>Presskit </b>of the game is <b><a href="https://shohan4556.github.io/captainbland/presskit.html" target="_blank">here</a>.</b></i></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<br />
<br />
<br />
<a href="http://imgur.com/XWRPs8o"><img src="https://i.imgur.com/XWRPs8o.gif" title="source: imgur.com" /></a>
<br />
<br />
<a href="http://imgur.com/XWRPs8o"><img src="https://i.imgur.com/p7hbwJj.gif" title="source: imgur.com" /></a>Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-83801249418667474722016-09-10T11:27:00.000-07:002016-09-10T11:27:13.988-07:00My First Unity Game or Crap on Play Store !<iframe frameborder="0" height="167" src="https://itch.io/embed/84786?bg_color=ffffff" width="552"></iframe>Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-72609902485718524742016-06-15T05:00:00.000-07:002016-06-15T05:16:28.510-07:00Phaser Experiment - Making a Health Bar With PhaserJs<span style="font-family: "verdana" , sans-serif;">Hi everybody, Today I made a simple Healthbar with PhaserJs . Its required little bit tuning though but I think this example can help you to understand the basic idea of implementing health bar.</span><br />
<span style="font-family: "verdana" , sans-serif;">You can use <b>"Linear Interpolation"</b> or <b>"Linear Tween"</b> to make this Bar smooth.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<iframe width="100%" height="300" src="//jsfiddle.net/shohan4556/dae69fkb/embedded/js,html,css,result/dark/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com1tag:blogger.com,1999:blog-6140724180012879103.post-30844017062886594872016-04-22T10:04:00.001-07:002016-04-22T10:04:21.674-07:00Top 5 Bracket Extension I used All The Times <span style="font-family: Verdana, sans-serif;">Hi guys, this post I will talk about top 5 Bracket extension that you should use to be more productive. </span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>1. Beautify : </b>This is the extension I install at first after installing Bracket. This extension will help you to beautify your code just press <b>ctrl+shift+L.</b></span><br />
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span>
<span style="font-family: Verdana, sans-serif;"><b>2. Tabs-Cutome-Working : </b>This is one of handy extension this extension helps you to move one file to another using keyboard to use this extension press <b>ctrl+tab.</b></span><br />
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuoS4uGUwjT6Gx6IgVX3LCjNuGOVxG1yRWVs7lEfjGjwa2U0eOZrBmkeHvfD4oFd6WFgwOM3fuRR3cYAKDIoDiw-999h9TYNPGB5yIMFucbrjds5f2gjfkBDEPysiTGYSt2fk5F4gu3Jw/s1600/e1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="tabs" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuoS4uGUwjT6Gx6IgVX3LCjNuGOVxG1yRWVs7lEfjGjwa2U0eOZrBmkeHvfD4oFd6WFgwOM3fuRR3cYAKDIoDiw-999h9TYNPGB5yIMFucbrjds5f2gjfkBDEPysiTGYSt2fk5F4gu3Jw/s1600/e1.PNG" title="tabs" /></a></div>
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span>
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span>
<span style="font-family: Verdana, sans-serif;"><b>3. Phaser-Chain : </b>If your are a PhaserJs developer then this extension will be your best friend to use this extension press <b>ctrl+i.</b></span><br />
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-WDyb_uZi-WgyCob16uyl0yjNKm_KeG43s0zr1IyT_BWqJYL14ZSxRyPNwNndkBd-xgCA7q4C-GsvF17fGUO3sLzLG24GS28IzLwbQngWy_Umow9YmNTBPQj-PQXDhEQTRj_dpY6pW_E/s1600/e2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Phaser chain " border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-WDyb_uZi-WgyCob16uyl0yjNKm_KeG43s0zr1IyT_BWqJYL14ZSxRyPNwNndkBd-xgCA7q4C-GsvF17fGUO3sLzLG24GS28IzLwbQngWy_Umow9YmNTBPQj-PQXDhEQTRj_dpY6pW_E/s1600/e2.PNG" title="Phaser chain " /></a></div>
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span>
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span>
<span style="font-family: Verdana, sans-serif;"><b>4. Bracket-Icons : </b>This is extension is very beautiful, it creates files icons according to file types.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBkYFAQ7cbRgbhpufmZzB-tyIbUaEX9Q4LZbxnsuy3rf03GvfVPlwT0390ReZzwXy9Km65EFy-YJvYg0v8WVL5kBMuSLYS-hI1toKGedbM9otSTXRJ96DRRtcJkJWawyvfzMUyJkPza50/s1600/screenshot-2.png" imageanchor="1"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBkYFAQ7cbRgbhpufmZzB-tyIbUaEX9Q4LZbxnsuy3rf03GvfVPlwT0390ReZzwXy9Km65EFy-YJvYg0v8WVL5kBMuSLYS-hI1toKGedbM9otSTXRJ96DRRtcJkJWawyvfzMUyJkPza50/s640/screenshot-2.png" width="404" /></a></span><br />
<br />
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span>
<span style="font-family: Verdana, sans-serif;"><b>5. Todo : </b>I know you are commented your code so lets do it more effectively. To use this extension comment like this in your code : </span><br />
<span style="font-family: Verdana, sans-serif;">// todo : this is a comment.</span><br />
<span style="font-family: Verdana, sans-serif;">press <b>ctrl+atr+t </b>see the magic<b>.</b></span><br />
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span>
<br />
<span style="font-family: Verdana, sans-serif;"><b>** Themes : </b>Use a theme that is convenient to your eyes. I usually use new-one-dark, monaki, and bracket default dark theme. there are so many nice themes are available in Bracket repository choose yours.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">So this is the end of this post if you have any query feel free to post in comment.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-35934645338395539892016-03-22T09:48:00.002-07:002016-03-22T09:59:15.599-07:00Javascript Events By Example <div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhybo-cePi2_pOnMjM7vrRYsX2IoPFjlozdN81RvPPb_adDkMGPP4PiSzwhhTLzrdggQ4RgidNweYjlUW9axKQUHqyMoMkewaZ1vfy6oA9o77aOFyFG9aUFSqmmKyUnlCt7_7hXG7GQDv4/s1600/javasccript.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhybo-cePi2_pOnMjM7vrRYsX2IoPFjlozdN81RvPPb_adDkMGPP4PiSzwhhTLzrdggQ4RgidNweYjlUW9axKQUHqyMoMkewaZ1vfy6oA9o77aOFyFG9aUFSqmmKyUnlCt7_7hXG7GQDv4/s640/javasccript.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<span style="font-family: "verdana" , sans-serif;">Hello everybody, today I will show you three types of javascript events.</span><br />
<u><span style="font-family: "verdana" , sans-serif;"><br /></span>
</u><span style="font-family: "verdana" , sans-serif;"><u>Type 01 :</u> In this type event you can add event in html tag, this is bad practice.</span><br />
<u><span style="font-family: "verdana" , sans-serif;"><br /></span>
</u><span style="font-family: "verdana" , sans-serif;"><u>Type 02 :</u> This type of event is very handy. you grub the element by id and attach event.</span><br />
<u><span style="font-family: "verdana" , sans-serif;"><br /></span>
</u><span style="font-family: "verdana" , sans-serif;"><u>Type 03 :</u> This is more advance type than Type 02, the advantage is you can add multiple events, create your own event and attach them in your code even non DOM elements.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Here is the simple example of these three types of events.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<iframe allowfullscreen="allowfullscreen" frameborder="0" height="300" src="//jsfiddle.net/shohan4556/gc6h1y8L/2/embedded/js,html,result/dark/" width="100%"></iframe>Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-54663957559343719162016-03-19T09:17:00.000-07:002016-03-19T09:26:12.038-07:00Fuzzle On Phaser Official Website !Hello guys, "<b>Fuzzle</b>" is now <b>Phaser</b> official website !, I am really happy to see this. Thanks <b>Richard</b> <b>Devey</b> for adding my game on the site(the author of Phaser).<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEl3AHGxLZPQN455IgxUN4LG3BMDll0tC_OfLSU_DoTd-E3VRzCORT06TEsheIyre18F88AU1zNngig8tvmvQhsHHfPghj8DGu6IMJ35S0SVO3x5Hm9NmsE9Nzs8SzV6IV91geb7oN87g/s1600/mockup.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Fuzzle" border="0" height="312" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEl3AHGxLZPQN455IgxUN4LG3BMDll0tC_OfLSU_DoTd-E3VRzCORT06TEsheIyre18F88AU1zNngig8tvmvQhsHHfPghj8DGu6IMJ35S0SVO3x5Hm9NmsE9Nzs8SzV6IV91geb7oN87g/s640/mockup.png" title="Fuzzle" width="640" /></a></div>
<br />
<br />
Here is the link.<br />
<a href="http://phaser.io/news/2016/03/fuzzle" rel="nofollow" target="_blank"><b>http://phaser.io/news/2016/03/fuzzle</b></a><br />
<br />
<br />Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-64357636613753779132016-03-17T12:14:00.000-07:002016-03-17T12:15:22.363-07:00My Favourite Pixel Art Tools !<span style="font-family: "verdana" , sans-serif;">I am not talking about Photoshop even Gimp, I am talking about the most user friendly, easy to use pixel art tool "<a href="http://www.piskelapp.com/" rel="nofollow" target="_blank"><b>Piskel</b></a>" and "<a href="http://www.aseprite.org/" rel="nofollow" target="_blank"><b>Aseprite</b></a>". I used both tools. Booth are very much attractive almost all the features you need to draw nice pixel art.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b><i><u>Piskel :</u></i></b></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1m7OF53fPWvhMz4CSlZbtOSM5U-wcH1Eh2M3NndpKPBNN1vsRrSsdYM1W9EcbjNt12r84W1Mm4Fxoctz6d-z6yVtNBTsaWPKNem1xbr80xYoanJjAblpRV-SdFQJtbi-PDR5lHjhxWik/s1600/piskel.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="piskel" border="0" height="340" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1m7OF53fPWvhMz4CSlZbtOSM5U-wcH1Eh2M3NndpKPBNN1vsRrSsdYM1W9EcbjNt12r84W1Mm4Fxoctz6d-z6yVtNBTsaWPKNem1xbr80xYoanJjAblpRV-SdFQJtbi-PDR5lHjhxWik/s640/piskel.PNG" title="piskel" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Piskel GUI</td></tr>
</tbody></table>
<span style="font-family: "verdana" , sans-serif;">This is what I just drew with piskel editor, it has offline and online version.</span><br />
<span style="font-family: "verdana" , sans-serif;">you can also create animation sprite with this nice tool.</span><br />
<span style="font-family: "verdana" , sans-serif;">very easy to use.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">When you are drawing pixel art then keyborad shortcut is very helpful, you can get all the shortcut here easily.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmKJTcdX5fJ5v4KaI_xoLIblHNhFETYKbVE73cxvGX-b9shf9laQSjTHZsQaMD-IoX2kfje0Rma4hrpB0YDJFtdcsJ4tQxC1boQa_uCJ1Hl5YNLVh7QObhI8vcwHOvYQWBYc8-sf1xuB0/s1600/piskel+2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmKJTcdX5fJ5v4KaI_xoLIblHNhFETYKbVE73cxvGX-b9shf9laQSjTHZsQaMD-IoX2kfje0Rma4hrpB0YDJFtdcsJ4tQxC1boQa_uCJ1Hl5YNLVh7QObhI8vcwHOvYQWBYc8-sf1xuB0/s320/piskel+2.PNG" width="112" /></a></div>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Piskel is not so hard to use just get your hands on it, I hope you will never be disappointed.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">I hope I will post some pixel art drawing tips later on, time is a matter :).</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-68551058550645977622016-03-12T04:15:00.001-08:002016-03-12T04:18:53.773-08:00Fuzzle - Now Play Store !<iframe frameborder="0" height="167" src="https://itch.io/embed/57385?dark=true" width="650"></iframe>Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-44878882175076353262016-01-27T22:39:00.001-08:002016-01-27T22:39:48.706-08:00How to install intel xdk on Ubuntu<iframe allowfullscreen="" frameborder="0" height="600" src="https://www.youtube.com/embed/HcPk8Ae4MlY" width="800"></iframe>Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-63202740879269819842016-01-05T06:48:00.000-08:002016-01-05T06:48:13.156-08:00How to install Monodevelop 5 on Ubuntu 14.04<span style="font-family: Verdana, sans-serif;">Monodevelop is available in software center on Ubuntu 14.04 but its too old. So I am gonna show you how to download the latest version of monodevelop (5.x) on Ubuntu 14.04. lets follow me.</span><br />
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;">Open Terminal, the paste the below commands, </span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<div>
<span style="font-family: Verdana, sans-serif;"><i><b>sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF</b></i></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><i><b><br /></b></i></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><i><b>echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list</b></i></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><i><b><br /></b></i></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><i><b>sudo apt-get update</b></i></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><i><b><br /></b></i></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><i><b>sudo apt-get install monodevelop</b></i></span></div>
</div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;">And you are done !.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-67481457370919687702015-12-14T22:39:00.002-08:002015-12-14T22:43:29.373-08:00How to install Apache server on Ubuntu 15.04Hello, everybody today I am gonna show the procedure to install apache server on ubuntu 15.04.<br />
so lets get started.<br />
<br />
<b><i>step - o1</i></b>:<br />
<br />
Open terminal and type <i><b>sudo apt-get install apache2 </b></i><br />
<i><b><br /></b></i>
<i><b>step - 02:</b></i><br />
<i><b><br /></b></i>
after completing installation type <i style="font-weight: bold;">sudo /etc/init.d/apache2 start </i>for start server.<br />
Here is some useful apache command<br />
<br />
<b><i>sudo /etc/init.d/apache2 start #start apache</i></b><br />
<b><i>sudo /etc/init.d/apache2 stop #stop apache</i></b><br />
<b><i>sudo /etc/init.d/apache2 restart #restart apache</i></b><br />
<b><i><br /></i></b>
<b><i># prevent auto-start when booting up</i></b><br />
<b><i>sudo update-rc.d -f apache2 remove</i></b><br />
<div>
<br /></div>
<div>
<br /></div>
<div>
<b><i>step - 03:</i></b></div>
<div>
<b><i><br /></i></b></div>
<div>
Open your browser and type <b>localhost </b>then you should see a page like this.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkpEtP7xg8ZhZYx6u96u-tgvBk0tclt3Fwu-xVNNdoKCOxEGVNxmT0jqMwsgEyIxh9eH6DXcbZ6XWT-_FFUDv7POFGh9xre2llbmT0rIxfPSvYGa5Idt5DCIEr9JfgnD0qi0vyeV1kW9o/s1600/apache-snap.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="257" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkpEtP7xg8ZhZYx6u96u-tgvBk0tclt3Fwu-xVNNdoKCOxEGVNxmT0jqMwsgEyIxh9eH6DXcbZ6XWT-_FFUDv7POFGh9xre2llbmT0rIxfPSvYGa5Idt5DCIEr9JfgnD0qi0vyeV1kW9o/s320/apache-snap.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
the default server directory is <i style="font-weight: bold;">/var/www/html </i>inside this folder you can place you html files, But if you want to change the default root directory then follow few more steps with me.</div>
<div>
<b><br /></b></div>
<div>
<b>step - Changing default root directory :</b></div>
<div>
<b><br /></b></div>
<div>
open a new terminal and paste this <b><i>sudo gedit </i></b><i><b>/etc/apache2/sites-available/000-default.conf </b></i>then it open a file in gedit find the line <b>DocumentRoot /var/www/html </b>and replace it with <b>DocumentRoot /home/your_username/public_html </b>here <b>/.../public_html</b> is custom folder directory you are free to give any directory but at first make sure you created the directory before doing this.<b> </b></div>
<div>
<b><br /></b></div>
<div>
here is my <b>public_html </b>tree.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwFO7Y5LdsXN9MHSApYxXvzw1HZkHZ9vuagoNOgzHZFV41LaaVwi8i0oY2kq_aBCIAZeXh0GkLlJ2HWVtDmZFtSNMCV8QAHo-F2HCeLi5EsEYCsTjc2ijAfR4mDaZne0ykW85clgiBKlo/s1600/tree.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="355" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwFO7Y5LdsXN9MHSApYxXvzw1HZkHZ9vuagoNOgzHZFV41LaaVwi8i0oY2kq_aBCIAZeXh0GkLlJ2HWVtDmZFtSNMCV8QAHo-F2HCeLi5EsEYCsTjc2ijAfR4mDaZne0ykW85clgiBKlo/s640/tree.png" width="640" /></a></div>
<div>
<br /></div>
<div>
<b>and your are done </b>! open browser and type your file url (use your own) <b>http://localhost/jolly-jumper/index.html </b>then you should see the result.</div>
<div>
<br /></div>
<div>
Thanks,hope I helped you someway, feel free to comments.</div>
<div>
</div>
Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-27391322455166267682015-12-09T04:03:00.001-08:002016-03-12T04:19:07.105-08:00Jolly Jumper <iframe allowfullscreen="allowfullscreen" frameborder="0" height="180" scrolling="no" src="https://itch.io/embed/45414?dark=true&linkback=true" width="552"></iframe>
<br />
<div style="background-color: white; color: #222222; font-size: 13px; line-height: 1.4;">
<br /></div>
<div style="background-color: white; color: #222222; font-size: 13px; line-height: 1.4;">
<div style="font-family: sans-serif; line-height: 1.4;">
<b>Jolly Jumper (version - 1.0.0)</b> is infinite jumping style game, highly inspired by Doodle jump.</div>
<div style="font-family: sans-serif; line-height: 1.4;">
This game is made in <b>Phaserjs</b> and it also open-sourced you can fork it here<b> <a href="https://github.com/shohan4556/jolly-jumper" rel="nofollow" style="color: #fa5c5c;" target="_blank">j</a><a href="https://github.com/shohan4556/jolly-jumper" rel="nofollow" style="color: #fa5c5c;" target="_blank">olly-jumper</a>. </b></div>
<div style="font-family: sans-serif; line-height: 1.4;">
Supported Browser<b> - Opera 33.0, Chrome - Version 47.0.2526.73, Firefox Version - 40.0.2.</b></div>
<div style="font-family: sans-serif; line-height: 1.4;">
Its my very first approach to be an indie game developer, hope you enjoyed this game.</div>
</div>
<div style="background-color: white; color: #222222; font-size: 13px; line-height: 1.4;">
<br /></div>
Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-76868400493536465802015-11-14T19:26:00.000-08:002016-02-04T06:11:16.010-08:00ACM-ICPC Dhaka - 2015 Onsite Contest <div class="separator" style="clear: both; text-align: center;">
</div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhES4HrIgNtWY9Q9YDucq4NkFVYOXj4ytMBGX-UUYuzaKcaZMLvP4GO78lEt-XsoHUbEyxN5njPquTulyw8xszuol1A4zPOIiUF_-Liluu77yovgNJr_TbmfFqBrnsZEnGVyjFiICDx7qg/s1600/acm2015+-+01.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhES4HrIgNtWY9Q9YDucq4NkFVYOXj4ytMBGX-UUYuzaKcaZMLvP4GO78lEt-XsoHUbEyxN5njPquTulyw8xszuol1A4zPOIiUF_-Liluu77yovgNJr_TbmfFqBrnsZEnGVyjFiICDx7qg/s1600/acm2015+-+01.jpg" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">With Coach and Team Members</td></tr>
</tbody></table>
<div style="text-indent: 2px;">
<span style="font-family: "verdana" , sans-serif;">We have successfully participated ACM-ICPC contest though it was our first contest we have solved two problems. it was a great event for me I will never forget it. our team formation was, coach <span style="background-color: white; color: #141823; font-family: "helvetica" , "arial" , sans-serif; font-size: 14px; line-height: 18.6px; text-indent: 2px; white-space: nowrap;"><b>Md Safaet Hossain </b>other team members are <b>Reduan Rafi,</b> <b>Rayhan Shihab</b> and <b>me</b>. So its just a </span></span></div>
<div style="text-indent: 2px;">
<span style="color: #141823; font-family: "helvetica" , "arial" , sans-serif;"><span style="font-family: "verdana" , sans-serif; font-size: 14px; line-height: 18.6px; white-space: nowrap;">beginning we are getting prepare for the next SUST contest.</span></span></div>
<br />
<br />
<br />Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-24556179464567213372015-11-07T19:00:00.000-08:002015-11-07T19:05:18.164-08:00Java - BigInteger a Quick Tutorial<iframe height="480" src="https://drive.google.com/file/d/0B8pkprhBoZajeUp6MVhtNjRBaUU/preview" width="800"></iframe>Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-17469865856409206352015-11-04T08:08:00.000-08:002015-11-04T08:09:56.254-08:00How To Integrate Github with NetBeans.<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/AiZjErv2R4s/0.jpg" frameborder="0" height="400" src="https://www.youtube.com/embed/AiZjErv2R4s?feature=player_embedded" width="600"></iframe></div>
<br />Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com2tag:blogger.com,1999:blog-6140724180012879103.post-21544601371494645992015-11-01T05:27:00.002-08:002016-02-04T06:11:16.007-08:00Participating My First ACM-ICPC Onsite Contest !! At last my dream comes true :),when I got started programming I have always dream to at least one time I have to participate ACM contest, so its really a memorable day in my life. My team <b>(CU_Dot ZeRo</b>) solved 3 problem in preliminary contest and we are going to participate the onsite contest, we hope we do better.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd_d30bJqiX6EYoM8ciGmalLJvfWp0fzCmelr2HcjECCcfBPodmSOyHYnlIeaC5AcmOd0076KC3A7vCvaiidxGJzf-4SdjGG0yZKmX21fx5oAfrbqu37ajLzpVX-b1XYjSKR-GNcpsB5A/s1600/11222536_10206495400561431_1147126699649359073_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd_d30bJqiX6EYoM8ciGmalLJvfWp0fzCmelr2HcjECCcfBPodmSOyHYnlIeaC5AcmOd0076KC3A7vCvaiidxGJzf-4SdjGG0yZKmX21fx5oAfrbqu37ajLzpVX-b1XYjSKR-GNcpsB5A/s1600/11222536_10206495400561431_1147126699649359073_n.jpg" /></a></div>
<br />Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-10955979041428253312015-10-02T23:09:00.002-07:002015-10-02T23:09:58.010-07:00Space JamI have made a game named '<b>Space Jam' </b>with Phaser. Play the game Here <a href="http://shohan4556.github.io/Space-Jam/" rel="nofollow" target="_blank"><b>Play</b></a>
Here is some snap shot of the game,
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh59oKsrPfO0a2kdQ1zhViTYDoiV8LGMj9v0Ivv0bMdo4MlVNonfNMy2MuGYveorhDUZNRfNzCA86BkRf10ZkpaXrbCibhkDC3qAYMvUgXrDgBD7E0BOpwmk-qXL8CKvkhnGhiqFN23Jknf/s1600/space+jam+-+title.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh59oKsrPfO0a2kdQ1zhViTYDoiV8LGMj9v0Ivv0bMdo4MlVNonfNMy2MuGYveorhDUZNRfNzCA86BkRf10ZkpaXrbCibhkDC3qAYMvUgXrDgBD7E0BOpwmk-qXL8CKvkhnGhiqFN23Jknf/s400/space+jam+-+title.png" width="243" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKgHYMzVHIq2Bqik1xCoemzb94JcnicUPW16swlr4NXVVqg36Tpat84fJTnXxD0rIRo8R1C2Y70rcNtfWnhYJB4Yo_aQblgfZVqCG3UYsyWz70qKI6OyDI1TUlXEAuDdhQc8ksSxICpcqd/s1600/space+jam+-+game.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKgHYMzVHIq2Bqik1xCoemzb94JcnicUPW16swlr4NXVVqg36Tpat84fJTnXxD0rIRo8R1C2Y70rcNtfWnhYJB4Yo_aQblgfZVqCG3UYsyWz70qKI6OyDI1TUlXEAuDdhQc8ksSxICpcqd/s400/space+jam+-+game.png" width="250" /></a></div>
you can found the github repository here -<b> <a href="https://github.com/shohan4556/Space-Jam" rel="nofollow" target="_blank">https://github.com/shohan4556/Space-Jam</a></b>
Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-66248329664166532162015-10-02T23:08:00.003-07:002016-06-15T05:09:55.953-07:00Phaser Experiment - 01<iframe allowfullscreen="allowfullscreen" frameborder="0" height="500" src="//jsfiddle.net/shohan4556/moLr0kaf/3/embedded/" width="100%"></iframe>Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-19787853933982449062015-10-02T23:08:00.000-07:002015-10-02T23:08:11.998-07:00Phaser Game Template<div class="repository-description" style="background-color: white; box-sizing: border-box; color: #666666; display: inline; font-family: Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px; line-height: 22.4px; word-wrap: break-word;">
Phaser game development template - boost up your dev !! </div>
<div>
<div class="repository-description" style="background-color: white; box-sizing: border-box; color: #666666; display: inline; font-family: Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px; line-height: 22.4px; word-wrap: break-word;">
<br /></div>
</div>
<br />
<div>
</div>
<br />
<div style="-webkit-text-stroke-width: 0px; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div class="repository-description" style="background-color: white; box-sizing: border-box; color: #666666; display: inline; font-family: Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px; line-height: 22.4px; word-wrap: break-word;">
<div style="margin: 0px;">
Download from gihub -- <a href="https://github.com/shohan4556/Phaser-Game-Dev-Template" target="_blank">Phaser-Game-Dev-Template</a></div>
</div>
</div>
Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-86409985030330998342015-10-02T23:07:00.000-07:002016-02-12T20:02:37.739-08:00Basic Math for Game Developers- (How to find the nearest object to point) -- Part 01<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;">Hello devs today I going to explain some very basic math for game developers. So lets get started at first we view a very basic game scenario .<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-Fz5O7dNJnPyBKyzV2AAXRR1EX5-pJ5zALTyAp80b8o0ugfG0osAkkI8BNUywXFSpQ1xGBwoZhGjMx7gOu7e5Zv_TuGqPXeaQKiwSAIwH85fjDROR9rDhtqpqQhGYEo4_CQ6HEpXSWCeR/s1600/scenario1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: "verdana" , sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-Fz5O7dNJnPyBKyzV2AAXRR1EX5-pJ5zALTyAp80b8o0ugfG0osAkkI8BNUywXFSpQ1xGBwoZhGjMx7gOu7e5Zv_TuGqPXeaQKiwSAIwH85fjDROR9rDhtqpqQhGYEo4_CQ6HEpXSWCeR/s1600/scenario1.png" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: 12pt; line-height: 18.3999996185303px;">Here is a player <b>P</b> and enemy <b>e1 </b>and <b>e2 </b>we have to determine the which enemy is </span><span style="font-size: 12pt; line-height: 18.3999996185303px;">closer to the player respect to the origin <b>x </b>and <b>y</b>. So that we have to do some basic math and it’s the famous <b>Pythagorean </b>formula,<i> a quick review - <u>The sum of the areas of the two squares on the legs (a and b) equals the area of the square on the hypotenuse (c). </u></i></span><i><u><span style="font-size: 12pt; line-height: 18.3999996185303px;"> </span><span style="font-size: 12pt; line-height: 18.3999996185303px;">a^2+b^2 = c^2.</span></u></i></span><br />
<span style="font-family: "verdana" , sans-serif;"><i><u><span style="font-size: 12pt; line-height: 18.3999996185303px;"><br /></span></u></i>
</span><br />
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;">So what we have we the coordinates of <b>e1</b>(x,y) and <b>e2</b>(x,y), we draw triangle with these coordinates respect to the player like this.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCowwX7Zq3K1CgJU66xGMDQ2C4X-6UJ-42RR4V9yPxf-p024F06o-s7lbTXoNlN4wcK6zv1wYUv0wdgY20msgUlu3l1o1uNiGaOrd6ebqkCSs_DrfLcvZcFvZbjvhA8p6qKTe3nS_vMpNh/s1600/scenario2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: "verdana" , sans-serif;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCowwX7Zq3K1CgJU66xGMDQ2C4X-6UJ-42RR4V9yPxf-p024F06o-s7lbTXoNlN4wcK6zv1wYUv0wdgY20msgUlu3l1o1uNiGaOrd6ebqkCSs_DrfLcvZcFvZbjvhA8p6qKTe3nS_vMpNh/s1600/scenario2.png" /></span></a></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;">We have to find out the <b>hypotenuse </b>(? marked) assume that the hypotenuse for <b>e2 </b>is <b>H1 </b>and for <b>e2</b> is <b>H2</b>. Now according to the Pythagorean formula,<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><i>H1^2 = x1^2 + y1^2 ;<o:p></o:p></i></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><i>H1 = sqrt (x1^2 + y1^2 );<o:p></o:p></i></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><i>And , H2 = sqrt (x2^2 + y2^2 );</i><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;">Lest have some simple calculation assume that x1=4, y1=5 and x2=3, y2=4.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;">So <b>H1 </b>= sqrt(41) = 6 (absolute value) and <b>H2 </b>= sqrt(25) = 5.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;">So now we know that <b>H2<H1</b> that means <b>e2</b>(enemy2) is closer to the player.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;">But there is a performance issue if you noticed the calculation above, we have sqrt() twice the values. The sqrt() is very expensive operation just think a game scenario we have players and enemies, they are moving and in our update() function calculating sqrt continuously and as a result our game will be slowing down.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;">But you can easily efficient the calculation ,<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><i>H1^2 = x1^2 + y1^2 ;<o:p></o:p></i></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><i>H2^2 = x2^2 + y2^2 ;</i><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;">Forget about the sqrt we just do the following way,<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><i>x1^2 + y1^2 = 41<o:p></o:p></i></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;"><i>x2^2 + y2^2 = 25</i><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 18.3999996185303px;">at this moment 25<41,now we have our desired enemy and that’s it.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div class="MsoNormal" style="color: black; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<div style="margin: 0px;">
<span style="font-family: "verdana" , sans-serif; font-size: 12pt; line-height: 115%;">Thanks for reading.</span></div>
</div>
Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-62306429893374808532015-09-30T21:17:00.003-07:002015-09-30T21:20:57.206-07:00Colorful Blob Pack<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqD065EF7-_AKAw6c3vEACLK9iB3hvaXnbTBGWDpU5p6Nf6-swDK8K-t3zxugbKjsy-IAQElPN_RI4WchggpkyYXP_qSzWiFnxgUzGcTgx0iZeSPgInQ-ZC-sKjdcuV144RRX4lFCHBQg/s1600/blob-cover.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="426" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqD065EF7-_AKAw6c3vEACLK9iB3hvaXnbTBGWDpU5p6Nf6-swDK8K-t3zxugbKjsy-IAQElPN_RI4WchggpkyYXP_qSzWiFnxgUzGcTgx0iZeSPgInQ-ZC-sKjdcuV144RRX4lFCHBQg/s640/blob-cover.png" width="640" /></a></div>
<a href="http://opengameart.org/content/colorful-blob-pack" target="_blank"><span style="font-family: Verdana, sans-serif; font-size: large;"><b>Download</b></span></a>Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0tag:blogger.com,1999:blog-6140724180012879103.post-27511767584453566672015-09-30T21:15:00.001-07:002015-09-30T21:15:48.576-07:00Vector Battle Sword <div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIRAXRWe1M4L8KF0Elh8HTblEZU9zKXhZCKwS-KGHj1lQpde8wfRROY_mb4jEAtrL8QjqBmd8nNkD1nFdRYmZiN1bs951L_yCJHHQFrOWzz7RSF3fU6ORaxvFGBdN1vS41_jCUpcD5JXY/s1600/vector-sword.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="vector sword" border="0" height="364" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIRAXRWe1M4L8KF0Elh8HTblEZU9zKXhZCKwS-KGHj1lQpde8wfRROY_mb4jEAtrL8QjqBmd8nNkD1nFdRYmZiN1bs951L_yCJHHQFrOWzz7RSF3fU6ORaxvFGBdN1vS41_jCUpcD5JXY/s640/vector-sword.png" title="vector sword" width="640" /></a></div>
<br />
<a href="http://opengameart.org/content/battle-sword" target="_blank"><b><span style="font-family: Verdana, sans-serif; font-size: large;">Download</span></b></a>Shohanur Rahamanhttp://www.blogger.com/profile/00433087495435788347noreply@blogger.com0