【fix】面板文字跟随倍数调整
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -21,9 +21,6 @@ const AUTO_TIMES : any[] = [
|
|||||||
"10",
|
"10",
|
||||||
]
|
]
|
||||||
|
|
||||||
/** 默认消耗 */
|
|
||||||
const DEFAULT_COST = 100
|
|
||||||
|
|
||||||
@ccclass('PageMain')
|
@ccclass('PageMain')
|
||||||
export class PageMain extends BaseView {
|
export class PageMain extends BaseView {
|
||||||
/** 声音按钮 */
|
/** 声音按钮 */
|
||||||
@@ -235,10 +232,8 @@ export class PageMain extends BaseView {
|
|||||||
}
|
}
|
||||||
this._is_continuous = true
|
this._is_continuous = true
|
||||||
this.hideSelectTimes()
|
this.hideSelectTimes()
|
||||||
if (USERDATA.coin >= this._ante_data[this._ante_index].mult * DEFAULT_COST){
|
|
||||||
this.btnGameStart()
|
|
||||||
Tools.ActChild(this.btn_auto, "lab", false)
|
Tools.ActChild(this.btn_auto, "lab", false)
|
||||||
}
|
this.btnGameStart()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -346,7 +341,7 @@ export class PageMain extends BaseView {
|
|||||||
this._game_data = res
|
this._game_data = res
|
||||||
this._move_dir = res.direction
|
this._move_dir = res.direction
|
||||||
|
|
||||||
USERDATA.coin -= this._ante_data[this._ante_index].mult * DEFAULT_COST
|
USERDATA.coin -= res.use_coin
|
||||||
this.initUserData()
|
this.initUserData()
|
||||||
|
|
||||||
let steps = 0
|
let steps = 0
|
||||||
@@ -435,6 +430,7 @@ export class PageMain extends BaseView {
|
|||||||
}
|
}
|
||||||
},()=>{
|
},()=>{
|
||||||
this._is_playing = false
|
this._is_playing = false
|
||||||
|
this.resetStopGame()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -557,10 +553,10 @@ export class PageMain extends BaseView {
|
|||||||
lab.destroy()
|
lab.destroy()
|
||||||
USERDATA.coin = this._game_data.coin
|
USERDATA.coin = this._game_data.coin
|
||||||
this.initUserData()
|
this.initUserData()
|
||||||
if (USERDATA.coin >= this._ante_data[this._ante_index].mult * DEFAULT_COST && (this._now_rest_times > 0 || this._now_rest_times == -1)){
|
if (this._now_rest_times > 0 || this._now_rest_times == -1){
|
||||||
this.btnGameStart()
|
this.btnGameStart()
|
||||||
}else{
|
}else{
|
||||||
|
this.resetStopGame()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// T5是再来一次,不需要飘字
|
// T5是再来一次,不需要飘字
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 631 KiB |
@@ -1,138 +0,0 @@
|
|||||||
{
|
|
||||||
"ver": "1.0.27",
|
|
||||||
"importer": "image",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "fd8dfe8f-f174-41d6-a01d-4d6613b5dfec",
|
|
||||||
"files": [
|
|
||||||
".json",
|
|
||||||
".png"
|
|
||||||
],
|
|
||||||
"subMetas": {
|
|
||||||
"6c48a": {
|
|
||||||
"importer": "texture",
|
|
||||||
"uuid": "fd8dfe8f-f174-41d6-a01d-4d6613b5dfec@6c48a",
|
|
||||||
"displayName": "main_mask_video",
|
|
||||||
"id": "6c48a",
|
|
||||||
"name": "texture",
|
|
||||||
"userData": {
|
|
||||||
"wrapModeS": "clamp-to-edge",
|
|
||||||
"wrapModeT": "clamp-to-edge",
|
|
||||||
"imageUuidOrDatabaseUri": "fd8dfe8f-f174-41d6-a01d-4d6613b5dfec",
|
|
||||||
"isUuid": true,
|
|
||||||
"visible": false,
|
|
||||||
"minfilter": "linear",
|
|
||||||
"magfilter": "linear",
|
|
||||||
"mipfilter": "none",
|
|
||||||
"anisotropy": 0
|
|
||||||
},
|
|
||||||
"ver": "1.0.22",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
},
|
|
||||||
"f9941": {
|
|
||||||
"importer": "sprite-frame",
|
|
||||||
"uuid": "fd8dfe8f-f174-41d6-a01d-4d6613b5dfec@f9941",
|
|
||||||
"displayName": "main_mask_video",
|
|
||||||
"id": "f9941",
|
|
||||||
"name": "spriteFrame",
|
|
||||||
"userData": {
|
|
||||||
"trimType": "auto",
|
|
||||||
"trimThreshold": 1,
|
|
||||||
"rotated": false,
|
|
||||||
"offsetX": 0,
|
|
||||||
"offsetY": 0,
|
|
||||||
"trimX": 0,
|
|
||||||
"trimY": 0,
|
|
||||||
"width": 1080,
|
|
||||||
"height": 1267,
|
|
||||||
"rawWidth": 1080,
|
|
||||||
"rawHeight": 1267,
|
|
||||||
"borderTop": 0,
|
|
||||||
"borderBottom": 0,
|
|
||||||
"borderLeft": 0,
|
|
||||||
"borderRight": 0,
|
|
||||||
"packable": true,
|
|
||||||
"pixelsToUnit": 100,
|
|
||||||
"pivotX": 0.5,
|
|
||||||
"pivotY": 0.5,
|
|
||||||
"meshType": 0,
|
|
||||||
"vertices": {
|
|
||||||
"rawPosition": [
|
|
||||||
-540,
|
|
||||||
-633.5,
|
|
||||||
0,
|
|
||||||
540,
|
|
||||||
-633.5,
|
|
||||||
0,
|
|
||||||
-540,
|
|
||||||
633.5,
|
|
||||||
0,
|
|
||||||
540,
|
|
||||||
633.5,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"indexes": [
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
1,
|
|
||||||
3
|
|
||||||
],
|
|
||||||
"uv": [
|
|
||||||
0,
|
|
||||||
1267,
|
|
||||||
1080,
|
|
||||||
1267,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1080,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"nuv": [
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"minPos": [
|
|
||||||
-540,
|
|
||||||
-633.5,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"maxPos": [
|
|
||||||
540,
|
|
||||||
633.5,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"isUuid": true,
|
|
||||||
"imageUuidOrDatabaseUri": "fd8dfe8f-f174-41d6-a01d-4d6613b5dfec@6c48a",
|
|
||||||
"atlasUuid": ""
|
|
||||||
},
|
|
||||||
"ver": "1.0.12",
|
|
||||||
"imported": true,
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"userData": {
|
|
||||||
"type": "sprite-frame",
|
|
||||||
"hasAlpha": true,
|
|
||||||
"fixAlphaTransparencyArtifacts": false,
|
|
||||||
"redirect": "fd8dfe8f-f174-41d6-a01d-4d6613b5dfec@6c48a",
|
|
||||||
"compressSettings": {
|
|
||||||
"useCompressTexture": true,
|
|
||||||
"presetId": "e1UHIKee1GRqns7LEix3IH"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 97 KiB |
@@ -1,10 +1,10 @@
|
|||||||
/** 服务区域 */
|
/** 服务区域 */
|
||||||
export const enum SERVER_EREA {
|
export const enum SERVER_EREA {
|
||||||
// 一级棒横版
|
V1 = 0,
|
||||||
ZP = 0,
|
V2 = 1,
|
||||||
}
|
}
|
||||||
/** 当前服务区域配置(根据打包修改) */
|
/** 当前服务区域配置(根据打包修改) */
|
||||||
export const NOW_SERVER_EREA : SERVER_EREA = SERVER_EREA.ZP;
|
export const NOW_SERVER_EREA : SERVER_EREA = SERVER_EREA.V2;
|
||||||
|
|
||||||
// 默认地址
|
// 默认地址
|
||||||
const DEFAULT_URL = "https://dice-v3-api.yuliao666.top"
|
const DEFAULT_URL = "https://dice-v3-api.yuliao666.top"
|
||||||
@@ -15,9 +15,14 @@ const DEFAULT_TEST_VERSION = "1.0.0"
|
|||||||
|
|
||||||
/** 区域打包配置文件 */
|
/** 区域打包配置文件 */
|
||||||
const SERVER_CONFIG = {
|
const SERVER_CONFIG = {
|
||||||
// 横版一级棒
|
|
||||||
[0] : {
|
[0] : {
|
||||||
"server" : DEFAULT_URL,
|
"server" : "https://dice-game.yuliao666.top",
|
||||||
|
"site_id" : "ba5ea4dc-75bb-438d-8a3a-b8031ef89426",
|
||||||
|
"ver" : DEFAULT_TEST_VERSION,
|
||||||
|
"area" : "86",
|
||||||
|
},
|
||||||
|
[1] : {
|
||||||
|
"server" : "https://dice-v3-api.yuliao666.top",
|
||||||
"site_id" : "ba5ea4dc-75bb-438d-8a3a-b8031ef89426",
|
"site_id" : "ba5ea4dc-75bb-438d-8a3a-b8031ef89426",
|
||||||
"ver" : DEFAULT_TEST_VERSION,
|
"ver" : DEFAULT_TEST_VERSION,
|
||||||
"area" : "86",
|
"area" : "86",
|
||||||
|
|||||||
Reference in New Issue
Block a user