<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>JavaScript on fotino.me</title>
    <link>https://fotino.me/tags/javascript/</link>
    <description>Recent content in JavaScript on fotino.me</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 07 Jul 2016 05:21:32 +0000</lastBuildDate>
    <atom:link href="https://fotino.me/tags/javascript/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Some Simple JavaScript Art</title>
      <link>https://fotino.me/js-art-1/</link>
      <pubDate>Thu, 07 Jul 2016 05:21:32 +0000</pubDate>
      <guid>https://fotino.me/js-art-1/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve been seeing this sort of art everywhere, with moving points connected by lines that are more solid the closer the points are to each other. It&amp;rsquo;s fun to watch and seemed like a simple effect to replicate, so here is my take on it.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Click on the animations below to show them individually. If you are on a phone the animations will probably lag when they are all running on this one page.&lt;/em&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Spaceship.codes - A Game for Programmers</title>
      <link>https://fotino.me/intro-to-space-ai/</link>
      <pubDate>Sat, 02 Apr 2016 22:01:26 +0000</pubDate>
      <guid>https://fotino.me/intro-to-space-ai/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;//github.com/rfotino/space-ai&#34;&gt;Source code (MIT License)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After a few months of development, I&amp;rsquo;m proud to announce the first release of &lt;a href=&#34;//fotino.me/static/spaceship.codes&#34;&gt;spaceship.codes&lt;/a&gt;! Spaceship.codes is a browser game for programmers, with a built in code editor that the player uses to write JavaScript to control their spaceship. I will illustrate this with a simple example; it might be helpful to open spaceship.codes in a new tab so that you can follow along.&lt;/p&gt;
&lt;p&gt;First we need to load a level. We can do this by clicking the &amp;ldquo;Select Level&amp;rdquo; button, then clicking the first level (named &amp;ldquo;Thrust&amp;rdquo;), and finally clicking the &amp;ldquo;Load&amp;rdquo; button. After the level is loaded, you should see something like the following:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Planetary - Circular Platformer Concept</title>
      <link>https://fotino.me/circular-platformer-concept/</link>
      <pubDate>Wed, 08 Jul 2015 23:18:35 +0000</pubDate>
      <guid>https://fotino.me/circular-platformer-concept/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;#demo&#34;&gt;Skip to playing the game!&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In &lt;a href=&#34;https://fotino.me/snake-in-javascript&#34;&gt;my last post&lt;/a&gt;, I dipped my toes in the water with the &lt;a href=&#34;https://phaser.io&#34;&gt;Phaser game engine&lt;/a&gt; by making a simple game of Snake. I enjoyed using Phaser and decided to further test its capabilities by making something more complex. I&amp;rsquo;ve always wanted to make a side-scrolling shooter, but developing the storyline, levels, and graphics to do it right isn&amp;rsquo;t something I have time for right now. So I thought, what if I cut corners and just made the level a loop, so you can play infinitely? That gave me the idea for a circular platformer, where you run around the surface of a planet and have to defend against waves of enemies. I&amp;rsquo;m sure it has been done before, but it seemed interesting enough to start working on. You can see the project &lt;a href=&#34;https://github.com/rfotino/planetary&#34;&gt;on Github&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Snake in JavaScript with the Phaser Game Engine</title>
      <link>https://fotino.me/snake-in-javascript/</link>
      <pubDate>Sat, 27 Jun 2015 23:36:00 +0000</pubDate>
      <guid>https://fotino.me/snake-in-javascript/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve been wanting to get back into game programming recently, so I decided to build the classic video game &lt;a href=&#34;https://en.wikipedia.org/wiki/Snake_(video_game)&#34;&gt;Snake&lt;/a&gt;. I chose Snake because it has simple mechanics and I had never programmed it before. As a web developer I know the browser can be a great platform to get up and running quickly, so I decided to make it in JavaScript. I hadn&amp;rsquo;t built a browser game since before the &lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt; tag became widely supported, but luckily GitHub has a handy list of &lt;a href=&#34;https://github.com/showcases/javascript-game-engines&#34;&gt;JavaScript game engines&lt;/a&gt;. I chose &lt;a href=&#34;https://phaser.io&#34;&gt;Phaser&lt;/a&gt; because it&amp;rsquo;s at the top of the list, and after looking through the documentation it looked like it would suit my purposes. You can &lt;a href=&#34;#play&#34;&gt;play the finished product here&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
