你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
Monica - 知识达人
赞同来自:
xiaozhibin
要回复问题请先登录
5 个回复
Monica - 知识达人
赞同来自:
xiaozhibin
赞同来自:
{
import laya.display.Sprite;
import laya.display.Text;
/**
* @date 2017-10-25 下午12:28:23
* @author xiaozhibin
*/
public class HelloLayaBox extends Sprite
{
public function HelloLayaBox()
{
Laya.init(600, 300);
var txt:Text = new Text();
txt.text = "HelloLayaBox";
txt.color = "#ff0000";
txt.fontSize = 66;
txt.bold = true;
txt.stroke = 5;//字体描边
txt.strokeColor = "#ffffff";
txt.pos(60, 100);
Laya.stage.bgColor = "#ffff00";
Laya.stage.addChild(txt);
}
}
}
Monica - 知识达人
赞同来自:
xiaozhibin
赞同来自:
Monica - 知识达人
赞同来自:
库路径那里只需要引入playerglobal.swc文件即可,不需要剩下的那几个