src/SK_Game/homeCity.ts

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

//创建用户角色
module game {

    export class Homecity extends eui.Component {
        public CreatBtn: eui.Button;
        public username: eui.TextInput;
        public constructor() {
            super();
            this.addEventListener(eui.UIEvent.COMPLETE, this.CityinitUI, this);
            this.skinName = "resource/egamexml/Home_City.exml";

        }
        /**
         * 初始化面板ui
         */
        public system: particle.ParticleSystem;
        public CityGroups: eui.Group;
        public city1_mc: eui.Group;
        public city2_mc: eui.Group;
        public city3_mc: eui.Group;
        public city6_mc: eui.Group;
        public city4: eui.Image;
        public liemogrp: eui.Group;

        public yungrps: eui.Group;

        private Stand: egret.tween.TweenGroup;

        public TieJiangbtn: eui.Image;

        public grpliem: eui.Group;


        public CityinitUI(): void {
            //自适应
            Sys_Gameset.setEXMLAuto(this);
            Sys_GameConfig.homecitys = this;
            //播放动画
            Sys_Gameset.playAnimation(this.Stand, true)
            var theliemo = Sys_Gameset.LoadMovieClipMovie("showit", this.liemogrp, 70, -70, "kuangshowss", -1, "liemoguang");
            theliemo.scaleX = 1
            theliemo.scaleY = 1

            //粒子效果
            var texture = RES.getRes("LoginParticle_png");
            var config = RES.getRes("LoginParticle_json");
            this.system = new particle.GravityParticleSystem(texture, config);
            this.addChild(this.system);
            this.system.y = 200;
            this.system.start()


            var texture = RES.getRes("yunpare_png");
            var config = RES.getRes("yunpare_json");
            var yunsystem = new particle.GravityParticleSystem(texture, config);
            this.yungrps.addChild(yunsystem);
            yunsystem.y = -350;
            yunsystem.start()

            //场景的动画
后面还有 165 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。