====== 006 テキストの表示 ====== #ref(enchantJS_005_000.png,left,nowrap) ===== 概要 ===== テキストを表示します。テキストの表示にはLabelオブジェクトを使用します。 ==== ソースコード ==== // main.js function init() { game.scale = 1; game.fps = 30; scene = new Scene(); scene.backgroundColor = "#000"; game.pushScene(scene); // ラベルを作成 label = new Label("LABEL_TEST"); label.font = "16px MS ゴシック"; label.color = "#FFF" label.x = 10; label.y = 10; // シーンに追加 scene.addChild(label); main(); } ==== ダウンロード ==== {{:wiki:enchant.js:tips:enchantjs_std_text.zip|}}