Permalink
Browse files

Added label "Nezumi Hunter" on the first scene.

  • Loading branch information...
Shin Hirota
Shin Hirota committed Jun 10, 2015
1 parent 47cf311 commit 006c62e3d39c9c3c6e8aed786847e340fbc4047f
Showing with 8 additions and 0 deletions.
  1. +8 −0 MyProject/src/app.js
View
@@ -73,6 +73,14 @@ var HelloWorldLayer = cc.Layer.extend({
});
this.addChild(sprCathyTest, 10);
+ // ラベル表示
+ var lblTest = new cc.LabelTTF("ねずみハンター", null, 40);
+ lblTest.attr({
+ x: 200,
+ y: 300
+ });
+ this.addChild(lblTest, 11);
+
return true;
}
});

0 comments on commit 006c62e

Please sign in to comment.