Commit 7a23a03a authored by 李维's avatar 李维

dev commit

parent d8d2dc15
...@@ -259,6 +259,19 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -259,6 +259,19 @@ export class PlayComponent implements OnInit, OnDestroy {
}) })
this.render(bg_Desk.ref, zIndexMap.mainDesk) this.render(bg_Desk.ref, zIndexMap.mainDesk)
let bg_Desk_bg = this.g_cartoon.createCartoonElementImageFunc("main-background-desk", "hengban_bg", (w ,h)=>{
return {
sx: this.g_canvasWidth / w,
sy: (this.g_canvasHeight / 2 - 315 * this.g_mapScale) / h
}
}, (w, h)=>{
return {
x: this.g_canvasWidth / 2,
y: this.g_canvasHeight / 2 + 315 * this.g_mapScale + (this.g_canvasHeight / 2 - 315 * this.g_mapScale) / 2
}
})
this.render(bg_Desk_bg.ref, zIndexMap.mainDesk)
let bg_Light = this.g_cartoon.createCartoonElementImageFunc("main-background-light", "dengqiu1", (w ,h)=>{ let bg_Light = this.g_cartoon.createCartoonElementImageFunc("main-background-light", "dengqiu1", (w ,h)=>{
return { return {
sx: 1032 * this.g_mapScale / w, sx: 1032 * this.g_mapScale / w,
...@@ -894,7 +907,6 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -894,7 +907,6 @@ export class PlayComponent implements OnInit, OnDestroy {
}else{ }else{
this.g_enableMapDown = true; this.g_enableMapDown = true;
} }
return return
} }
this.g_cartoon.stopAllAudio(); this.g_cartoon.stopAllAudio();
......
...@@ -38,6 +38,7 @@ const localImages = { ...@@ -38,6 +38,7 @@ const localImages = {
'hand': 'assets/play/hand.png', 'hand': 'assets/play/hand.png',
'hand2': 'assets/play/hand2.png', 'hand2': 'assets/play/hand2.png',
'hengban': 'assets/play/hengban.png', 'hengban': 'assets/play/hengban.png',
'hengban_bg': 'assets/play/hengban_bg.png',
'huaban': 'assets/play/huaban.png', 'huaban': 'assets/play/huaban.png',
'lianzi0': 'assets/play/lianzi0.png', 'lianzi0': 'assets/play/lianzi0.png',
'lianzi3': 'assets/play/lianzi3.png', 'lianzi3': 'assets/play/lianzi3.png',
......
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