topical media & game development
mobile-graphic-enchant-examples-beginner-label-main.js / js
enchant();
window.onload = function() {
var game = new Game(320, 320);
game.onload = function() {
var label = new enchant.Label();
label.text = "Hello, enchant.js!";
label.width = 128;
label.height = 64;
label.font = "12px 'Arial'";
game.rootScene.addChild(label);
}
game.start();
}
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.