白鹭引擎写入文字图层方法实例

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hj960511/article/details/82288071

白鹭引擎
版本:5.2.8
描述:引入文字图层代码实例

代码片段:

        private jf_tit: eui.Label;

        public create_text(){

            this.jf_tit = new eui.Label();
            this.jf_tit.text = "0 积分";
            this.jf_tit.size = 12;
            this.jf_tit.x = stageW*0.88;
            this.jf_tit.y = stageH*0.038;
            this.addChild(this.jf_tit);

    }

猜你喜欢

转载自blog.csdn.net/hj960511/article/details/82288071