Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 38 lines (35 sloc) 0.968 kb
0b93c34 @andrewsmedina spiking using mootools
authored
1 <!DOCTYPE HTML>
2 <html>
b8b19a2 @fabiomcosta foram tantas moficacoes que não sei nem dizer mais. Estive olhando a mel...
fabiomcosta authored
3 <head>
4 <script type="text/javascript" src="mootools-core-1.3.js"></script>
5 <script type="text/javascript" src="magic.js"></script>
6 <script type="text/javascript" src="magic2d.js"></script>
7 <script>
8 window.onload = function() {
9
10 var director = magic.director;
11 director.init('magic');
12 director.run(new magic.Scene(new magic.Label('Hello World!')));
13
14 /*
15 var HelloWorld = new Class({
16 Extends: Layer,
17 initialize: function() {
18 var label = new Label( 'Hello World' );
19 label.position( 10, 20 );
20 this.add( label );
21 var grossini = new Sprite( 'grossini.png' );
22 grossini.position( 50, 50 );
23 this.add( grossini );
24 grossini.doo( new ScaleBy( 3, duration=2 ) );
25 }
26 });
27 director.run( new Scene( new HelloWorld() ) );
28 */
29 }
30 </script>
31 </head>
32 <body>
33 <canvas id="magic" width="200" height="200">
34 <p>Your browser doesn't support canvas.</p>
35 </canvas>
36 </body>
0b93c34 @andrewsmedina spiking using mootools
authored
37 </html>
Something went wrong with that request. Please try again.