快速开发用的小demo

Text(ChanceKey):

var text = new Text(ChanceKey, '微软雅黑', bl * 22, '#000');
text.anchorX = 0.5;
text.anchorY = 0.5;
text.x = s.sw/2+ 114 * bl;
text.y = 27 * bl;
s.addChild(text);
posted @ 2017-09-24 11:52  恰逢青雪  阅读(115)  评论(0)    收藏  举报