cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div id="gameFrame">
		<!-- our game canvas -->
		<canvas id="gameCanvas" width="800" height="600">
			alternate content
		</canvas>
		<canvas id="uiCanvas" width="800" height="600"></canvas>
		
		<!-- the "score board" that is layered over the game -->
		<!-- it will be wrapped in a DOMElement so EaselJS can control it -->
		<div id="gameStats" tabindex="1" autofocus>
			<table>
				<tr><td class="label">Distance Run:</td><td id="distanceFld">0</td></tr>
				<tr><td class="label">Creatures Shot:</td><td id="killsFld">0</td></tr>
				<tr><td class="label">Hazards Dodged:</td><td id="hazardsFld">0</td></tr>
				<tr class="score"><td class="label">Total Score:</td><td id="scoreFld">0</td></tr>
			</table>
		</div>
	</div>
	
	<!-- load only the libs we need to init the preload queue & draw the progress bar -->
	<!--<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>-->
	<!-- kick things off: -->
	<!--<script src="js/GameInit.js"></script>-->
<a href="https://createjs.com/" target="_blank"><img id="logo" src="https://createjs.com/mediakit/createjs-badge-reverse.png"></a>
            
          
!
            
              #logo {
  position: absolute;
  bottom:1px;
  right:1px;
}
            
          
!
            
              //Planetary Gary full source found here:
//https://github.com/CreateJS/sandbox/tree/Gary-1.0/PlanetaryGary
/*

Demonstrates a variety of advanced concepts including:

-preloading with progress UI & multiple parallel loads
using an external manifest to load sounds
managing assets as they load
ex1. music plays as soon as it finishes loading
ex2. sprite sheet builder runs as soon as all dependencies are loaded
-asynchronous run-time sprite sheet generation
all art is loaded as vector which allows scaling and keeps file size low
-sprite sheet is generated while other assets load
dynamic sound effects (reverb effect when clicking Start Game)
-StageGL for game rendering
state changes
-DOMElement for the score board
-tweening music volume
*/
window.focus();
            
          
!
999px
Loading ..................

Console