Commit 4fb8eb2f authored by Master Q's avatar Master Q

添加 scaleEndProportion config

parent 8fcb9df7
...@@ -4,53 +4,9 @@ ...@@ -4,53 +4,9 @@
"keys": "bucket_GE.png,countDown.svga,mountain.svga,normalGamer.svga,powerBall.svga,scene-back.jpg,speedShow.svga,speedUpGamer.svga,tree.svga", "keys": "bucket_GE.png,countDown.svga,mountain.svga,normalGamer.svga,powerBall.svga,scene-back.jpg,speedShow.svga,speedUpGamer.svga,tree.svga",
"name": "GameRes" "name": "GameRes"
}, },
{
"keys": "helpBg.png,helpBtn.png",
"name": "HelpPanel"
},
{
"keys": "5cab5037-81fc-4246-96e5-b1353f339275.png,7458bc9a-d07d-4a7c-972b-4de7ed7c040d.png,7e4500a1-83be-4686-a46b-67147ed44ddd.png,845ae874-998e-4f68-8e79-641eb77466f3.png,a122de8a-beed-4442-9252-8c047986f371.png,ad9681a6-9eb2-40ad-8c2c-0b3ad121a00d.png,b48ee079-b3d7-4371-b294-944200eccba9.png,cd1a775d-36c9-4c8e-9c67-8191070068e9.png",
"name": "LoadingEffect"
},
{
"keys": "noTimeBg.png,noTimeBtn.png",
"name": "NoTimePanel"
},
{
"keys": "overBtn.png,overNoPrizeBg.png,overPrizeBg.png",
"name": "OverPanel"
},
{
"keys": "rankBg.png,rankIcon.png",
"name": "RankPanel"
},
{
"keys": "rankNoPrizeBg.png,rankNoPrizeBtn.png,rankPrizeBg.png,rankPrizeBtn.png",
"name": "RankPrizePanel"
},
{
"keys": "reviveBg.png,reviveCancel.png,reviveOk.png",
"name": "RevivePanel"
},
{
"keys": "rulePanelBg.png,rulePanelBtn.png",
"name": "RulePanel"
},
{ {
"keys": "comCloseBtn.png,com_bg.jpg,toastBg.png,waitingBg.png,waitingRot.png", "keys": "comCloseBtn.png,com_bg.jpg,toastBg.png,waitingBg.png,waitingRot.png",
"name": "common" "name": "common"
},
{
"keys": "gameMusicOff.png,gameMusicOn.png,gameScore+.png,gameScore0.png,gameScore1.png,gameScore2.png,gameScore3.png,gameScore4.png,gameScore5.png,gameScore6.png,gameScore7.png,gameScore8.png,gameScore9.png,guide.png",
"name": "game"
},
{
"keys": "btnTipBg.png,prizeBtn.png,progressBg.png,progressFill.png,progressLabel.png,rankBtn.png,ruleBtn.png,startBtn.png,taskBtn.png",
"name": "index"
},
{
"keys": "loading_effect.png,loading_title.png",
"name": "loading"
} }
], ],
"path": "./resource/" "path": "./resource/"
......
...@@ -4,53 +4,9 @@ export const ResJson = { ...@@ -4,53 +4,9 @@ export const ResJson = {
"keys": "bucket_GE.png,countDown.svga,mountain.svga,normalGamer.svga,powerBall.svga,scene-back.jpg,speedShow.svga,speedUpGamer.svga,tree.svga", "keys": "bucket_GE.png,countDown.svga,mountain.svga,normalGamer.svga,powerBall.svga,scene-back.jpg,speedShow.svga,speedUpGamer.svga,tree.svga",
"name": "GameRes" "name": "GameRes"
}, },
{
"keys": "helpBg.png,helpBtn.png",
"name": "HelpPanel"
},
{
"keys": "5cab5037-81fc-4246-96e5-b1353f339275.png,7458bc9a-d07d-4a7c-972b-4de7ed7c040d.png,7e4500a1-83be-4686-a46b-67147ed44ddd.png,845ae874-998e-4f68-8e79-641eb77466f3.png,a122de8a-beed-4442-9252-8c047986f371.png,ad9681a6-9eb2-40ad-8c2c-0b3ad121a00d.png,b48ee079-b3d7-4371-b294-944200eccba9.png,cd1a775d-36c9-4c8e-9c67-8191070068e9.png",
"name": "LoadingEffect"
},
{
"keys": "noTimeBg.png,noTimeBtn.png",
"name": "NoTimePanel"
},
{
"keys": "overBtn.png,overNoPrizeBg.png,overPrizeBg.png",
"name": "OverPanel"
},
{
"keys": "rankBg.png,rankIcon.png",
"name": "RankPanel"
},
{
"keys": "rankNoPrizeBg.png,rankNoPrizeBtn.png,rankPrizeBg.png,rankPrizeBtn.png",
"name": "RankPrizePanel"
},
{
"keys": "reviveBg.png,reviveCancel.png,reviveOk.png",
"name": "RevivePanel"
},
{
"keys": "rulePanelBg.png,rulePanelBtn.png",
"name": "RulePanel"
},
{ {
"keys": "comCloseBtn.png,com_bg.jpg,toastBg.png,waitingBg.png,waitingRot.png", "keys": "comCloseBtn.png,com_bg.jpg,toastBg.png,waitingBg.png,waitingRot.png",
"name": "common" "name": "common"
},
{
"keys": "gameMusicOff.png,gameMusicOn.png,gameScore+.png,gameScore0.png,gameScore1.png,gameScore2.png,gameScore3.png,gameScore4.png,gameScore5.png,gameScore6.png,gameScore7.png,gameScore8.png,gameScore9.png,guide.png",
"name": "game"
},
{
"keys": "btnTipBg.png,prizeBtn.png,progressBg.png,progressFill.png,progressLabel.png,rankBtn.png,ruleBtn.png,startBtn.png,taskBtn.png",
"name": "index"
},
{
"keys": "loading_effect.png,loading_title.png",
"name": "loading"
} }
], ],
"path": location.origin + "/resource/" "path": location.origin + "/resource/"
......
...@@ -35,6 +35,7 @@ export type ConveyorBeltType = { ...@@ -35,6 +35,7 @@ export type ConveyorBeltType = {
ParkourGameEleList?: ParkourGameEleType[], ParkourGameEleList?: ParkourGameEleType[],
k?: number, k?: number,
b?: number, b?: number,
scaleEndProportion?: number, // 缩放结束比例
common?: { common?: {
} }
...@@ -108,7 +109,8 @@ export const ParkourGameConfig: ParkourGameConfigInfer = { ...@@ -108,7 +109,8 @@ export const ParkourGameConfig: ParkourGameConfigInfer = {
x: -308, x: -308,
y: 1624 y: 1624
}, },
startTyl: 400 startTyl: 400,
scaleEndProportion: 0.8
}, },
{ {
startPos: { startPos: {
...@@ -118,7 +120,8 @@ export const ParkourGameConfig: ParkourGameConfigInfer = { ...@@ -118,7 +120,8 @@ export const ParkourGameConfig: ParkourGameConfigInfer = {
endPos: { endPos: {
x: 355, y: 1624 x: 355, y: 1624
}, },
startTyl: 400 startTyl: 400,
scaleEndProportion: 0.8
}, },
{ {
startPos: { startPos: {
...@@ -128,7 +131,8 @@ export const ParkourGameConfig: ParkourGameConfigInfer = { ...@@ -128,7 +131,8 @@ export const ParkourGameConfig: ParkourGameConfigInfer = {
endPos: { endPos: {
x: 1050, y: 1624 x: 1050, y: 1624
}, },
startTyl: 300 startTyl: 300,
scaleEndProportion: 0.8
} }
], ],
ParkourGameEleList: [ ParkourGameEleList: [
......
...@@ -168,7 +168,7 @@ export class ConveyorBelt extends FYGE.Container { ...@@ -168,7 +168,7 @@ export class ConveyorBelt extends FYGE.Container {
onReset() { onReset() {
this.totalY = 0 this.totalY = 0
this._ty = 0 this._ty = 0
this.scaleEndProportion = 0.8 this.scaleEndProportion = this.props.scaleEndProportion || 1
this.tyl = this.props.startTyl || 0 this.tyl = this.props.startTyl || 0
this.isMoving = false this.isMoving = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment