<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Stuart&#039;s Pixel Games]]></provider_name><provider_url><![CDATA[http://stuartspixelgames.com]]></provider_url><author_name><![CDATA[SPG]]></author_name><author_url><![CDATA[https://stuartspixelgames.com/author/stuie89/]]></author_url><title><![CDATA[Make Your First Puzzle Script&nbsp;Game]]></title><type><![CDATA[link]]></type><html><![CDATA[<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://www.humblebundle.com/g/puzzledorf"><img data-attachment-id="7638" data-permalink="https://stuartspixelgames.com/wide-ad/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png" data-orig-size="1920,586" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="wide-ad" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=1024" src="https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=736" alt="" class="wp-image-7638" srcset="https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=736 736w, https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=1472 1472w, https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=150 150w, https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=300 300w, https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=768 768w, https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=1024 1024w" sizes="(max-width: 736px) 100vw, 736px" /></a></figure></div>


<p>You can either watch this tutorial on Youtube below, or otherwise skip past it and read the text version (not all of the Puzzlescript tutorials are on Youtube yet but I plan to do that eventually).</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<span class="embed-youtube" style="text-align:center; display: block;"><iframe class="youtube-player" width="640" height="360" src="https://www.youtube.com/embed/ozATUNkDouw?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en&#038;autohide=2&#038;wmode=transparent" allowfullscreen="true" style="border:0;" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation"></iframe></span>
</div></figure>



<p>This tutorial is an introduction to <strong><a href="http://www.puzzlescript.net/index.html">Puzzle Script</a>.</strong> Puzzle Script is a free to use program that runs in a web page and is used to create free, small puzzle games that are easy to share. It&#8217;s most well known for creating block pushing puzzle games in a similar style to <strong><a href="https://www.humblebundle.com/g/puzzledorf">Puzzledorf</a></strong>. You can also use it as a prototyping tool for bigger projects as a quick way to test ideas, which is exactly what I did with <strong><a href="https://www.humblebundle.com/g/puzzledorf">Puzzledorf</a></strong>. Below is a quick example of the Puzzledorf prototype. </p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="2376" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/level2gif/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/level2gif.gif" data-orig-size="461,283" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Level2GIF" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/level2gif.gif?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/level2gif.gif?w=461" src="https://stuartspixelgames.files.wordpress.com/2016/05/level2gif.gif" alt="Level2GIF" class="wp-image-2376" /></figure></div>


<p>You&#8217;ll notice that Puzzlescript has very basic graphics, which is part of what makes it a quick prototyping tool, because you can get straight into programming and designing levels. Now below is an example of the same level in Puzzledorf. I made some modifications between the prototype and final version, which is exactly why it was useful to get those ideas out in Puzzlescript and modify them; experiment.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://www.humblebundle.com/g/puzzledorf"><img data-attachment-id="5785" data-permalink="https://stuartspixelgames.com/level1stuck/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2021/09/level1stuck.gif" data-orig-size="458,406" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="level1stuck" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2021/09/level1stuck.gif?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2021/09/level1stuck.gif?w=458" src="https://stuartspixelgames.files.wordpress.com/2021/09/level1stuck.gif?w=458" alt="" class="wp-image-5785" /></a></figure></div>


<p>In this tutorial you will&nbsp;make a game, learning the basic functions of Puzzle Script. The next tutorial will begin covering programming.</p>



<p>Visit the puzzle script website <a href="http://www.puzzlescript.net/index.html"><strong>here</strong></a>. Click <a href="http://www.puzzlescript.net/editor.html"><strong>Make a Game</strong></a> to enter the <strong><a href="http://www.puzzlescript.net/editor.html">Puzzle Script editor</a>.</strong></p>



<h2 id="loading-examples"><strong>Loading Examples</strong></h2>



