1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- import { _decorator, Component, Node } from 'cc';
- const { ccclass, property } = _decorator;
- @ccclass('config')
- export class config {
- public static Platform = {
- platform: "douyin",
- // platform: "wx"
- }
- public static API = {
- login : "/snake/user/login",
- info : "/snake/user/info",
- get_dyopen_id : "/snake/user/get_dyopen_id",
- sync_integral : "/snake/user/sync_integral",
- user_ranking : "/snake/user/user_ranking",
- user_car_list : "/snake/user/user_car_list",
- }
- public static STATIC_API = {
- levels : "/snakestatic/levels.json",
- regions : "/snakestatic/regions.json",
- car_list : "/snakestatic/car_list.json",
- rankings: (region_id)=>{
- return `/snakestatic/rankings/${region_id}.json`
- }
- }
- public static AD_TYPE = {
- UNKNOWN:""
- }
- public static status = {
- SUCCESS:10000
- }
- public static item_type = {
- box_blue:1,
- box_zise:2,
- box_yellow:3,
- box_green:4,
- box_red:5,
- wall:6,
- coin:7,
- scores:8,
- box_fenhong:9,
- box_huanglv:10,
- box_qing:11,
- box_zi:12,
- box_huang:13,
- }
- public static buff_type = {
- dun:1, //盾无敌时间
- xing:2, //获取积分翻倍
- xi:3 //吸收周边的积分
- }
- public static collider_dir = {
- top:1,
- left:2,
- right:3
- }
- public static PREFAB={
- game:"prefabs/game"
- }
- public static AUDIO={
- loading_bgm:"bgm/loading_bgm",
- }
- public static UI = {
- ui_setting:"ui/setting",
- home:"ui/home"
- }
- }
|