# egret游戏框架 **Repository Path**: yaohuitao/egret_game_framework ## Basic Information - **Project Name**: egret游戏框架 - **Description**: 场景切换,loading等 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-09-05 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

摩比秀 2018

Powered by Egret 5.2.8 & Dragonbones & Eui

# 地址参数说明 uid:学员id, area:学员地区, key:"加密信息",md5('ipad&'+uid); scene:"要进入的场景,如没有,则进入地图页" //如:pk,map,home,pet,active,shop等 如 ?uid=ae0ccfef768511e6bd4b00163e02173d&key=5982e971db42726169118be5e2f8afe6&area=010
# 本地存储 localStorage / sessionStorage 说明 userInfo:{ uid:"ae0ccfef768511e6bd4b00163e02173d", area:"010", key:"5982e971db42726169118be5e2f8afe6" }, v:"2018090401", //游戏版本 # 各组件用法 ## Toast this.addChild(new Toast("hello word",2000)); ## Loading let loading = new Loading(); this.addChild(loading) setTimeout(()=>{ loading.removeLoading(); },2000) ## MessageBox let msg = new MessageBox("哈哈哈",()=>{ console.log("sure") this.goHomeBtn.scaleX = this.goHomeBtn.scaleY =2; this.addChild(new MessageBox("真是极好的",()=>{})); },{ showCancelButton:false, cancleBtnText:"算了,再想想", cancleFn:()=>{ console.log("不买了") } }) this.addChild(msg); ## 网络请求类 RequestFn.instance.Ajax("rest/sys/time",(res)=>{ console.log(res); },()=>{ console.log("失败") }); ## 龙骨类