游戏配置 /scripts/common/config/common_config
export default class common_config {
public static DEBUG:boolean = true;
public static WX_APPID:string = "; //平台的账号
public static GAME_NAME:string = "football"; //游戏的名字
public static HTTP_TEST_URL:string = ""; //测试服务器地址
public static HTTP_ONLINE_URL:string = ""; //正式服务器地址
public static Platform:string = "wx"; //发布的平台的型号(wx:微信,qq:qq,)
public static GAME_VERSION:string = "1.0"; //游戏版本号
}
url地址配置 /scripts/common/net/url_config
export default class {
public static http_error = '网络繁忙';
public static http_login:string = "u/wxlogin"; //登录地址
public static http_get_config = 'base/getconfig'; //获取游戏配置
public static http_ad_money = 'base/increase_gold_coins'; //广告获取金币
public static http_game_money = 'base/get_config_coin'; //游戏获取金币
public static http_sign:string = "login/sign"; //签到地址
}
//保存到本地
btn_save_local(){
App.model_data.save_local_data();
}
//读取本地
btn_load_local(){
App.model_data.load_local_data();
}
//消息提示
btn_alert_tips(){
App.component_manager.show_alert_tips("是兄弟,就来砍我~~~~~~~");
}
//游戏加载提示
btn_alert_loading(){
App.component_manager.show_alert_loading("玩命加载中");
}
网友评论