<p>First let&#8217;s look at some examples. At the top of the screen, go to &#8216;Load Example&#8217; and select the first one, &#8216;Basic&#8217;.&nbsp;Now click &#8216;Run&#8217;.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="2391" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/saveandload/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/saveandload.png" data-orig-size="468,30" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="SaveAndLoad" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/saveandload.png?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/saveandload.png?w=468" src="https://stuartspixelgames.files.wordpress.com/2016/05/saveandload.png" alt="SaveAndLoad" class="wp-image-2391" /></figure></div>

<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="2402" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/simpleblockpushingpuzzlegame/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/simpleblockpushingpuzzlegame1.png" data-orig-size="482,270" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="SimpleBlockPushingPuzzleGame" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/simpleblockpushingpuzzlegame1.png?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/simpleblockpushingpuzzlegame1.png?w=482" src="https://stuartspixelgames.files.wordpress.com/2016/05/simpleblockpushingpuzzlegame1.png" alt="SimpleBlockPushingPuzzleGame" class="wp-image-2402" /></figure></div>


<p>You will notice there is now a game screen. Click within the game and press &#8216;Enter&#8217; on your keyboard.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="2399" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/simpleblockpushingpuzzlegame-lv1/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/simpleblockpushingpuzzlegame-lv1.png" data-orig-size="482,270" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="SimpleBlockPushingPuzzleGame Lv1" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/simpleblockpushingpuzzlegame-lv1.png?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/simpleblockpushingpuzzlegame-lv1.png?w=482" src="https://stuartspixelgames.files.wordpress.com/2016/05/simpleblockpushingpuzzlegame-lv1.png" alt="SimpleBlockPushingPuzzleGame Lv1" class="wp-image-2399" /></figure></div>


<p>Play the game. Your goal is to push the orange crates onto the black square targets. When each target has a crate on it, you pass. You can press &#8216;Z&#8217; on the keyboard to undo, or &#8216;R&#8217; to&nbsp;restart the level.</p>



<h2>&nbsp;</h2>



<h2 id="make-your-first-game"><strong>Make Your First Game</strong></h2>



<p>Now we&#8217;re going to make some levels. I&#8217;ll&nbsp;design one with you, and then I encourage you to experiment by creating more.&nbsp;Click on&nbsp;&#8216;Level Editor&#8217; in the top menu.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="2421" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/edit-lv-1/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/edit-lv-1.png" data-orig-size="482,270" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Edit Lv 1" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/edit-lv-1.png?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/edit-lv-1.png?w=482" src="https://stuartspixelgames.files.wordpress.com/2016/05/edit-lv-1.png" alt="Edit Lv 1" class="wp-image-2421" /></figure></div>


<p>If you don&#8217;t see the level editor screen, click &#8216;Run&#8217; and start the game. Once you&#8217;re inside a&nbsp;level, press the &#8216;Level Editor&#8217; button again.&nbsp;It will now allow you to edit the level you were just in.</p>



<h2 id="make-a-new-level"><strong>Make a New Level</strong></h2>



<p>Up top are your game objects. Left click will draw the selected object.&nbsp;Right click will draw the &#8216;background&#8217; object. Left clicking the edge of the map will increase the&nbsp;mapsize &#8211; right clicking will decrease the size.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="3433" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/usingleveleditor-gif/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/usingleveleditor1.gif" data-orig-size="414,255" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="usingleveleditor-gif" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/usingleveleditor1.gif?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/usingleveleditor1.gif?w=414" src="https://stuartspixelgames.files.wordpress.com/2016/05/usingleveleditor1.gif" alt="usingleveleditor-gif" class="wp-image-3433" /></figure></div>


<p>To pass a level you need to have a crate on all of the targets, so every level needs to have a minimum of:</p>



<ul><li>1 crate</li><li>1 target</li><li>1 player</li></ul>



