格式化代码
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
|
||||
|
||||
|
||||
export const config = {
|
||||
|
||||
|
||||
DESIGN_WIDTH: 1080,
|
||||
DESIGN_HEIGHT: 1920,
|
||||
H_SCREEN: false, // 是否横屏
|
||||
@@ -10,22 +7,21 @@ export const config = {
|
||||
DEBUG: false,
|
||||
OPEN_GUIDE: true,
|
||||
|
||||
MISTAKE_MAX: 3,//最大错误数
|
||||
MISTAKE_MAX: 3, // 最大错误数
|
||||
|
||||
STAGE_TYPE: {//关卡类型
|
||||
MAIN: 1,//主线
|
||||
DC: 2,//每日挑战
|
||||
STAGE_TYPE: { // 关卡类型
|
||||
MAIN: 1, // 主线
|
||||
DC: 2// 每日挑战
|
||||
},
|
||||
|
||||
DEFAULT_STAGE_ID: "main",//主线关卡标识
|
||||
|
||||
DEFAULT_STAGE_ID: "main", // 主线关卡标识
|
||||
|
||||
DIFFICULTY_TYPE: {//难度
|
||||
DIFFICULTY_TYPE: { // 难度
|
||||
Easy: "Easy",
|
||||
Medium: "Medium",
|
||||
Hard: "Hard",
|
||||
Expert: "Expert",
|
||||
Extreme: "Extreme",
|
||||
Extreme: "Extreme"
|
||||
},
|
||||
DIFFICULTY_LIST: ["Easy", "Medium", "Hard", "Expert", "Extreme"],
|
||||
|
||||
@@ -33,13 +29,10 @@ export const config = {
|
||||
WHITE: "#ffffff",
|
||||
GREY: "#f0f2f7",
|
||||
RED: "#ef3e67",
|
||||
BLUE: "#2559c0",
|
||||
BLUE: "#2559c0"
|
||||
},
|
||||
|
||||
MONTH_ABBRS: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
||||
MONTH_FULLNAMES: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
||||
|
||||
MONTH_FULLNAMES: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { config } from "./config";
|
||||
|
||||
import { config } from "./config"
|
||||
|
||||
export const respath = {
|
||||
home_ui_res: "resources/Home.lh",
|
||||
@@ -7,7 +6,7 @@ export const respath = {
|
||||
|
||||
stage_ui_res: function func(): string {
|
||||
return config.H_SCREEN ? "resources/Stage_H.lh" : "resources/Stage.lh"
|
||||
},
|
||||
},
|
||||
|
||||
gamepause_ui_res: function func(): string {
|
||||
return config.H_SCREEN ? "resources/GamePause_H.lh" : "resources/GamePause.lh"
|
||||
@@ -18,8 +17,7 @@ export const respath = {
|
||||
gamedone_ui_res: function func(isClassic: boolean): string {
|
||||
if (isClassic) {
|
||||
return config.H_SCREEN ? "resources/GameDone_Normal_H.lh" : "resources/GameDone_Normal.lh"
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return config.H_SCREEN ? "resources/GameDone_DC_H.lh" : "resources/GameDone_DC.lh"
|
||||
}
|
||||
},
|
||||
@@ -27,7 +25,7 @@ export const respath = {
|
||||
score_add_ui_res: function func(): string {
|
||||
return config.H_SCREEN ? "resources/ScoreAdd_H.lh" : "resources/ScoreAdd.lh"
|
||||
},
|
||||
|
||||
|
||||
common_tips_ui_res: "resources/CommonTips.lh",
|
||||
difficulty_ui_res: "resources/Difficulty.lh",
|
||||
|
||||
@@ -50,16 +48,15 @@ export const respath = {
|
||||
return config.H_SCREEN ? "resources/dc/TrophyRoomCell_H.lh" : "resources/dc/TrophyRoomCell.lh"
|
||||
},
|
||||
|
||||
//===============================
|
||||
// ===============================
|
||||
home_top_dc_bg_normal: "atlas/images/bg_dc_top1.png",
|
||||
home_top_dc_bg_finish: "atlas/images/bg_dc_top2.png",
|
||||
dc_top_bg_normal: "atlas/images/img_dc_bg2.png",
|
||||
dc_top_bg_month_finish: "atlas/images/img_dc_finished.png",
|
||||
|
||||
|
||||
trophy_bg_light_gold: "atlas/trophys/img_trophy_bg_light_gold.png",
|
||||
trophy_bg_light_grey: "atlas/trophys/img_trophy_bg_light_gray.png",
|
||||
|
||||
|
||||
trophy_01: "atlas/trophys/trophy_01.png",
|
||||
trophy_02: "atlas/trophys/trophy_02.png",
|
||||
trophy_03: "atlas/trophys/trophy_03.png",
|
||||
@@ -71,6 +68,5 @@ export const respath = {
|
||||
trophy_09: "atlas/trophys/trophy_09.png",
|
||||
trophy_10: "atlas/trophys/trophy_10.png",
|
||||
trophy_11: "atlas/trophys/trophy_11.png",
|
||||
trophy_12: "atlas/trophys/trophy_12.png",
|
||||
trophy_12: "atlas/trophys/trophy_12.png"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user