Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (35 sloc) 968 Bytes
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript" src="mootools-core-1.3.js"></script>
<script type="text/javascript" src="magic.js"></script>
<script type="text/javascript" src="magic2d.js"></script>
<script>
window.onload = function() {
var director = magic.director;
director.init('magic');
director.run(new magic.Scene(new magic.Label('Hello World!')));
/*
var HelloWorld = new Class({
Extends: Layer,
initialize: function() {
var label = new Label( 'Hello World' );
label.position( 10, 20 );
this.add( label );
var grossini = new Sprite( 'grossini.png' );
grossini.position( 50, 50 );
this.add( grossini );
grossini.doo( new ScaleBy( 3, duration=2 ) );
}
});
director.run( new Scene( new HelloWorld() ) );
*/
}
</script>
</head>
<body>
<canvas id="magic" width="200" height="200">
<p>Your browser doesn't support canvas.</p>
</canvas>
</body>
</html>