<p>For now, turn everything to grass with the Right Click.&nbsp;Then, left click the left edge of the level to make it bigger, and finally&nbsp;draw a level that looks like mine below.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="2439" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/newlevel/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/newlevel.png" data-orig-size="482,270" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="NewLevel" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/newlevel.png?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/newlevel.png?w=482" src="https://stuartspixelgames.files.wordpress.com/2016/05/newlevel.png" alt="NewLevel" class="wp-image-2439" /></figure></div>


<h2 id="add-it-to-the-level-list"><strong>Add It To The Level List</strong></h2>



<p>When a level is finished, we add it to our level list. In the level editor, click the white &#8216;S&#8217; next to the game object list to save your design.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="3435" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/presss/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/presss.png" data-orig-size="230,42" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="presss" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/presss.png?w=230" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/presss.png?w=230" src="https://stuartspixelgames.files.wordpress.com/2016/05/presss.png" alt="presss" class="wp-image-3435" /></figure></div>


<p>Underneath your level editor it should say&nbsp;there was a successful compilation and&nbsp;have a grid of funny symbols, as below.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="2444" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/savedesign/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/savedesign.png" data-orig-size="482,270" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="SaveDesign" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/savedesign.png?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/savedesign.png?w=482" src="https://stuartspixelgames.files.wordpress.com/2016/05/savedesign.png" alt="SaveDesign" class="wp-image-2444" /></figure></div>


<p>Those funny&nbsp;symbols represent the level you just designed. Each symbol is&nbsp;a different object. On the left hand side of the screen, scroll down until you see LEGEND. You should see an explanation for each of the symbols:</p>



<pre class="wp-block-preformatted"> <strong><span>. = Background</span></strong>
<strong><span> # = Wall</span></strong>
<strong><span> P = Player</span></strong>
<strong><span> * = Crate</span></strong>
<strong><span> @ = Crate and Target</span></strong>
<strong><span> O = Target</span></strong></pre>


<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="2454" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/levelslistfirstlook/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/levelslistfirstlook.png" data-orig-size="482,270" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="LevelsListFirstLook" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/levelslistfirstlook.png?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/levelslistfirstlook.png?w=482" src="https://stuartspixelgames.files.wordpress.com/2016/05/levelslistfirstlook.png" alt="LevelsListFirstLook" class="wp-image-2454" /></figure></div>


<p>Everything on the left hand side of the screen is the game&#8217;s code, split into different sections such as&nbsp;OBJECTS and LEGEND.&nbsp;Scroll down to LEVELS. What you see are the levels that came with the example.&nbsp;</p>



<p>To add a new level, create a new blank line at the bottom of the levels. Then, copy the symbols you generated for your level and paste them in. Your level is now added.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="2462" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/leveladded/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/leveladded.png" data-orig-size="482,270" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="LevelAdded" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/leveladded.png?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/leveladded.png?w=482" src="https://stuartspixelgames.files.wordpress.com/2016/05/leveladded.png" alt="LevelAdded" class="wp-image-2462" /></figure></div>


<p>Test it.&nbsp;After making a&nbsp;new level, you have to press the &#8216;Run&#8217; button again at the top of the screen to &nbsp;reload the game with the new level. Sometimes it doesn&#8217;t work as expected, so you have to press the &#8216;Rebuild&#8217; button, then try pressing &#8216;Run&#8217; again.</p>



<h2 id="saving-and-loading-the-game"><strong>Saving&nbsp;And Loading The Game</strong></h2>



<p>Try making some new levels.&nbsp;When you are ready to save your game, scroll up to the top of the code and&nbsp;type in your own title, author name and homepage;&nbsp;then&nbsp;click the &#8216;Save&#8217; button.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="2471" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/titleauthorhomepage/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/titleauthorhomepage.png" data-orig-size="254,51" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="TitleAuthorHomePage" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/titleauthorhomepage.png?w=254" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/titleauthorhomepage.png?w=254" src="https://stuartspixelgames.files.wordpress.com/2016/05/titleauthorhomepage.png" alt="TitleAuthorHomePage" class="wp-image-2471" /></figure></div>

