<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5566769307601266131</id><updated>2024-10-25T04:54:40.630-07:00</updated><category term="Basic"/><category term="Games"/><category term="Pong"/><category term="Tutorial"/><title type='text'>Entropy in Design</title><subtitle type='html'>Chaos in design</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://entropyndesign.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5566769307601266131/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://entropyndesign.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Entropy</name><uri>http://www.blogger.com/profile/09648384931502648338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5566769307601266131.post-9100147583242800119</id><published>2010-10-12T04:32:00.000-07:00</published><updated>2010-10-12T04:32:01.936-07:00</updated><title type='text'>Pong pt 4 soon, a thanks for now</title><content type='html'>I just wanted to take a moment to thank all of you for the encouraging comments. My entire reason for creating this blog is to help people learn how to make there own games. I remember when I first started, not enough of the basic info was covered clearly. By the comments I have received, I see I am doing it right. Thanks for the support. You guys keep me motivated!</content><link rel='replies' type='application/atom+xml' href='http://entropyndesign.blogspot.com/feeds/9100147583242800119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://entropyndesign.blogspot.com/2010/10/pong-pt-4-soon-thanks-for-now.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5566769307601266131/posts/default/9100147583242800119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5566769307601266131/posts/default/9100147583242800119'/><link rel='alternate' type='text/html' href='http://entropyndesign.blogspot.com/2010/10/pong-pt-4-soon-thanks-for-now.html' title='Pong pt 4 soon, a thanks for now'/><author><name>Entropy</name><uri>http://www.blogger.com/profile/09648384931502648338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5566769307601266131.post-1556501988757660466</id><published>2010-10-11T06:51:00.000-07:00</published><updated>2010-10-11T07:40:43.891-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basic"/><category scheme="http://www.blogger.com/atom/ns#" term="Games"/><category scheme="http://www.blogger.com/atom/ns#" term="Pong"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><title type='text'>Ponged pt.3</title><content type='html'>The plan for today: We are going to create our ball, start the class for our game Engine.&lt;br /&gt;&lt;br /&gt;- Create a folder where you are going to keep your game, The .Fla file and all&amp;nbsp;your class files have to reside in that folder so the copiler can find them.&amp;nbsp;After we start our first class I will show you how to direct Flash to the&lt;br /&gt;folder you have choosen.&lt;br /&gt;&lt;br /&gt;- Now that you have your project folder, we are going to create our ball.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_EvAOnxP18qk/TLMQN1NF5dI/AAAAAAAAABo/0PxUB2fiwFY/s1600/OvalTool.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/_EvAOnxP18qk/TLMQN1NF5dI/AAAAAAAAABo/0PxUB2fiwFY/s1600/OvalTool.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;- Create a circle with a Width of 12 and a height of 12. Remember you can&amp;nbsp;create any circle and manually enter these numbers. Make the fill color white&amp;nbsp;and the outline color anything you think looks good. My settings (remember&amp;nbsp;position is irrelevant at the moment)&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_EvAOnxP18qk/TLMQeB6HCVI/AAAAAAAAABs/dvQf9ZkTIaY/s1600/BallSettings.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/_EvAOnxP18qk/TLMQeB6HCVI/AAAAAAAAABs/dvQf9ZkTIaY/s1600/BallSettings.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;- Now that we have created all the visual elements we need for our game, we&amp;nbsp;are going to start our first class! All actual code is going to be written in&amp;nbsp;courier font and be highlighted in grey as such:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;package {&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;import flash.display.*;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;public class Engine extends MovieClip {&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;public function Main() {&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;- As always all a copy of all files that we work on can be found at the end of&amp;nbsp;this post, but I highly recommend that you type them all out for yourself so&amp;nbsp;you understand them.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;- Lets start our code for our Engine.as class. If you remember from yesterday&amp;nbsp;this is our main class and the one that flash will load from when our game is&amp;nbsp;started. We want to start a new ActionScript file. Press (Ctrl+N) to bring up&amp;nbsp;the new file type menu and select ActionScript:&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_EvAOnxP18qk/TLMRdq8W8QI/AAAAAAAAABw/cSvXMdEgjVA/s1600/ActionScriptSelect.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/_EvAOnxP18qk/TLMRdq8W8QI/AAAAAAAAABw/cSvXMdEgjVA/s1600/ActionScriptSelect.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;- Once selected a new tab will open. This is where we write our ActionScript.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;package {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;import flash.display.*;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;public class Engine extends MovieClip {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;public function Main() {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;- The above is the bare minimum for our game class. Now to explain what our&amp;nbsp;code does:&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;package {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;This is where we tell Flash to look for all the associated classes. Right now&amp;nbsp;we have it blank, but if we were using a lot of classes for a really complex&amp;nbsp;game we would package them all together. an example of package reference:&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;package com.gaming.ponged {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Don&#39;t worry about what this means, for now the only thing you need to know is&amp;nbsp;that &lt;b&gt;ALL&lt;/b&gt; class files start with the word &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;package&lt;/span&gt;&lt;/span&gt; followed by an open&amp;nbsp;curly brace &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;our next line:&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;import flash.display.*;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Tells the compiler to &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&amp;nbsp;all the files in the flash.display class&amp;nbsp;group. These are part of the default classes that flash has available to use.&amp;nbsp;There are a bunch of pre-constructed classes we can import to increase&amp;nbsp;functionality of our projects. Again, don&#39;t let this overwhelm or scare you.&amp;nbsp;All you need to know is that&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&amp;nbsp;is a flash keyword telling the compiler&amp;nbsp;to include any listed classes in our file. All games will import&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;flash.display.*;&lt;/span&gt;&lt;/span&gt; it has to. The &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;;&lt;/span&gt;&lt;/span&gt; signifies the end of a single&amp;nbsp;instruction. Think of it like the period at the end of a sentence. It tells&amp;nbsp;the compiler to move on to the next instruction.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Our next line:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;public class Engine extends MovieClip {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;public - is a keyword telling the compiler that other classes can reference&amp;nbsp;variables and methods in this class. All main classes for our games have to be&amp;nbsp;public.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;class - another keyword. This indicates that the that everything between the&amp;nbsp;following {} braces is the actual code to execute.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Engine - is the name of our class.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;extends - is a keyword that means our class inherits all the code and&amp;nbsp;functionality of the class name that follows, in this case MovieClip.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;MovieClip - is the class that all main classes of our various games &lt;b&gt;HAVE&lt;/b&gt; to&amp;nbsp;extend.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;All games will have the following form for the document class constructor:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;public class &amp;lt;insert class name&amp;gt; extends MovieClip {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;our next line:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;public function Engine() {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Again we have the public keyword, we know this. Next:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;function - this keyword tells flash that everything between the next {} are&amp;nbsp;done together whenever the function is called. Don&#39;t worry to much about&amp;nbsp;calling a function right now. For now all you really need to now is that a&amp;nbsp;function is just a group of related instructions and or variables. It can be&amp;nbsp;anything you want to be done together. The next word is our function name&amp;nbsp;Engine(). The () always follows a function name. Don&#39;t worry about why at the&amp;nbsp;moment.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The reason the function name is Engine is cause this is the name of our class,&amp;nbsp;which is our main class. The class that is called by the compiler when our&amp;nbsp;game is run.&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;close our function, class and package in order. Every open brace { needs to be&amp;nbsp;closed by a }.&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;when finished it should look like:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLMVrevUY6I/AAAAAAAAAB0/_cLR2O4QsFE/s1600/Engine.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLMVrevUY6I/AAAAAAAAAB0/_cLR2O4QsFE/s1600/Engine.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;div&gt;The words in blue are ActionScript keywords and are automatically highlighted&amp;nbsp;in blue by the compiler.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Save your file as Engine. Make sure to save it in your PONGED folder. Now we&amp;nbsp;will tell the compiler where to find all our class files for this game. Click&amp;nbsp;on the PONGED tab beside your Engine tab. Now click on the [edit] button&amp;nbsp;beside profile:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLMV1dvsAOI/AAAAAAAAAB4/_g4WlOq32ww/s1600/ProfileEdit.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLMV1dvsAOI/AAAAAAAAAB4/_g4WlOq32ww/s1600/ProfileEdit.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then hit the [settings...] button:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_EvAOnxP18qk/TLMWA_zttAI/AAAAAAAAAB8/SCv8tC7gV8M/s1600/ScriptSettings.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/_EvAOnxP18qk/TLMWA_zttAI/AAAAAAAAAB8/SCv8tC7gV8M/s1600/ScriptSettings.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Then set you source path to the location of the folder you keep your game and&amp;nbsp;classes in.&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_EvAOnxP18qk/TLMWUZOnlaI/AAAAAAAAACA/KBZ7xpIT9n8/s1600/SourcePath.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/_EvAOnxP18qk/TLMWUZOnlaI/AAAAAAAAACA/KBZ7xpIT9n8/s1600/SourcePath.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;Perfect! We have created our first class file and pointed the compiler to our&amp;nbsp;project folder. Join me tomorrow and we will start filling in our classes.&amp;nbsp;Maybe make our ball bounce...&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://entropyndesign.blogspot.com/feeds/1556501988757660466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://entropyndesign.blogspot.com/2010/10/ponged-pt3.html#comment-form' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5566769307601266131/posts/default/1556501988757660466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5566769307601266131/posts/default/1556501988757660466'/><link rel='alternate' type='text/html' href='http://entropyndesign.blogspot.com/2010/10/ponged-pt3.html' title='Ponged pt.3'/><author><name>Entropy</name><uri>http://www.blogger.com/profile/09648384931502648338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_EvAOnxP18qk/TLMQN1NF5dI/AAAAAAAAABo/0PxUB2fiwFY/s72-c/OvalTool.jpg" height="72" width="72"/><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5566769307601266131.post-5180319431881937093</id><published>2010-10-10T03:30:00.000-07:00</published><updated>2010-10-11T07:40:43.950-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basic"/><category scheme="http://www.blogger.com/atom/ns#" term="Games"/><category scheme="http://www.blogger.com/atom/ns#" term="Pong"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><title type='text'>Ponged pt.2</title><content type='html'>Time to start.&lt;br /&gt;&lt;br /&gt;Today we are going to get our stage ( the background where the game takes place ) and our actors ( The paddles ) designed and ready to code.&lt;br /&gt;&lt;br /&gt;- Open Adobe Flash CS4&lt;br /&gt;&lt;br /&gt;- Choose &#39;New ActionScript 3.0 file&lt;br /&gt;&lt;br /&gt;- Set your properties as such in the right hand side menu. The &#39;Class&#39; field is the name of the ActionScript 3.0 file that the game will load when the game is loaded. We haven&#39;t actually created it yet so when you type in &#39;Engine&#39; you will get a warning, just click [OK], we will fix it later.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_EvAOnxP18qk/TLGNE2mx7BI/AAAAAAAAAAQ/ZWsmhRtEnXw/s1600/Properties.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/_EvAOnxP18qk/TLGNE2mx7BI/AAAAAAAAAAQ/ZWsmhRtEnXw/s1600/Properties.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;- After your properties are set, create a straight line with the following properties.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_EvAOnxP18qk/TLGN9UDr23I/AAAAAAAAAAU/hD_bb9kdDbM/s1600/LineTool1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/_EvAOnxP18qk/TLGN9UDr23I/AAAAAAAAAAU/hD_bb9kdDbM/s1600/LineTool1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;- With these properties set, draw a line across the page, like so:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGOeLyJxcI/AAAAAAAAAAY/VdfMUccQh1A/s1600/LineTool2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;197&quot; src=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGOeLyJxcI/AAAAAAAAAAY/VdfMUccQh1A/s320/LineTool2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;- Now use the &#39;Selection Tool&#39; to select your line and manual change the properties to match:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_EvAOnxP18qk/TLGOt00D5pI/AAAAAAAAAAc/ncJp_7QL-U4/s1600/LineTool3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/_EvAOnxP18qk/TLGOt00D5pI/AAAAAAAAAAc/ncJp_7QL-U4/s1600/LineTool3.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;- &amp;nbsp;Left-Click the line and select &#39;Convert to Symbol&#39;:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGPHdoBTlI/AAAAAAAAAAg/Xw2xzxtWvlo/s1600/ConvertToSymbol.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;392&quot; src=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGPHdoBTlI/AAAAAAAAAAg/Xw2xzxtWvlo/s400/ConvertToSymbol.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;- Change the name field to &quot;wall&quot; (Capitalizations matter in ActionScript). Check the &#39;Export for ActionScript&#39; box. Change the &#39;Class&#39; field to &quot;Wall&quot;. (As a matter of convention all class names should begin with a capital letter):&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_EvAOnxP18qk/TLGP4dFfbII/AAAAAAAAAAk/mjR3fQaKO98/s1600/ConvertToSymbol2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/_EvAOnxP18qk/TLGP4dFfbII/AAAAAAAAAAk/mjR3fQaKO98/s1600/ConvertToSymbol2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;- When everything is ready, click [OK]. You will get a warning:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGQQUcpC4I/AAAAAAAAAAo/_JHb7O_Uc3w/s1600/ConvertToSymbol3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGQQUcpC4I/AAAAAAAAAAo/_JHb7O_Uc3w/s1600/ConvertToSymbol3.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;This simply means that the compiler cannot find the class file &#39;Wall&#39; that we specified. Do not worry about this warning, we will be creating a class for our wall at a later point. Just click [OK].&lt;br /&gt;&lt;br /&gt;- Your line is now a symbol that can be controlled by and referenced with ActionScript! Good job so far. Select your line and create a new copy (Ctrl+C, Ctrl+V). Select your new line and manually change its coordinates to: X:0.0, Y:290.&lt;br /&gt;&lt;br /&gt;- Now select the &#39;Text Tool&#39; (a picture of a T on the right hand side menu). Change the settings to:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_EvAOnxP18qk/TLGRj3Jtb0I/AAAAAAAAAAs/9rs_40UY1do/s1600/PongedText1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/_EvAOnxP18qk/TLGRj3Jtb0I/AAAAAAAAAAs/9rs_40UY1do/s1600/PongedText1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;- Click anywhere on your background and type &quot;PONGED&quot;. After you have typed it, select it with your &#39;Selection Tool&#39; and set its position to:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGR7vMj32I/AAAAAAAAAAw/QnxGma-VH4Y/s1600/PongedText2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGR7vMj32I/AAAAAAAAAAw/QnxGma-VH4Y/s1600/PongedText2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;- Select your &#39;Text Tool&#39; again, click anywhere on your backround and type &quot;0:0&quot; with the following settings:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGST_tzcYI/AAAAAAAAAA0/gtDr33--7SQ/s1600/ScoreBoard1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGST_tzcYI/AAAAAAAAAA0/gtDr33--7SQ/s1600/ScoreBoard1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;- Of special note is the part that I circled in green. Changing the type to &#39;Dynamic Text&#39; means we can use ActionScript to change what our text says dynamically, so when someone scores we can change one text to 1:0. The name &#39;scoreBoard&#39; is the name of the text field, we will use that name when we want to access that text field with our ActionScript code.&lt;br /&gt;&lt;br /&gt;- Using the &#39;Line Tool&#39; create a dotted line with the following parameters:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGTSJjwDzI/AAAAAAAAAA4/A-YdWbW2hV4/s1600/DottedLine.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGTSJjwDzI/AAAAAAAAAA4/A-YdWbW2hV4/s1600/DottedLine.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;- This will be our center line. It is merely aesthetic.&lt;br /&gt;&lt;br /&gt;- Next create a line with the following properties:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGT3FAbqwI/AAAAAAAAAA8/g2aEW8VHFG8/s1600/Paddle1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/_EvAOnxP18qk/TLGT3FAbqwI/AAAAAAAAAA8/g2aEW8VHFG8/s1600/Paddle1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;This will be our paddle&lt;br /&gt;&lt;br /&gt;- After you have created your paddle line create another one by selecting your paddle with the &#39;Selection Tool&#39; and copying and pasting (Ctrl+C, Ctrl+V). Select your new paddle and change its color to something that you find appealing. I made mine light blue so it is easily visible against our black background. This will be the computer controlled paddle. Don&#39;t worry about the positions of either of the paddles at the moment, cause in our next lesson we will be converting them to symbols and using ActionScript to place and control them. Our paddle will be controlled by either keyboard or mouse and the enemy paddle will be controlled by scripted AI.&lt;br /&gt;&lt;br /&gt;- Your project should look something like this:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_EvAOnxP18qk/TLGVMlb1hDI/AAAAAAAAABA/FApme-U0eO0/s1600/ProjectSummary1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;http://4.bp.blogspot.com/_EvAOnxP18qk/TLGVMlb1hDI/AAAAAAAAABA/FApme-U0eO0/s400/ProjectSummary1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;- A copy of our project so far:&amp;nbsp;&lt;a href=&quot;http://www.2shared.com/file/LFrU2YRT/Ponged.html&quot;&gt;PONGED.fla&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://entropyndesign.blogspot.com/feeds/5180319431881937093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://entropyndesign.blogspot.com/2010/10/ponged-pt2.html#comment-form' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5566769307601266131/posts/default/5180319431881937093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5566769307601266131/posts/default/5180319431881937093'/><link rel='alternate' type='text/html' href='http://entropyndesign.blogspot.com/2010/10/ponged-pt2.html' title='Ponged pt.2'/><author><name>Entropy</name><uri>http://www.blogger.com/profile/09648384931502648338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_EvAOnxP18qk/TLGNE2mx7BI/AAAAAAAAAAQ/ZWsmhRtEnXw/s72-c/Properties.jpg" height="72" width="72"/><thr:total>20</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5566769307601266131.post-3894077412705952768</id><published>2010-10-09T01:49:00.000-07:00</published><updated>2010-10-11T07:40:43.963-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basic"/><category scheme="http://www.blogger.com/atom/ns#" term="Games"/><category scheme="http://www.blogger.com/atom/ns#" term="Pong"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><title type='text'>Ponged pt.1</title><content type='html'>The first project we will take on is re-creating Pong. A relatively simple game that will teach us how to:&lt;br /&gt;&lt;br /&gt;- Setup a project&lt;br /&gt;- Basic sprites&lt;br /&gt;- Event handlers&lt;br /&gt;- Keyboard control&lt;br /&gt;- Very simple geometry&lt;br /&gt;- A score system&lt;br /&gt;- Simple AI&lt;br /&gt;&lt;br /&gt;The game will be broken down into it&#39;s simplest concepts and each one will be done step-by-step, all code written out, explained and full source code at the end of each step. At the end of the project, we will sign up for and enable MochiAds in our game, submit it and start making our very first money!</content><link rel='replies' type='application/atom+xml' href='http://entropyndesign.blogspot.com/feeds/3894077412705952768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://entropyndesign.blogspot.com/2010/10/ponged-pt1.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5566769307601266131/posts/default/3894077412705952768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5566769307601266131/posts/default/3894077412705952768'/><link rel='alternate' type='text/html' href='http://entropyndesign.blogspot.com/2010/10/ponged-pt1.html' title='Ponged pt.1'/><author><name>Entropy</name><uri>http://www.blogger.com/profile/09648384931502648338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5566769307601266131.post-2810159427511139380</id><published>2010-10-08T08:34:00.000-07:00</published><updated>2010-10-11T07:40:43.973-07:00</updated><title type='text'>Starting from nothing</title><content type='html'>&amp;nbsp;&amp;nbsp; Welcome to the first of many, many entries in my blog, designed to take you through the steps of learning, then monetizing, flash games. A whole world of fun, learning, and eventually, money, awaits you if you are willing to put in the time and effort. I will walk you through every step, one-by-one, from the first line of code all the way through to finished games with embedded Mochi Ads. I will keep statistics and charts updated weekly to track the success, or lack thereof, of each of the games I teach you how to make.&lt;br /&gt;&amp;nbsp;&amp;nbsp; Beyond just the games though, I will make sure you grasp the fundamentals of the language (Actionscript 3.0) so you can alter the games to your own liking and create whole new ones.&lt;br /&gt;&amp;nbsp;&amp;nbsp; I will take you step by step through the process of submitting those games to the most relevant Flash portals (Newgrounds, Kongregate, etc..).&lt;br /&gt;&lt;br /&gt;First lesson coming very soon.</content><link rel='replies' type='application/atom+xml' href='http://entropyndesign.blogspot.com/feeds/2810159427511139380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://entropyndesign.blogspot.com/2010/10/starting-from-nothing.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5566769307601266131/posts/default/2810159427511139380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5566769307601266131/posts/default/2810159427511139380'/><link rel='alternate' type='text/html' href='http://entropyndesign.blogspot.com/2010/10/starting-from-nothing.html' title='Starting from nothing'/><author><name>Entropy</name><uri>http://www.blogger.com/profile/09648384931502648338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>