<?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: Eduardo Alvarez</title>
    <description>The latest articles on DEV Community by Eduardo Alvarez (@el_alien).</description>
    <link>https://dev.to/el_alien</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%2F271234%2F18fa4eec-4302-446e-97d5-c4c24a8b500a.jpg</url>
      <title>DEV Community: Eduardo Alvarez</title>
      <link>https://dev.to/el_alien</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/el_alien"/>
    <language>en</language>
    <item>
      <title>HTML 1: Introduction</title>
      <dc:creator>Eduardo Alvarez</dc:creator>
      <pubDate>Mon, 19 Oct 2020 18:31:09 +0000</pubDate>
      <link>https://dev.to/el_alien/html-1-introduction-4ja6</link>
      <guid>https://dev.to/el_alien/html-1-introduction-4ja6</guid>
      <description>&lt;p&gt;This is an example of the &lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt; tag&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/cassidoo/embed/MyaWzp?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>html</category>
    </item>
    <item>
      <title>Kieszeń first game lesson</title>
      <dc:creator>Eduardo Alvarez</dc:creator>
      <pubDate>Wed, 13 Nov 2019 17:54:31 +0000</pubDate>
      <link>https://dev.to/el_alien/kieszen-first-game-lesson-49k8</link>
      <guid>https://dev.to/el_alien/kieszen-first-game-lesson-49k8</guid>
      <description>&lt;p&gt;Disclaimer: All the credits for this post should go to Nick Morgan for creating this amazing MOS 6502 tutorial &lt;a href="https://skilldrick.github.io/easy6502/"&gt;Easy 6502 ebook&lt;/a&gt; I just adapted for my modified IDE that focus on 2d gaming.&lt;/p&gt;

&lt;h1&gt;
  
  
  What is Kieszeń
&lt;/h1&gt;

&lt;p&gt;Kieszeń is a startup idea about creating a portable game console where people can create games withouth previous experience. By using simple, constrained 2d games, so the limitations can bring creativity and problem solving, instead of relying on adding feature after feature hopping that some special effect or gimmick saves our gameplay.&lt;/p&gt;

&lt;h1&gt;
  
  
  Road to our first game
&lt;/h1&gt;

&lt;p&gt;So, let’s dive in! &lt;a href="https://create.kieszen.se"&gt;Click here to open Kieszeń Create&lt;/a&gt;, the webpage where you can make your own video games. Copy as paste the text below (don’t worry we will explain what it means)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;LDA #1
STA $512
LDA #16
STA $513
LDA #8 
STA $514
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Now press Play. Hopefully the screen area on the right now has Pac-man on the top left.&lt;/p&gt;

&lt;p&gt;So, what just happened? Let’s step through it by analyzing the text. First &lt;strong&gt;reload the page&lt;/strong&gt;, then press &lt;strong&gt;Analyze game&lt;/strong&gt; to show a panel with extra information. Press &lt;strong&gt;Next line&lt;/strong&gt; once. If you were watching carefully, you’ll have noticed that something called Accumulator changed from &lt;code&gt;#0&lt;/code&gt; to &lt;code&gt;#1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In Kieszeń Create, anything prefixed with &lt;code&gt;#&lt;/code&gt; is considered a number. Anything with &lt;code&gt;$&lt;/code&gt; refers to a memory location.&lt;/p&gt;

&lt;p&gt;Equipped with that knowledge, you should be able to see that the instruction &lt;code&gt;LDA #1&lt;/code&gt; loads the number 1 into the processor Accumulator. We will go into more detail on processor inner workings in upcoming lessons.&lt;/p&gt;

&lt;p&gt;Press Next line again to check the second instruction. The top-left part of the screen should now display the Pac-man character. Kieszeń uses the memory locations &lt;code&gt;$512&lt;/code&gt; to &lt;code&gt;$768&lt;/code&gt; to store, display and modify graphics on the screen. The values &lt;code&gt;#1&lt;/code&gt; to &lt;code&gt;#255&lt;/code&gt; represent the 255 different graphics that the console can remember at the same time (&lt;code&gt;#0&lt;/code&gt; means no character), so storing the value &lt;code&gt;#1&lt;/code&gt; at memory location &lt;code&gt;$512&lt;/code&gt; draws a game graphic at the top left corner.&lt;/p&gt;

&lt;p&gt;Finally, the instruction &lt;code&gt;STA $512&lt;/code&gt; stores the value of the Accumulator register to memory location &lt;code&gt;$512&lt;/code&gt;. Keep pressing Next line to check the rest of the instructions, keeping an eye on the Accumulator as it changes.&lt;/p&gt;

&lt;h1&gt;
  
  
  Exercises
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;By opening this &lt;a href="https://learn.kieszen.se/images/initial-spritesheet.png"&gt;image&lt;/a&gt;, try changing the graphics to one of your favorite game characters.&lt;/li&gt;
&lt;li&gt;Change the first character position to draw at the bottom-right corner. (memory location &lt;code&gt;$513&lt;/code&gt; and &lt;code&gt;$514&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Add more instructions to add more game characters (don’t forget to write the position of each character as well).&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>game</category>
      <category>assembly</category>
      <category>6502</category>
    </item>
  </channel>
</rss>