<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="2475" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/saveload/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/saveload.png" data-orig-size="273,30" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="SaveLoad" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/saveload.png?w=273" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/saveload.png?w=273" src="https://stuartspixelgames.files.wordpress.com/2016/05/saveload.png" alt="SaveLoad" class="wp-image-2475" /></figure></div>


<p>A limited number of saves get stored under the &#8216;Load&#8217; menu&nbsp;on the computer you&#8217;re using.&nbsp;There is, however, a &#8216;Share&#8217; button at the top of the screen. Clicking this generates&nbsp;a message with two web links.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-attachment-id="2505" data-permalink="https://stuartspixelgames.com/2016/05/12/make-your-first-puzzle-script-game/gameshared/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2016/05/gameshared.png" data-orig-size="482,104" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="GameShared" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2016/05/gameshared.png?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2016/05/gameshared.png?w=482" src="https://stuartspixelgames.files.wordpress.com/2016/05/gameshared.png" alt="GameShared" class="wp-image-2505" /></figure></div>


<p>One is a link to the source code of your project. The other is a link to a playable version of the game that you can share with your friends.&nbsp;I recommend periodically creating a new link to your source code and saving it in a text document somewhere so that you have a permanently stored version of your project.</p>



<h2 id="exporting-games"><strong>Exporting Games</strong></h2>



<p>You can also export the game as a html5 file which can be uploaded to games portals such as <strong><a href="https://stuartspixelgames.com/2014/07/10/sell-your-indie-games-for-free/">itch.io</a>, <a href="http://www.kongregate.com/">Kongregate</a></strong> or <strong><a href="http://www.newgrounds.com/">Newgrounds</a>.</strong> Just press &#8216;Export&#8217; and upload the downloaded html file to the games portal.</p>



<h2 id="conclusion"><b>Conclusion</b></h2>



<p>You can see the sample project <a href="http://www.puzzlescript.net/editor.html?hack=1714e44976090f1bc725da4408e3ee9a"><strong>here</strong></a>. The next <strong><a href="https://stuartspixelgames.com/category/programming-tutorials/">tutorial</a> </strong>covers the basics of <strong><a href="https://stuartspixelgames.com/2016/05/13/how-to-start-programming-in-puzzle-script/">programming</a> </strong>in Puzzle Script.</p>



<h1 class="has-text-align-center" id="next-tutorial"><strong><a href="https://stuartspixelgames.com/2016/05/13/how-to-start-programming-in-puzzle-script/">Next Tutorial &gt;</a></strong></h1>



<div class="is-layout-flow wp-block-group"><div class="wp-block-group__inner-container">
<p class="has-text-align-center has-medium-font-size"><strong>If you enjoyed reading, try my game <a href="https://www.humblebundle.com/g/puzzledorf">Puzzledorf</a>.</strong></p>
</div></div>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://www.humblebundle.com/g/puzzledorf"><img data-attachment-id="7638" data-permalink="https://stuartspixelgames.com/wide-ad/" data-orig-file="https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png" data-orig-size="1920,586" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="wide-ad" data-image-description="" data-image-caption="" data-medium-file="https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=300" data-large-file="https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=1024" src="https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=736" alt="" class="wp-image-7638" srcset="https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=736 736w, https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=1472 1472w, https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=150 150w, https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=300 300w, https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=768 768w, https://stuartspixelgames.files.wordpress.com/2022/04/wide-ad.png?w=1024 1024w" sizes="(max-width: 736px) 100vw, 736px" /></a></figure></div>]]></html><thumbnail_url><![CDATA[https://stuartspixelgames.files.wordpress.com/2016/05/newlevelwo.png?fit=440%2C330]]></thumbnail_url><thumbnail_width><![CDATA[439]]></thumbnail_width><thumbnail_height><![CDATA[246]]></thumbnail_height></oembed>