<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="/template/template.php" ?>
<!DOCTYPE theshtick  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;">
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
	<!ATTLIST html
		  sitehome   CDATA        #IMPLIED
	>
]>
<html sitehome="yes">
<head>
<title>The Shtick: Scratch Runner</title>
</head>
<body>
<h1>
The Shtick
<span><img src="./icon.png" alt="The Shtick: Scratch Runner" class="icon"/></span>
<span class="subheader">Scratch Runner</span>
</h1>
<div id="content">
	<div class="subcontent">
		<h2>About</h2>
		<p>Scratch Runner is an emulator for Scratch programs. A Java application is available for download as well as a couple of libraries for Java developers
		who might be interested in embedding Scratch projects into their Java applications.</p>
		<div><label>Current Version:</label> 2 July 2018</div>
		<div><label>Github Projects:</label><ul>
		<li><a href="https://github.com/seanmcox/scratch-runner-main">scratch-runner-main</a></li>
		<li><a href="https://github.com/seanmcox/scratch-runner-core">scratch-runner-core</a></li>
		<li><a href="https://github.com/seanmcox/scratch-runner-implementation">scratch-runner-implementation</a></li>
		<li><a href="https://github.com/seanmcox/scratch-runner-blocks-standard">scratch-runner-blocks-standard</a></li>
		</ul></div>
	</div>

	<div class="subcontent">
		<h2>System Requirements</h2>
		<ul>
		<li><a href="http://www.java.com/">Java 8, 9, or 10</a></li>
		</ul>
	</div>

	<div class="subcontent">
		<h2>Generic Download</h2>
		<p>This is a generic download for executing Scratch programs on any desktop environment that meets the System Requirements.</p>

		<div><a href="scratchrunner2018.07.02.zip">Download</a></div>

		<ol>
		<li>Download the application from the link above.</li>
		<li>Unzip the the downloaded file into a folder.</li>
		<li>Move the extracted folder into an appropriate installation folder. (Suggestions: Desktop, memory stick, C:\Program Files\, ~\utils\, etc.)</li>
		<li>To run a scratch project from the command line, the syntax is as follows:<br/>
		<code>java -jar scratchrunner.jar -f &lt;Project File></code>
		</li>
		</ol>
	</div>

	<div class="subcontent">
		<h2>Windows Download</h2>
		<p>This is similar to the generic download, except that a couple of registry files are included to facilitate adding a "Run" command to the context (right click) menu for Scratch 2 project files.</p>

		<div><a href="scratchrunner2018.07.02.win.zip">Download</a></div>

		<ol>
		<li>Download the application from the link above.</li>
		<li>Unzip the the downloaded file into a folder.</li>
		<li>Move the extracted folder into an appropriate installation folder. (Suggestions: Desktop, memory stick, C:\Program Files\, ~\utils\, etc.)</li>
		<li>To run a scratch project from the command line, the syntax is as follows:<br/>
		<code>java -jar scratchrunner.jar -f &lt;Project File></code>
		</li>
		<li>To run a scratch project from the context menu, the two included registry files will need to be merged into your registry.</li>
		<li>Right-click on sb2.reg and select "Merge" to merge the registry entries that define the file type.</li>
		<li>Edit sb2run.reg, replacing the path to scratchrunner.jar, with the path where you installed scratchrunner.jar.</li>
		<li>Right-click on sb2run.reg and select "Merge" to merge the registry entries that define the file type.</li>
		<li>Now you should be able to run a Scratch 2 project file by right-clicking on the file and selecting the "Run" option from the context menu.</li>
		</ol>
	</div>
	<div class="subcontent">
		<h2>Library Downloads</h2>
		<p>The library downloads allow you to include Scratch 2 projects in your own Java applications. The library generates and provides a subclass of JPanel to represent the stage, which can then be embedded in any swing layout.</p>
        <p>As an example of the usage of the OSGI library (using Apache Felix), see the <a href="https://github.com/seanmcox/scratch-runner-main">scratch-runner-main</a> project in Github. The plain library works similarly, except no automated mechanism exists to register feature sets, so this has to be done manually.</p>
        <p>The application download can be used to see how well emulation of a given project would work.</p>

		<div><a href="scratchrunner.lib.2018.07.02.zip">Plain Download</a></div>
		<div><a href="scratchrunner.osgi.2018.07.02.zip">OSGI Download</a></div>
	</div>

	<div class="subcontent">
		<h2>Recent Updates</h2>
		<ul>
		<li>Updated >, &lt; operations to support Scratch's string comparison features. (30/Jun/2018.)</li>
		<li>Updated item text highlight and copy in list monitors. (26/Jun/2018.)</li>
		<li>Allowed list monitor item selection and multi-line items. (23/Jun/2018.)</li>
		<li>Created library deliverables. (23/Jun/2018.)</li>
		<li>Refactored to allow the library to be used without OSGI. (16/Jun/2018.)</li>
		<li>Implemented list monitor scroll bar. (14/Jun/2018.)</li>
		<li>Refactored to allow emulator use as a library for embedding in other apps. (12/Jun/2018.)</li>
		<li>Optimized lists to improve performance. (8/Jun/2018.)</li>
		<li>Fixed: Lack of support for common sound file format. (5/Jun/2018.)</li>
		<li>Fixed: Glue-issue in ContentsOfList. (2/Jun/2018.)</li>
		<li>Fixed: indexing issue in letter:Of: (30/May/2018.)</li>
		<li>Improved list monitor look. (30/May/2018.)</li>
		<li>Updated DoAsk stub with a more complete implementation. (11/May/2018.)</li>
		<li>Improved emulation of Scratch SVG rendering idiosyncracies. (5/May/2018.)</li>
		</ul>
		<h2>Known Emulation Issues</h2>
		<ul>
		<li>A number of unimplemented blocks.</li>
		<li>Some graphic effects unimplemented.</li>
		<li>SVG text rendering. Font doesn't always look right.</li>
		</ul>
	</div>
</div>
</body>
</html>
