Compare commits
31 Commits
c9e3aaffb6
...
5574e905a7
Author | SHA1 | Date | |
---|---|---|---|
5574e905a7 | |||
17c1e96ceb | |||
1c3885ff30 | |||
0c482ad796 | |||
0d1872c16c | |||
|
56713afd47 | ||
a7d11e8600 | |||
03c14b4ab8 | |||
1c101b549a | |||
2d79c528a2 | |||
6e2e6149f9 | |||
53b43bb6e1 | |||
|
2e9308b11e | ||
|
266264e614 | ||
|
f7254bb31c | ||
426a61972a | |||
53b06a58ff | |||
97c5998a01 | |||
105a35c087 | |||
d818ff36ff | |||
30b1731ebc | |||
cd6d511175 | |||
74e903905e | |||
99b6550fe1 | |||
e35c59ebf5 | |||
|
6dbdeab823 | ||
|
576a5e0a3b | ||
d391361900 | |||
db464dcde7 | |||
469cb98bc7 | |||
|
26aae0282f |
@ -1 +1 @@
|
||||
N4IgZgNg9lBOCSATEAuEBnALrApjzADAIwgA0IAFjrFKqAJYC2AhgOY6qXVQB0ADgDtWZEMwFNmmDijDMI6HOQHNG0kAGFmTERABuqIuQp8WAD1QBOKxaN8DBB+RbKzqALSGQz5qgLlJANb2fiCIOGDBTmERKCGMUAI4AJ6+5DimdrFpAI4ArvQmOAKYqADaALrk9FKM6HQgAMYJWGKYdSigAEYwQSiekCl9AL7kmDDydCMgOHkF7cBDU9AN9Yj0uA2Y9AmcuXbk5igArOSDFlOQbPMg1TiMACL4WhCo2LmKILkKAEL4AO54AQAGXorAoJRQbw+AH1oQocIhYagAOzIgAsBAAHOiAEwANnIsNgYkR0JR6KxuIJolwzHapVALjUAB1cmicAROqyjg00TiRCw+PSNFpGBQoKoQOURoyVCy2RyubkeXyBcwhWUQAArei5Vi5MRSmUgJmcVnsznc3n8pzq4UAaQAKgA1I2kWWStCs5H4nHenFgEi2jUoUogJ3OgBi/Ol7pNcrNuR9eL9SYDQa8ds1rCgEEQAWSbo98otSpVNszIbDnXoFC+uVoseLiYtzCtquDwp1zCgmDEwib8c9IHNHLbyutaqrGCoQgEunFksHpq9CoI4/LU+F6Ao9Hni44y4Tq+TqZ9ga3mp1CJ7RaH8tP/ovnc1WFw+GIIjfeEIFf1/YaCh+xEf8hEA/sY2NFcRzTFMnwzQVhVMege2Q/tPyPYd/TgtNn0rJCUKgNChAISDKkoZhYGQLIQFhICqPUXM4CRNBcGQQloVuRgAAk90wFiKg4iAcGYXQcCBKAGhYhZyE6f5AQAQUwPsGgCe5JB8FABFyCAIA43R6HQW5SXqb8PxISFYHeKYgOwBFUBxch0ACehdNSDAXN0gA5Y8YLxI4OREWE1nQZhOmEkyOgwOzzLKUoiBxHFKgqaULlzaAAVgelyKwHAQ2pFotiwegGmuMY+wgR0mGkIgjmRPEAGYGosI4iB4Zq8R9CxqQaXJYFgKrPRxDFkR4HFrAmibkVsdzOkkTBhIMJwEkLGj0kyEI5uU4T1JYdh3L4KBDISXa2GkEJ0mwZhTv2mj4jE+51hwTYIEGEJQQEOAcAAZSkEMQhaWAISOHFSJ4c4bMo6iQEvKKzMICzQEFMo/FR0g0Yx9HSFKDxSFx/HDFxvwCbxwmydJ0nKgx1LyBoXIpE4ABRKB7lYeB0HuABZdRsm+TmFNyAhvgaABFABeMWRF0OR3nmKYxKy7YBETCwcAaxBuU6I4CG9ZgLA13ILFInXlUxI40StAgwFZbqiAich9XoaHEE6BrmCxCwiGhHBMTAAhoTREG8WhZhfa9ghEDRQP3canE8BELZPSIZEGrRTE8WIdOGoSoYgA
|
||||
N4IgZgNg9lBOCSATEAuEBnALrApjzADAIwgA0IAFjrFKqAJYC2AhgOY6qXVQB0ADgDtWZEMwFNmmDijDMI6HOQHNG0kAGFmTERABuqIuQp8WADwMFLRvhasgWysxfIPmqAuUkBrZyEQ4wX0Z/QJQiD3soARwAT3dyHFMbFAicAEcAV3oTHAFMVABtAF1yeilGdDoQAGMorDFMSpRQACMYHzDySDiwgF9yTBh5On6QdKy+JuBe0ehqqsR6XGrMeijODJtycxQAVnIe8NHINimQMpxGABF8LQhUbAzFEAyFACF8AHc8AQAZelYFHyKEezwA+mCFDhEBDUABOAAsuwRAGYCAAmAgADnIENgYhhYPhSNRGOxnlwzCaBVAjjUAB0MgicAQWozdtUEeiRCxJoUNFpGBQoKoQEV+rSVAymSy2RkOVyecw+SgCiAAFb0DKsDJiMUSkB0ziM5ms9mc7kuZXUkAAaQAKgA1fWkSWitCMgDs6IAbOiveiwCQrSq1Q7HQAxbni12GqXGjLev0BoNK0MgVhQCCILyxF1u6WmuUKy32a38lr0CivDK0GMFhOm5jmxUhm2a5hQTBiYT1uPukAmlnN+UWtM29BUIQCXTC0V9o0emUEEcl8f8yf0GdzjgL+NLpP+xOB4Nl9Oa6Gd/P96WHlOn3kT7B4QinrC4fAYkQ6nvVCg979dSEP8e2jA1F0HY9k2PVM235Ux6E7BCe2Ia8IIDaDvVgs8bWQqBkKEL9xRKDAvGyVBZHkZ5/1gZAUlxMEaMQdQszgWE0FwZAGIuRgAAkt0wdjigYiAcGYXQcF+KBqnY6YGN0eh0AuQkqnfF9UJBWAnlGFovh+ABBTBu2qLwrkkNwUAEDIIAgY4s2gb5YGpEisBwFVDDLTAOgidA+DwOjwnId9fDYehfAE3xagEIJQvmGQ5AUILu1WLB6GqM5Bm7CB7SYaR0SIIhfThH0eEsMriCxT1PXIaoMlgWAcvdFFPSxAgeCIOFOq6rqsXRfZKGSCIWkkTBRPiSJoh6VIknG4ajNEsyWHYca+CgRSokWthpGm7BmE25b6MiCSriWHAVggKbSlYAQ4BwABlKQVR87tYGBdFfRRLEER4BEZiMZhaM4ddmlGGgMikThbSgKN1ARVgAF4RF0OQnimUYJKctZoqXOEcBRRB2RaXYCC9Zg4QJjI4TJdksWRc0CDARliqIQJyB1eg6JAFEWlkHBdiIFEwV2RBECIMFmU5ME4QFsWfWqIgcA6nBPTJ5qRFWd0iE9FFdhRKm4U9XYDZ9XogA
|
||||
|
@ -649,7 +649,7 @@ mainStyle_m
|
||||
|
||||
/* mainStyle_m
|
||||
tooltip : 主要样式设置
|
||||
default : ["project/images/bg.jpg", "project/images/bg.jpg", "color: white", "background-color: #32369F; opacity: 0.85; color: #FFFFFF; border: #FFFFFF 2px solid; caret-color: #FFD700;", "url(project/materials/ground.png) repeat", "url(project/materials/ground.png) repeat", "url(project/materials/ground.png) repeat", "background-color: black; color: white", "255,255,255,1", "rgba(255,255,255,1)", "204,204,204,1", "rgba(204,204,204,1)", "255,215,0,1", "rgba(255,215,0,1)", "Verdana"]
|
||||
default : ["project/images/bg.jpg", "project/images/bg.jpg", "color: white", "background-color: #32369F; opacity: 0.85; color: #FFFFFF; border: #FFFFFF 2px solid; caret-color: #FFD700;", "url(project/materials/ground.webp) repeat", "url(project/materials/ground.webp) repeat", "url(project/materials/ground.webp) repeat", "background-color: black; color: white", "255,255,255,1", "rgba(255,255,255,1)", "204,204,204,1", "rgba(204,204,204,1)", "255,215,0,1", "rgba(255,215,0,1)", "Verdana"]
|
||||
helpUrl : /_docs/#/instruction
|
||||
var code = {
|
||||
startBackground: EvalString_0,
|
||||
@ -788,7 +788,7 @@ splitImagesOne
|
||||
/* splitImagesOne
|
||||
tooltip : 图片裁剪项
|
||||
helpUrl : /_docs/#/instruction
|
||||
default : ['hero.png', 32, 32, 'hero_']
|
||||
default : ['hero.webp', 32, 32, 'hero_']
|
||||
material : ["./project/images/:images", "EvalString_0"]
|
||||
allImages : ['EvalString_0']
|
||||
var code = '{"name": "'+EvalString_0+'", "width": '+Int_0+', "height": '+Int_1+', "prefix": "'+EvalString_1+'"},\n';
|
||||
@ -853,10 +853,12 @@ action
|
||||
| wait_s
|
||||
| waitAsync_s
|
||||
| stopAsync_s
|
||||
| op_s
|
||||
| battle_s
|
||||
| battle_1_s
|
||||
| openDoor_s
|
||||
| closeDoor_s
|
||||
| changebg_s
|
||||
| changeFloor_s
|
||||
| changePos_s
|
||||
| setViewport_s
|
||||
@ -952,7 +954,9 @@ action
|
||||
| removeMouse_s
|
||||
| drawWarning_s
|
||||
| addPop_s
|
||||
| animationDrawable_s
|
||||
| over_s
|
||||
| overlist_s
|
||||
| playStereo_s
|
||||
| moveStereo_s
|
||||
| pass_s
|
||||
@ -1063,22 +1067,61 @@ return code+',\n';
|
||||
|
||||
over_s
|
||||
: '旁白文字' ':' EvalString BGNL? Newline
|
||||
'背景' EvalString? '持续时长' Int? '渐入渐出时长' Int? '音频文件' EvalString? BGNL? Newline
|
||||
'背景' EvalString? '回忆滤镜' Bool? '持续帧数' Int? '渐入渐出帧数' Int? '音频文件' EvalString? BGNL? Newline
|
||||
'文字颜色' ColorString? Colour '描边颜色' ColorString? Colour '字体信息' EvalString? Newline
|
||||
/*over_s
|
||||
tooltip : over:这段话将出现在屏幕中心
|
||||
helpUrl : /_docs/#/instruction
|
||||
allImages : ['EvalString_1']
|
||||
allSounds : ['EvalString_2']
|
||||
default : ["这段话将在屏幕中心","bg_5043.png",3000,30,"","255,255,255,1",'rgba(255,255,255,1)',"0,0,0,1",'rgba(0,0,0,1)','bold 48px Verdana']
|
||||
var code = '{"type": "over", "text": "'+EvalString_0+'","image":"'+EvalString_1+'","time":'+Int_0+',"hidetime":'+Int_1+',"sound":"'+EvalString_2+'","textColor": ['+ColorString_0+'], "boldColor": ['+ColorString_1+'], "font": "'+EvalString_3+'"},\n';
|
||||
default : ["这段话将在屏幕中心","bg_5043.webp",false,50,30,"","255,255,255,1",'rgba(255,255,255,1)',"0,0,0,1",'rgba(0,0,0,1)','bold 48px Verdana']
|
||||
var code = '{"type": "over", "text": "'+EvalString_0+'","image":"'+EvalString_1+'","memory":'+Bool_0+',"time":'+Int_0+',"hidetime":'+Int_1+',"sound":"'+EvalString_2+'","textColor": ['+ColorString_0+'], "boldColor": ['+ColorString_1+'], "font": "'+EvalString_3+'"},\n';
|
||||
return code;
|
||||
*/;
|
||||
|
||||
overlist_s
|
||||
: '背景' EvalString? '回忆滤镜' Bool? '每句渐入渐出帧数' Int? BGNL? Newline
|
||||
overtextList+? Newline
|
||||
/*overlist_s
|
||||
tooltip : overlist:多行滚动旁白
|
||||
helpUrl : /_docs/#/instruction
|
||||
allImages : ['EvalString_0']
|
||||
default : ["bg_5043.webp",false,30,[{ "text":"" ,"sound":"","time":50,"textColor":"255,255,255,1","boldColor":"0,0,0,1","font":"bold 48px Verdana","frame":0}]]
|
||||
var list=',"list": [\n'+overtextList_0.slice(0,-1)+'\n]'
|
||||
var code = '{"type": "overlist", "image": "'+EvalString_0+'","memory":'+Bool_0+',"hidetime":'+Int_0+''+list+' },\n';
|
||||
return code;
|
||||
*/;
|
||||
|
||||
overtextList
|
||||
: overtext
|
||||
| overtextEmpty;
|
||||
|
||||
overtext
|
||||
: '文字' EvalString? BGNL? Newline
|
||||
'音频文件(需注册)' EvalString? '显示帧数' Int? '文字颜色' ColorString? Colour '描边颜色' ColorString? Colour '字体信息' EvalString? Newline
|
||||
|
||||
/* overtext
|
||||
tooltip : 多行滚动字幕
|
||||
helpUrl : /_docs/#/instruction
|
||||
default : ["","",50,"255,255,255,1",'rgba(255,255,255,1)',"0,0,0,1",'rgba(0,0,0,1)','bold 48px Verdana']
|
||||
colour : this.subColor
|
||||
allSounds : ['EvalString_1']
|
||||
|
||||
return '{ "text":"'+EvalString_0+'","sound": "'+EvalString_1+'","time":'+Int_0+',"textColor": ['+ColorString_0+'],"boldColor": ['+ColorString_1+'],"font": "'+EvalString_2+'","frame":0},'
|
||||
*/;
|
||||
|
||||
overtextEmpty
|
||||
: Newline
|
||||
|
||||
/* overtextEmpty
|
||||
var code = [];
|
||||
return code;
|
||||
*/;
|
||||
|
||||
cgtext_s
|
||||
: '背景' EvalString? '移除对话框' Bool? '头像' EvalString?'名字' EvalString?'坐标PX' Number'打字间隔' Int? BGNL? Newline
|
||||
'音频文件(需在全塔属性——使用音效注册)'EvalString? BGNL? Newline
|
||||
EvalString? BGNL? Newline textcgDrawingList*? Newline
|
||||
: '背景' EvalString? '回忆滤镜' Bool? '移除对话框' Bool? '头像' EvalString?'名字' EvalString?'坐标PX' Number'打字间隔' Int? BGNL? Newline
|
||||
'自动等待时长' Int '音频文件(需在全塔属性——使用音效注册)'EvalString? BGNL? Newline
|
||||
EvalString? BGNL? Newline textcgDrawingList+? Newline
|
||||
|
||||
|
||||
/* cgtext_s
|
||||
@ -1086,10 +1129,10 @@ tooltip : cgtext:显示一段包含cg的文字(剧情)
|
||||
helpUrl : /_docs/#/instruction
|
||||
allImages : ['EvalString_0','EvalString_1']
|
||||
allSounds : ['EvalString_3']
|
||||
default : ["bg_5043.png","face_050445.png",false,"菲奥奈",-300,0,"","这句话显示在对话框内",[{ "name":"tati_050145a.png" , "px": 100,"filter":false }]]
|
||||
default : ["bg_5043.webp",false,"face_050445.webp",false,"菲奥奈",-300,0,2000,"","这句话显示在对话框内",[{ "name":"tati_050145a.webp" , "px": 100,"filter":false }]]
|
||||
var head ='{ "name": "'+EvalString_1+'", "px": '+Number_0+' }'
|
||||
var list=',"bodyList": [\n'+textcgDrawingList_0+'\n]'
|
||||
var code = '{"type": "cgtext", "bg":"'+EvalString_0+'","WindowSkin":'+Bool_0+',"head":'+head+' ,"name":"'+EvalString_2+'","time":'+Int_0+',"sound":"'+EvalString_3+'","text": "'+EvalString_4+'"'+list+' },\n';
|
||||
var list=',"bodyList": [\n'+textcgDrawingList_0.slice(0,-1)+'\n]'
|
||||
var code = '{"type": "cgtext", "bg":"'+EvalString_0+'","memory":'+Bool_0+',"WindowSkin":'+Bool_1+',"head":'+head+' ,"name":"'+EvalString_2+'","time":'+Int_0+',"wait":'+Int_1+',"sound":"'+EvalString_3+'","text": "'+EvalString_4+'"'+list+' },\n';
|
||||
return code;
|
||||
*/;
|
||||
textcgDrawingList
|
||||
@ -1102,11 +1145,11 @@ textcgDrawing
|
||||
/* textcgDrawing
|
||||
tooltip : 立绘
|
||||
helpUrl : /_docs/#/instruction
|
||||
default : ["tati_050145a.png",100,false]
|
||||
default : ["tati_050145a.webp",100,false]
|
||||
colour : this.subColor
|
||||
allImages : ['EvalString_0']
|
||||
|
||||
return '{ "name": "'+EvalString_0+'", "px": '+Number_0+',"filter":'+Bool_0+' }'
|
||||
return '{ "name": "'+EvalString_0+'", "px": '+Number_0+',"filter":'+Bool_0+' },'
|
||||
*/;
|
||||
|
||||
textcgDrawingEmpty
|
||||
@ -1129,7 +1172,7 @@ textDrawing
|
||||
/* textDrawing
|
||||
tooltip : 立绘
|
||||
helpUrl : /_docs/#/instruction
|
||||
default : ["fairy.png","null","0","0","","","","","","","",""]
|
||||
default : ["fairy.webp","null","0","0","","","","","","","",""]
|
||||
colour : this.subColor
|
||||
previewBlock : true
|
||||
allImages : ['EvalString_0']
|
||||
@ -1810,7 +1853,7 @@ setHeroIcon_s
|
||||
tooltip : setHeroIcon:更改角色行走图
|
||||
helpUrl : /_docs/#/instruction
|
||||
colour : this.dataColor
|
||||
default : ["hero.png", false]
|
||||
default : ["hero.webp", false]
|
||||
allImages : ['EvalString_0']
|
||||
material : ["./project/images/:images", "EvalString_0"]
|
||||
EvalString_0 = EvalString_0 && (', "name": "'+EvalString_0+'"');
|
||||
@ -1889,6 +1932,20 @@ var code = '{"type": "sleep", "time": '+Int_0+Bool_0+'},\n';
|
||||
return code;
|
||||
*/;
|
||||
|
||||
changebg_s
|
||||
: '上一个背景' EvalString? '回忆滤镜' Bool? '下一个背景' EvalString? '回忆滤镜' Bool? '切换帧数' Int '转场方式' Changebg_List Newline
|
||||
|
||||
|
||||
/* changebg_s
|
||||
tooltip : changebg: 剧情转场
|
||||
helpUrl : /_docs/#/instruction
|
||||
default : ["",false,"",false,30,"引入"]
|
||||
colour : this.soundColor
|
||||
allImages : ['EvalString_0','EvalString_1']
|
||||
var code = '{"type": "changebg", "img1": "'+EvalString_0+'","memory1":'+Bool_0+',"img2": "'+EvalString_1+'","memory2":'+Bool_1+',"time": '+Int_0+',"style": "'+Changebg_List_0+'"},\n';
|
||||
return code;
|
||||
*/;
|
||||
|
||||
drawWarning_s
|
||||
: '警告坐标x' PosString 'y' PosString '文字大小'Int '警告内容' EvalString? '副标题' EvalString? '不播放音效' Bool? Newline
|
||||
|
||||
@ -2419,6 +2476,95 @@ var code = '{"type": "scaleImage", "code": '+NInt_0+loc+', "scale": '+Number_0+M
|
||||
return code;
|
||||
*/;
|
||||
|
||||
animationDrawable_s
|
||||
: '帧动画' '总显示帧数' IntString '底色' ColorString? Colour '底色透明度' IntString? BGNL?Newline
|
||||
'图片序列(同一帧后面覆盖先前的,默认起始帧为0,结束帧为最后一帧)'BGNL?Newline
|
||||
'(剪裁区域不填写为全图,绘制区域不填写为全画面)'BGNL?Newline
|
||||
'(透明度100为不透明,默认为不透明,结束透明度默认与开始透明度相同)'BGNL?Newline
|
||||
animationDrawableimage+? Newline
|
||||
'音频序列(到达对应帧进行播放)'BGNL?Newline
|
||||
animationDrawablesound+? Newline
|
||||
|
||||
|
||||
/* animationDrawable_s
|
||||
tooltip : animationDrawable:帧动画图片叠加
|
||||
helpUrl : /_docs/#/instruction
|
||||
default : [30,"0, 0, 0",'rgb(0, 0, 0)',""]
|
||||
allImages : ['EvalString_0']
|
||||
colour : this.imageColor
|
||||
if (IntString_1&&(IntString_1 < 0||IntString_1>100)) throw new Error('透明度范围为0-100,0为透明,100为不透明,不填默认为不透明')
|
||||
|
||||
ColorString_0 = ColorString_0 ? (', "color": ['+ColorString_0+']') : '';
|
||||
IntString_1 = IntString_1 ? (', "globalAlpha": '+IntString_1+'') : '';
|
||||
var imageList=animationDrawableimage_0?',"imageList": [\n'+animationDrawableimage_0.slice(0,-1)+'\n]':''
|
||||
var soundList=animationDrawablesound_0?',"soundList": [\n'+animationDrawablesound_0.slice(0,-1)+'\n]':''
|
||||
var code = '{"type": "animationDrawable", "allFarme": '+IntString_0+ColorString_0+IntString_1+imageList+soundList+'},\n';
|
||||
return code;
|
||||
*/;
|
||||
|
||||
animationDrawableList
|
||||
: animationDrawableimage
|
||||
| animationDrawablesound
|
||||
| animationDrawabletextEmpty;
|
||||
|
||||
animationDrawableimage
|
||||
: '图片' EvalString? '起始帧' IntString? '起始透明度' IntString? BGNL? Newline
|
||||
'剪裁坐标cx' IntString? 'cy' IntString? '宽' IntString? '高' IntString? '绘制坐标x'IntString? 'y' IntString? '宽' IntString? '高' IntString? BGNL? Newline
|
||||
'结束帧' IntString? '结束透明度' IntString? '剪裁坐标cx' IntString? 'cy' IntString? '宽' IntString? '高' IntString? '绘制坐标x'IntString? 'y' IntString? '宽' IntString? '高' IntString? Newline
|
||||
/* animationDrawableimage
|
||||
tooltip : 帧动画图片列表
|
||||
helpUrl : /_docs/#/instruction
|
||||
default : ["","","","","","","","","","","","","","","","","","","","",""]
|
||||
colour : this.subColor
|
||||
allImages : ['EvalString_0']
|
||||
if (IntString_1&&(IntString_1 < 0||IntString_1>100)) throw new Error('透明度范围为0-100,0为透明,100为不透明,不填默认为不透明')
|
||||
if (IntString_11&&(IntString_11 < 0||IntString_11>100)) throw new Error('透明度范围为0-100,0为透明,100为不透明,不填默认为不透明')
|
||||
IntString_0 = IntString_0 ? (', "beforefarme": '+IntString_0+'') : '';
|
||||
IntString_1 = IntString_1 ? (', "globalAlpha": '+IntString_1+'') : '';
|
||||
IntString_2 = IntString_2 ? (', "cx": '+IntString_2+'') : '';
|
||||
IntString_3 = IntString_3 ? (', "cy": '+IntString_3+'') : '';
|
||||
IntString_4 = IntString_4 ? (', "cw": '+IntString_4+'') : '';
|
||||
IntString_5 = IntString_5 ? (', "ch": '+IntString_5+'') : '';
|
||||
IntString_6 = IntString_6 ? (', "x": '+IntString_6+'') : '';
|
||||
IntString_7 = IntString_7 ? (', "y": '+IntString_7+'') : '';
|
||||
IntString_8 = IntString_8 ? (', "w": '+IntString_8+'') : '';
|
||||
IntString_9 = IntString_9 ? (', "h": '+IntString_9+'') : '';
|
||||
|
||||
IntString_10 = IntString_10 ? (', "afterfarme": '+IntString_10+'') : '';
|
||||
IntString_11 = IntString_11 ? (', "aglobalAlpha": '+IntString_11+'') : '';
|
||||
IntString_12 = IntString_12 ? (', "acx": '+IntString_12+'') : '';
|
||||
IntString_13 = IntString_13 ? (', "acy": '+IntString_13+'') : '';
|
||||
IntString_14 = IntString_14 ? (', "acw": '+IntString_14+'') : '';
|
||||
IntString_15 = IntString_15 ? (', "ach": '+IntString_15+'') : '';
|
||||
IntString_16 = IntString_16 ? (', "ax": '+IntString_16+'') : '';
|
||||
IntString_17 = IntString_17 ? (', "ay": '+IntString_17+'') : '';
|
||||
IntString_18 = IntString_18 ? (', "aw": '+IntString_18+'') : '';
|
||||
IntString_19 = IntString_19 ? (', "ah": '+IntString_19+'') : '';
|
||||
|
||||
return '{ "image":"'+EvalString_0+'"'+IntString_0+IntString_1+IntString_2+IntString_3+IntString_4+IntString_5+IntString_6+IntString_7+IntString_8+IntString_9+IntString_10+IntString_11+IntString_12+IntString_13+IntString_14+IntString_15+IntString_16+IntString_17+IntString_18+IntString_19+'},'
|
||||
*/;
|
||||
|
||||
animationDrawablesound
|
||||
: '音效' EvalString? '起始帧' IntString '是否停止其他音效'Bool? Newline
|
||||
|
||||
/* animationDrawablesound
|
||||
tooltip : 帧动画配音
|
||||
helpUrl : /_docs/#/instruction
|
||||
default : ["",0,false]
|
||||
colour : this.subColor
|
||||
allSounds : ['EvalString_0']
|
||||
|
||||
return '{ "sound":"'+EvalString_0+'","startfarme":'+IntString_0+',"stopbefore":'+Bool_0+'},'
|
||||
*/;
|
||||
|
||||
animationDrawabletextEmpty
|
||||
: Newline
|
||||
|
||||
/* animationDrawabletextEmpty
|
||||
var code = [];
|
||||
return code;
|
||||
*/;
|
||||
|
||||
setCurtain_0_s
|
||||
: '更改画面色调' ColorString Colour '动画时间' IntString? BGNL? Newline '渐变方式' MoveMode_List '持续到下一个本事件' Bool '不等待执行完毕' Bool Newline
|
||||
|
||||
@ -3240,6 +3386,17 @@ var code = '{"type": "stopAsync"},\n';
|
||||
return code;
|
||||
*/;
|
||||
|
||||
op_s
|
||||
: '播放op(长按2秒可跳过)' BGNL Newline
|
||||
|
||||
|
||||
/* op_s
|
||||
tooltip : op: 开始播放op
|
||||
helpUrl : /_docs/#/instruction
|
||||
colour : this.soundColor
|
||||
var code = '{"type": "op"},\n';
|
||||
return code;
|
||||
*/;
|
||||
|
||||
callBook_s
|
||||
: '呼出怪物手册'
|
||||
@ -3676,7 +3833,7 @@ drawBackground_s
|
||||
/* drawBackground_s
|
||||
tooltip : drawBackground:绘制背景
|
||||
helpUrl : /_docs/#/instruction
|
||||
default : ["winskin.png","rgba(255,255,255,1)","0","0","100","100"]
|
||||
default : ["winskin.webp","rgba(255,255,255,1)","0","0","100","100"]
|
||||
colour : this.uiColor
|
||||
previewBlock : true
|
||||
var colorRe = MotaActionFunctions.pattern.colorRe;
|
||||
@ -3701,7 +3858,7 @@ drawSelector_s
|
||||
tooltip : drawSelector:绘制闪烁光标
|
||||
helpUrl : /_docs/#/instruction
|
||||
previewBlock : true
|
||||
default : ["winskin.png","1","0","0","100","100"]
|
||||
default : ["winskin.webp","1","0","0","100","100"]
|
||||
colour : this.uiColor
|
||||
var code = '{"type": "drawSelector", "image": "'+EvalString_0+'", "code": '+Int_0+', "x": '+PosString_0+', "y": '+PosString_1+', "width": '+PosString_2+', "height": '+PosString_3+'},\n';
|
||||
return code;
|
||||
@ -4194,6 +4351,10 @@ Bg_Fg_List
|
||||
: '背景层'|'前景层'
|
||||
/*Bg_Fg_List ['bg','fg']*/;
|
||||
|
||||
Changebg_List
|
||||
: '引入'|'引出'|'场景切换'
|
||||
/*Changebg_List ['引入','引出','场景切换']*/;
|
||||
|
||||
Bg_Fg2_List
|
||||
: '背景层'|'前景层'|'自适配'
|
||||
/*Bg_Fg2_List ['bg','fg','auto']*/;
|
||||
|
1199
_server/config.json
@ -31,7 +31,7 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
|
||||
"_range": "editor.mode.checkImages(thiseval, './project/images/')",
|
||||
"_directory": "./project/images/",
|
||||
"_transform": (function (one) {
|
||||
if (one.endsWith('.png') || one.endsWith('.jpg') || one.endsWith('.jpeg') || one.endsWith('.gif'))
|
||||
if (one.endsWith('.png') || one.endsWith('.jpg') || one.endsWith('.jpeg') || one.endsWith('.gif') || one.endsWith('.webp'))
|
||||
return one;
|
||||
return null;
|
||||
}).toString(),
|
||||
@ -51,7 +51,7 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
|
||||
"_range": "editor.mode.checkImages(thiseval, './project/tilesets/')",
|
||||
"_directory": "./project/tilesets/",
|
||||
"_transform": (function (one) {
|
||||
if (one.endsWith('.png'))
|
||||
if (one.endsWith('.png') || one.endsWith('.webp'))
|
||||
return one;
|
||||
return null;
|
||||
}).toString(),
|
||||
|
@ -116,6 +116,12 @@ var plugins_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
|
||||
"_type": "textarea",
|
||||
"_range": "typeof(thiseval)=='string' || thiseval==null",
|
||||
"_data": "警告消息"
|
||||
},
|
||||
"musicMode": {
|
||||
"_leaf": true,
|
||||
"_type": "textarea",
|
||||
"_range": "typeof(thiseval)=='string' || thiseval==null",
|
||||
"_data": "音乐鉴赏"
|
||||
}
|
||||
}
|
||||
if (obj[key]) return obj[key];
|
||||
|
291
index.html
@ -1,205 +1,226 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv='content-type' content='text/html' charset='utf-8'>
|
||||
<meta http-equiv='X-UA-Compatible' content='IE=Edge, chrome=1'>
|
||||
<meta name='author' content='ckcz123'>
|
||||
<meta name='viewport'
|
||||
content='width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes'>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html" charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge, chrome=1" />
|
||||
<meta name="author" content="ckcz123" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes"
|
||||
/>
|
||||
<title>HTML5魔塔</title>
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="screen-orientation" content="portrait">
|
||||
<meta name="full-screen" content="yes">
|
||||
<meta name="browsermode" content="application">
|
||||
<meta name="x5-orientation" content="portrait">
|
||||
<meta name="x5-fullscreen" content="true">
|
||||
<meta name="x5-page-mode" content="app">
|
||||
<link type='text/css' href='styles.css' rel='stylesheet'>
|
||||
</head>
|
||||
<meta
|
||||
name="apple-mobile-web-app-status-bar-style"
|
||||
content="black-translucent"
|
||||
/>
|
||||
<meta name="screen-orientation" content="portrait" />
|
||||
<meta name="full-screen" content="yes" />
|
||||
<meta name="browsermode" content="application" />
|
||||
<meta name="x5-orientation" content="portrait" />
|
||||
<meta name="x5-fullscreen" content="true" />
|
||||
<meta name="x5-page-mode" content="app" />
|
||||
<link type="text/css" href="styles.css" rel="stylesheet" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id='startImageBackgroundDiv'>
|
||||
<div id='startImageDiv'></div>
|
||||
<img id='startImageLogo' />
|
||||
<body>
|
||||
<div id="startImageBackgroundDiv">
|
||||
<div id="startImageDiv"></div>
|
||||
<img id="startImageLogo" />
|
||||
</div>
|
||||
<script>
|
||||
(function () {
|
||||
var startImageBackgroundDiv = document.getElementById('startImageBackgroundDiv');
|
||||
var startImageLogo = document.getElementById('startImageLogo');
|
||||
var startImageDiv = document.getElementById('startImageDiv');
|
||||
var startImageBackgroundDiv = document.getElementById(
|
||||
"startImageBackgroundDiv"
|
||||
);
|
||||
var startImageLogo = document.getElementById("startImageLogo");
|
||||
var startImageDiv = document.getElementById("startImageDiv");
|
||||
startImageLogo.onload = function () {
|
||||
startImageBackgroundDiv.style.display = 'block';
|
||||
startImageBackgroundDiv.style.display = "block";
|
||||
var onAnimationEnd = function () {
|
||||
startImageBackgroundDiv.style.display = 'none';
|
||||
startImageBackgroundDiv.style.display = "none";
|
||||
startImageLogo.classList.remove("startImageAnimation");
|
||||
startImageDiv.classList.remove("startImageDivAnimation");
|
||||
}
|
||||
};
|
||||
startImageDiv.addEventListener("webkitAnimationEnd", onAnimationEnd);
|
||||
startImageDiv.addEventListener("animationend", onAnimationEnd);
|
||||
startImageLogo.classList.add("startImageAnimation");
|
||||
startImageDiv.classList.add("startImageDivAnimation");
|
||||
// 注释下面这句话以禁止单击立刻跳过开场动画
|
||||
startImageBackgroundDiv.onclick = onAnimationEnd;
|
||||
}
|
||||
startImageLogo.onerror = function () { }
|
||||
};
|
||||
startImageLogo.onerror = function () {};
|
||||
startImageLogo.src = "logo.png";
|
||||
})();
|
||||
</script>
|
||||
<!-- injection -->
|
||||
<div id='gameGroup'>
|
||||
<p id='mainTips'>请稍候...</p>
|
||||
<img id='musicBtn'>
|
||||
<div id='startPanel'>
|
||||
<div id='startTop'>
|
||||
<div id='startTopProgressBar'>
|
||||
<div id='startTopProgress'></div>
|
||||
<div id="gameGroup">
|
||||
<p id="mainTips">请稍候...</p>
|
||||
<img id="musicBtn" />
|
||||
<div id="startPanel">
|
||||
<div id="startTop">
|
||||
<div id="startTopProgressBar">
|
||||
<div id="startTopProgress"></div>
|
||||
</div>
|
||||
<p id='startTopLoadTips'>资源即将开始加载</p>
|
||||
<p id='startTopHint'>HTML5魔塔游戏平台,享受更多魔塔游戏:<br />https://h5mota.com/</p>
|
||||
<p id="startTopLoadTips">资源即将开始加载</p>
|
||||
<p id="startTopHint">
|
||||
HTML5魔塔游戏平台,享受更多魔塔游戏:<br />https://h5mota.com/
|
||||
</p>
|
||||
</div>
|
||||
<img id='startBackground'>
|
||||
<p id='startLogo'></p>
|
||||
<div id='startButtonGroup'>
|
||||
<div id='startButtons'>
|
||||
<span class='startButton' id='playGame'>START GAME</span>
|
||||
<span class='startButton' id='loadGame'>LOAD GAME</span>
|
||||
<span class='startButton' id='CGMode'>CG MODE</span>
|
||||
<span class='startButton' id='replayGame'>REPLAY MODE</span>
|
||||
<img id="startBackground" />
|
||||
<p id="startLogo"></p>
|
||||
<div id="startButtonGroup">
|
||||
<div id="startButtons">
|
||||
<span class="startButton" id="playGame">START GAME</span>
|
||||
<span class="startButton" id="loadGame">LOAD GAME</span>
|
||||
<span class="startButton" id="CGMode">CG MODE</span>
|
||||
<span class="startButton" id="musicMode">MUSIC MODE</span>
|
||||
<span class="startButton" id="replayGame">REPLAY MODE</span>
|
||||
</div>
|
||||
<div id='levelChooseButtons'></div>
|
||||
<div id="levelChooseButtons"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id='floorMsgGroup'>
|
||||
<p id='logoLabel'></p>
|
||||
<p id='versionLabel'></p>
|
||||
<p id='floorNameLabel'></p>
|
||||
<div id="floorMsgGroup">
|
||||
<p id="logoLabel"></p>
|
||||
<p id="versionLabel"></p>
|
||||
<p id="floorNameLabel"></p>
|
||||
</div>
|
||||
<div id='statusBar' class="clearfix">
|
||||
<div id="statusBar" class="clearfix">
|
||||
<div class="status" id="floorCol">
|
||||
<img id="img-floor">
|
||||
<p class='statusLabel statusText' id='floor'></p>
|
||||
<img id="img-floor" />
|
||||
<p class="statusLabel statusText" id="floor"></p>
|
||||
</div>
|
||||
<div class="status" id="nameCol">
|
||||
<img id="img-name">
|
||||
<p class='statusLabel statusText' id='name'></p>
|
||||
<img id="img-name" />
|
||||
<p class="statusLabel statusText" id="name"></p>
|
||||
</div>
|
||||
<div class="status" id="lvCol">
|
||||
<img id="img-lv">
|
||||
<p class='statusLabel statusText' id='lv'></p>
|
||||
<img id="img-lv" />
|
||||
<p class="statusLabel statusText" id="lv"></p>
|
||||
</div>
|
||||
<div class="status" id='hpmaxCol'>
|
||||
<img id="img-hpmax">
|
||||
<p class='statusLabel statusText' id='hpmax'></p>
|
||||
<div class="status" id="hpmaxCol">
|
||||
<img id="img-hpmax" />
|
||||
<p class="statusLabel statusText" id="hpmax"></p>
|
||||
</div>
|
||||
<div class="status" id='hpCol'>
|
||||
<img id="img-hp">
|
||||
<p class='statusLabel statusText' id='hp'></p>
|
||||
<div class="status" id="hpCol">
|
||||
<img id="img-hp" />
|
||||
<p class="statusLabel statusText" id="hp"></p>
|
||||
</div>
|
||||
<div class="status" id='manaCol'>
|
||||
<img id="img-mana">
|
||||
<p class='statusLabel statusText' id='mana'></p>
|
||||
<div class="status" id="manaCol">
|
||||
<img id="img-mana" />
|
||||
<p class="statusLabel statusText" id="mana"></p>
|
||||
</div>
|
||||
<div class="status" id='atkCol'>
|
||||
<img id="img-atk">
|
||||
<p class='statusLabel statusText' id='atk'></p>
|
||||
<div class="status" id="atkCol">
|
||||
<img id="img-atk" />
|
||||
<p class="statusLabel statusText" id="atk"></p>
|
||||
</div>
|
||||
<div class="status" id='defCol'>
|
||||
<img id="img-def">
|
||||
<p class='statusLabel statusText' id='def'></p>
|
||||
<div class="status" id="defCol">
|
||||
<img id="img-def" />
|
||||
<p class="statusLabel statusText" id="def"></p>
|
||||
</div>
|
||||
<div class="status" id="mdefCol">
|
||||
<img id="img-mdef">
|
||||
<p class='statusLabel statusText' id='mdef'></p>
|
||||
<img id="img-mdef" />
|
||||
<p class="statusLabel statusText" id="mdef"></p>
|
||||
</div>
|
||||
<div class="status" id="moneyCol">
|
||||
<img id="img-money">
|
||||
<p class='statusLabel statusText' id='money'></p>
|
||||
<img id="img-money" />
|
||||
<p class="statusLabel statusText" id="money"></p>
|
||||
</div>
|
||||
<div class="status" id="expCol">
|
||||
<img id="img-exp">
|
||||
<p class='statusLabel statusText' id='exp'></p>
|
||||
<img id="img-exp" />
|
||||
<p class="statusLabel statusText" id="exp"></p>
|
||||
</div>
|
||||
<div class="status" id="upCol">
|
||||
<img id="img-up">
|
||||
<p class='statusLabel statusText' id='up'></p>
|
||||
<img id="img-up" />
|
||||
<p class="statusLabel statusText" id="up"></p>
|
||||
</div>
|
||||
<div class="status" id="skillCol">
|
||||
<img id="img-skill">
|
||||
<p class='statusLabel statusText' id='skill' style='font-style: normal'></p>
|
||||
<img id="img-skill" />
|
||||
<p
|
||||
class="statusLabel statusText"
|
||||
id="skill"
|
||||
style="font-style: normal"
|
||||
></p>
|
||||
</div>
|
||||
<div class="status" id='keyCol'>
|
||||
<span class='statusLabel' id='yellowKey' style="color:#FFCCAA"></span>
|
||||
<span class='statusLabel' id='blueKey' style="color:#AAAADD"></span>
|
||||
<span class='statusLabel' id='redKey' style="color:#FF8888"></span>
|
||||
<span class='statusLabel' id='greenKey' style="color:#88FF88"></span>
|
||||
<div class="status" id="keyCol">
|
||||
<span
|
||||
class="statusLabel"
|
||||
id="yellowKey"
|
||||
style="color: #ffccaa"
|
||||
></span>
|
||||
<span class="statusLabel" id="blueKey" style="color: #aaaadd"></span>
|
||||
<span class="statusLabel" id="redKey" style="color: #ff8888"></span>
|
||||
<span class="statusLabel" id="greenKey" style="color: #88ff88"></span>
|
||||
</div>
|
||||
<div class="status" id='pzfCol'>
|
||||
<span class='statusLabel' id='pickaxe' style="color: #BC6E27"></span>
|
||||
<span class='statusLabel' id='bomb' style="color: #FA14B9"></span>
|
||||
<span class='statusLabel' id='fly' style="color: #8DB600"></span>
|
||||
<div class="status" id="pzfCol">
|
||||
<span class="statusLabel" id="pickaxe" style="color: #bc6e27"></span>
|
||||
<span class="statusLabel" id="bomb" style="color: #fa14b9"></span>
|
||||
<span class="statusLabel" id="fly" style="color: #8db600"></span>
|
||||
</div>
|
||||
<div class="status" id="debuffCol">
|
||||
<span class='statusLabel' id='poison' style="color: #AFFCA8;"></span>
|
||||
<span class='statusLabel' id='weak' style="color: #FECCD0;"></span>
|
||||
<span class='statusLabel' id='curse' style="color: #C2F4E7;"></span>
|
||||
<span class="statusLabel" id="poison" style="color: #affca8"></span>
|
||||
<span class="statusLabel" id="weak" style="color: #feccd0"></span>
|
||||
<span class="statusLabel" id="curse" style="color: #c2f4e7"></span>
|
||||
</div>
|
||||
|
||||
<!-- 状态栏canvas化 -->
|
||||
<canvas id="statusCanvas" style="position: absolute; left: 0; top: 0;"></canvas>
|
||||
<canvas
|
||||
id="statusCanvas"
|
||||
style="position: absolute; left: 0; top: 0"
|
||||
></canvas>
|
||||
</div>
|
||||
<div id="toolBar" class="clearfix">
|
||||
<img class="tools" id='img-book'>
|
||||
<img class="tools" id='img-fly'>
|
||||
<img class="tools" id='img-toolbox'>
|
||||
<img class="tools" id='img-keyboard'>
|
||||
<img class="tools" id='img-shop'>
|
||||
<img class="tools" id='img-save'>
|
||||
<img class="tools" id='img-load'>
|
||||
<img class="tools" id='img-settings'>
|
||||
<img class="tools" id='img-btn1' style='display:none'>
|
||||
<img class="tools" id='img-btn2' style='display:none'>
|
||||
<img class="tools" id='img-btn3' style='display:none'>
|
||||
<img class="tools" id='img-btn4' style='display:none'>
|
||||
<img class="tools" id='img-btn5' style='display:none'>
|
||||
<img class="tools" id='img-btn6' style='display:none'>
|
||||
<img class="tools" id='img-btn7' style='display:none'>
|
||||
<img class="tools" id='img-btn8' style='display:none'>
|
||||
<img class="tools" id="img-book" />
|
||||
<img class="tools" id="img-fly" />
|
||||
<img class="tools" id="img-toolbox" />
|
||||
<img class="tools" id="img-keyboard" />
|
||||
<img class="tools" id="img-shop" />
|
||||
<img class="tools" id="img-save" />
|
||||
<img class="tools" id="img-load" />
|
||||
<img class="tools" id="img-settings" />
|
||||
<img class="tools" id="img-btn1" style="display: none" />
|
||||
<img class="tools" id="img-btn2" style="display: none" />
|
||||
<img class="tools" id="img-btn3" style="display: none" />
|
||||
<img class="tools" id="img-btn4" style="display: none" />
|
||||
<img class="tools" id="img-btn5" style="display: none" />
|
||||
<img class="tools" id="img-btn6" style="display: none" />
|
||||
<img class="tools" id="img-btn7" style="display: none" />
|
||||
<img class="tools" id="img-btn8" style="display: none" />
|
||||
<p class="statusLabel tools" id="hard"></p>
|
||||
</div>
|
||||
<div id="gameDraw">
|
||||
<div id="gif"></div>
|
||||
<div id="gif2"></div>
|
||||
<canvas class='gameCanvas anti-aliasing' id='bg'></canvas>
|
||||
<canvas class='gameCanvas anti-aliasing' id='event'></canvas>
|
||||
<canvas class='gameCanvas anti-aliasing' id='hero'></canvas>
|
||||
<canvas class='gameCanvas anti-aliasing' id='event2'></canvas>
|
||||
<canvas class='gameCanvas anti-aliasing' id='fg'></canvas>
|
||||
<canvas class='gameCanvas' id='damage'></canvas>
|
||||
<canvas class='gameCanvas' id='animate'></canvas>
|
||||
<canvas class='gameCanvas' id='curtain'></canvas>
|
||||
<canvas class='gameCanvas' id='ui'></canvas>
|
||||
<canvas class='gameCanvas' id='data'>此浏览器不支持HTML5</canvas>
|
||||
<canvas class="gameCanvas anti-aliasing" id="bg"></canvas>
|
||||
<canvas class="gameCanvas anti-aliasing" id="event"></canvas>
|
||||
<canvas class="gameCanvas anti-aliasing" id="hero"></canvas>
|
||||
<canvas class="gameCanvas anti-aliasing" id="event2"></canvas>
|
||||
<canvas class="gameCanvas anti-aliasing" id="fg"></canvas>
|
||||
<canvas class="gameCanvas" id="damage"></canvas>
|
||||
<canvas class="gameCanvas" id="animate"></canvas>
|
||||
<canvas class="gameCanvas" id="curtain"></canvas>
|
||||
<canvas class="gameCanvas" id="ui"></canvas>
|
||||
<canvas class="gameCanvas" id="data">此浏览器不支持HTML5</canvas>
|
||||
<div id="next"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id='inputDiv'>
|
||||
<div id='inputDialog'>
|
||||
<div id="inputDiv">
|
||||
<div id="inputDialog">
|
||||
<p id="inputMessage">请输入文字...</p>
|
||||
<input id='inputBox' type="text" autocomplete="off" />
|
||||
<button id='inputYes'>确定</button>
|
||||
<button id='inputNo'>取消</button>
|
||||
<input id="inputBox" type="text" autocomplete="off" />
|
||||
<button id="inputYes">确定</button>
|
||||
<button id="inputNo">取消</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ui-editor"></div>
|
||||
<!-- injection -->
|
||||
<script src='libs/thirdparty/lz-string.min.js'></script>
|
||||
<script src='libs/thirdparty/priority-queue.min.js'></script>
|
||||
<script src='libs/thirdparty/localforage.min.js'></script>
|
||||
<script src='libs/thirdparty/zip.min.js'></script>
|
||||
<script id='mainScript' src='main.js'></script>
|
||||
<script>main.init('play'); main.listen();</script>
|
||||
|
||||
</body>
|
||||
|
||||
<script src="libs/thirdparty/lz-string.min.js"></script>
|
||||
<script src="libs/thirdparty/priority-queue.min.js"></script>
|
||||
<script src="libs/thirdparty/localforage.min.js"></script>
|
||||
<script src="libs/thirdparty/zip.min.js"></script>
|
||||
<script id="mainScript" src="main.js"></script>
|
||||
<script>
|
||||
main.init("play");
|
||||
main.listen();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
513
main.js
@ -2,7 +2,7 @@
|
||||
function main() {
|
||||
//------------------------ 用户修改内容 ------------------------//
|
||||
|
||||
this.version = '2.10.3'; // 游戏版本号;如果更改了游戏内容建议修改此version以免造成缓存问题。
|
||||
this.version = "2.10.3"; // 游戏版本号;如果更改了游戏内容建议修改此version以免造成缓存问题。
|
||||
|
||||
this.useCompress = false; // 是否使用压缩文件
|
||||
// 当你即将发布你的塔时,请使用“JS代码压缩工具”将所有js代码进行压缩,然后将这里的useCompress改为true。
|
||||
@ -10,7 +10,7 @@ function main() {
|
||||
// 如果要进行剧本的修改请务必将其改成false。
|
||||
|
||||
this.bgmRemote = false; // 是否采用远程BGM
|
||||
this.bgmRemoteRoot = 'https://h5mota.com/music/'; // 远程BGM的根目录
|
||||
this.bgmRemoteRoot = "https://h5mota.com/music/"; // 远程BGM的根目录
|
||||
|
||||
this.isCompetition = false; // 是否是比赛模式
|
||||
this.enableSplitChunks = true; // 允许拆分压缩包
|
||||
@ -21,135 +21,134 @@ function main() {
|
||||
|
||||
this.dom = {
|
||||
body: document.body,
|
||||
gameGroup: document.getElementById('gameGroup'),
|
||||
mainTips: document.getElementById('mainTips'),
|
||||
musicBtn: document.getElementById('musicBtn'),
|
||||
enlargeBtn: document.createElement('img'),
|
||||
startPanel: document.getElementById('startPanel'),
|
||||
startTop: document.getElementById('startTop'),
|
||||
startTopProgressBar: document.getElementById('startTopProgressBar'),
|
||||
startTopProgress: document.getElementById('startTopProgress'),
|
||||
startTopLoadTips: document.getElementById('startTopLoadTips'),
|
||||
startBackground: document.getElementById('startBackground'),
|
||||
startLogo: document.getElementById('startLogo'),
|
||||
startButtonGroup: document.getElementById('startButtonGroup'),
|
||||
floorMsgGroup: document.getElementById('floorMsgGroup'),
|
||||
logoLabel: document.getElementById('logoLabel'),
|
||||
versionLabel: document.getElementById('versionLabel'),
|
||||
floorNameLabel: document.getElementById('floorNameLabel'),
|
||||
statusBar: document.getElementById('statusBar'),
|
||||
status: document.getElementsByClassName('status'),
|
||||
toolBar: document.getElementById('toolBar'),
|
||||
tools: document.getElementsByClassName('tools'),
|
||||
gameCanvas: document.getElementsByClassName('gameCanvas'),
|
||||
gif: document.getElementById('gif'),
|
||||
gif2: document.getElementById('gif2'),
|
||||
gameDraw: document.getElementById('gameDraw'),
|
||||
startButtons: document.getElementById('startButtons'),
|
||||
playGame: document.getElementById('playGame'),
|
||||
loadGame: document.getElementById('loadGame'),
|
||||
CGMode: document.getElementById('CGMode'),
|
||||
replayGame: document.getElementById('replayGame'),
|
||||
levelChooseButtons: document.getElementById('levelChooseButtons'),
|
||||
data: document.getElementById('data'),
|
||||
statusLabels: document.getElementsByClassName('statusLabel'),
|
||||
statusTexts: document.getElementsByClassName('statusText'),
|
||||
floorCol: document.getElementById('floorCol'),
|
||||
nameCol: document.getElementById('nameCol'),
|
||||
lvCol: document.getElementById('lvCol'),
|
||||
hpmaxCol: document.getElementById('hpmaxCol'),
|
||||
hpCol: document.getElementById('hpCol'),
|
||||
manaCol: document.getElementById('manaCol'),
|
||||
atkCol: document.getElementById('atkCol'),
|
||||
defCol: document.getElementById('defCol'),
|
||||
mdefCol: document.getElementById('mdefCol'),
|
||||
moneyCol: document.getElementById('moneyCol'),
|
||||
expCol: document.getElementById('expCol'),
|
||||
upCol: document.getElementById('upCol'),
|
||||
keyCol: document.getElementById('keyCol'),
|
||||
pzfCol: document.getElementById('pzfCol'),
|
||||
debuffCol: document.getElementById('debuffCol'),
|
||||
skillCol: document.getElementById('skillCol'),
|
||||
hard: document.getElementById('hard'),
|
||||
statusCanvas: document.getElementById('statusCanvas'),
|
||||
statusCanvasCtx: document
|
||||
.getElementById('statusCanvas')
|
||||
.getContext('2d'),
|
||||
inputDiv: document.getElementById('inputDiv'),
|
||||
inputMessage: document.getElementById('inputMessage'),
|
||||
inputBox: document.getElementById('inputBox'),
|
||||
inputYes: document.getElementById('inputYes'),
|
||||
inputNo: document.getElementById('inputNo'),
|
||||
next: document.getElementById('next')
|
||||
gameGroup: document.getElementById("gameGroup"),
|
||||
mainTips: document.getElementById("mainTips"),
|
||||
musicBtn: document.getElementById("musicBtn"),
|
||||
enlargeBtn: document.createElement("img"),
|
||||
startPanel: document.getElementById("startPanel"),
|
||||
startTop: document.getElementById("startTop"),
|
||||
startTopProgressBar: document.getElementById("startTopProgressBar"),
|
||||
startTopProgress: document.getElementById("startTopProgress"),
|
||||
startTopLoadTips: document.getElementById("startTopLoadTips"),
|
||||
startBackground: document.getElementById("startBackground"),
|
||||
startLogo: document.getElementById("startLogo"),
|
||||
startButtonGroup: document.getElementById("startButtonGroup"),
|
||||
floorMsgGroup: document.getElementById("floorMsgGroup"),
|
||||
logoLabel: document.getElementById("logoLabel"),
|
||||
versionLabel: document.getElementById("versionLabel"),
|
||||
floorNameLabel: document.getElementById("floorNameLabel"),
|
||||
statusBar: document.getElementById("statusBar"),
|
||||
status: document.getElementsByClassName("status"),
|
||||
toolBar: document.getElementById("toolBar"),
|
||||
tools: document.getElementsByClassName("tools"),
|
||||
gameCanvas: document.getElementsByClassName("gameCanvas"),
|
||||
gif: document.getElementById("gif"),
|
||||
gif2: document.getElementById("gif2"),
|
||||
gameDraw: document.getElementById("gameDraw"),
|
||||
startButtons: document.getElementById("startButtons"),
|
||||
playGame: document.getElementById("playGame"),
|
||||
loadGame: document.getElementById("loadGame"),
|
||||
CGMode: document.getElementById("CGMode"),
|
||||
musicMode: document.getElementById("musicMode"),
|
||||
replayGame: document.getElementById("replayGame"),
|
||||
levelChooseButtons: document.getElementById("levelChooseButtons"),
|
||||
data: document.getElementById("data"),
|
||||
statusLabels: document.getElementsByClassName("statusLabel"),
|
||||
statusTexts: document.getElementsByClassName("statusText"),
|
||||
floorCol: document.getElementById("floorCol"),
|
||||
nameCol: document.getElementById("nameCol"),
|
||||
lvCol: document.getElementById("lvCol"),
|
||||
hpmaxCol: document.getElementById("hpmaxCol"),
|
||||
hpCol: document.getElementById("hpCol"),
|
||||
manaCol: document.getElementById("manaCol"),
|
||||
atkCol: document.getElementById("atkCol"),
|
||||
defCol: document.getElementById("defCol"),
|
||||
mdefCol: document.getElementById("mdefCol"),
|
||||
moneyCol: document.getElementById("moneyCol"),
|
||||
expCol: document.getElementById("expCol"),
|
||||
upCol: document.getElementById("upCol"),
|
||||
keyCol: document.getElementById("keyCol"),
|
||||
pzfCol: document.getElementById("pzfCol"),
|
||||
debuffCol: document.getElementById("debuffCol"),
|
||||
skillCol: document.getElementById("skillCol"),
|
||||
hard: document.getElementById("hard"),
|
||||
statusCanvas: document.getElementById("statusCanvas"),
|
||||
statusCanvasCtx: document.getElementById("statusCanvas").getContext("2d"),
|
||||
inputDiv: document.getElementById("inputDiv"),
|
||||
inputMessage: document.getElementById("inputMessage"),
|
||||
inputBox: document.getElementById("inputBox"),
|
||||
inputYes: document.getElementById("inputYes"),
|
||||
inputNo: document.getElementById("inputNo"),
|
||||
next: document.getElementById("next"),
|
||||
};
|
||||
this.mode = 'play';
|
||||
this.mode = "play";
|
||||
this.loadList = [
|
||||
'loader',
|
||||
'control',
|
||||
'utils',
|
||||
'items',
|
||||
'icons',
|
||||
'maps',
|
||||
'enemys',
|
||||
'events',
|
||||
'actions',
|
||||
'data',
|
||||
'ui',
|
||||
'extensions',
|
||||
'core'
|
||||
"loader",
|
||||
"control",
|
||||
"utils",
|
||||
"items",
|
||||
"icons",
|
||||
"maps",
|
||||
"enemys",
|
||||
"events",
|
||||
"actions",
|
||||
"data",
|
||||
"ui",
|
||||
"extensions",
|
||||
"core",
|
||||
];
|
||||
this.pureData = [
|
||||
'data',
|
||||
'enemys',
|
||||
'icons',
|
||||
'maps',
|
||||
'items',
|
||||
'functions',
|
||||
'events',
|
||||
'plugins'
|
||||
"data",
|
||||
"enemys",
|
||||
"icons",
|
||||
"maps",
|
||||
"items",
|
||||
"functions",
|
||||
"events",
|
||||
"plugins",
|
||||
];
|
||||
this.materials = [
|
||||
'animates',
|
||||
'enemys',
|
||||
'items',
|
||||
'npcs',
|
||||
'terrains',
|
||||
'enemy48',
|
||||
'npc48',
|
||||
'icons'
|
||||
"animates",
|
||||
"enemys",
|
||||
"items",
|
||||
"npcs",
|
||||
"terrains",
|
||||
"enemy48",
|
||||
"npc48",
|
||||
"icons",
|
||||
];
|
||||
|
||||
this.statusBar = {
|
||||
image: {
|
||||
floor: document.getElementById('img-floor'),
|
||||
name: document.getElementById('img-name'),
|
||||
lv: document.getElementById('img-lv'),
|
||||
hpmax: document.getElementById('img-hpmax'),
|
||||
hp: document.getElementById('img-hp'),
|
||||
mana: document.getElementById('img-mana'),
|
||||
atk: document.getElementById('img-atk'),
|
||||
def: document.getElementById('img-def'),
|
||||
mdef: document.getElementById('img-mdef'),
|
||||
money: document.getElementById('img-money'),
|
||||
exp: document.getElementById('img-exp'),
|
||||
up: document.getElementById('img-up'),
|
||||
skill: document.getElementById('img-skill'),
|
||||
book: document.getElementById('img-book'),
|
||||
fly: document.getElementById('img-fly'),
|
||||
toolbox: document.getElementById('img-toolbox'),
|
||||
keyboard: document.getElementById('img-keyboard'),
|
||||
shop: document.getElementById('img-shop'),
|
||||
save: document.getElementById('img-save'),
|
||||
load: document.getElementById('img-load'),
|
||||
settings: document.getElementById('img-settings'),
|
||||
btn1: document.getElementById('img-btn1'),
|
||||
btn2: document.getElementById('img-btn2'),
|
||||
btn3: document.getElementById('img-btn3'),
|
||||
btn4: document.getElementById('img-btn4'),
|
||||
btn5: document.getElementById('img-btn5'),
|
||||
btn6: document.getElementById('img-btn6'),
|
||||
btn7: document.getElementById('img-btn7'),
|
||||
btn8: document.getElementById('img-btn8')
|
||||
floor: document.getElementById("img-floor"),
|
||||
name: document.getElementById("img-name"),
|
||||
lv: document.getElementById("img-lv"),
|
||||
hpmax: document.getElementById("img-hpmax"),
|
||||
hp: document.getElementById("img-hp"),
|
||||
mana: document.getElementById("img-mana"),
|
||||
atk: document.getElementById("img-atk"),
|
||||
def: document.getElementById("img-def"),
|
||||
mdef: document.getElementById("img-mdef"),
|
||||
money: document.getElementById("img-money"),
|
||||
exp: document.getElementById("img-exp"),
|
||||
up: document.getElementById("img-up"),
|
||||
skill: document.getElementById("img-skill"),
|
||||
book: document.getElementById("img-book"),
|
||||
fly: document.getElementById("img-fly"),
|
||||
toolbox: document.getElementById("img-toolbox"),
|
||||
keyboard: document.getElementById("img-keyboard"),
|
||||
shop: document.getElementById("img-shop"),
|
||||
save: document.getElementById("img-save"),
|
||||
load: document.getElementById("img-load"),
|
||||
settings: document.getElementById("img-settings"),
|
||||
btn1: document.getElementById("img-btn1"),
|
||||
btn2: document.getElementById("img-btn2"),
|
||||
btn3: document.getElementById("img-btn3"),
|
||||
btn4: document.getElementById("img-btn4"),
|
||||
btn5: document.getElementById("img-btn5"),
|
||||
btn6: document.getElementById("img-btn6"),
|
||||
btn7: document.getElementById("img-btn7"),
|
||||
btn8: document.getElementById("img-btn8"),
|
||||
},
|
||||
icons: {
|
||||
floor: 0,
|
||||
@ -187,48 +186,48 @@ function main() {
|
||||
btn5: 31,
|
||||
btn6: 32,
|
||||
btn7: 33,
|
||||
btn8: 34
|
||||
btn8: 34,
|
||||
},
|
||||
floor: document.getElementById('floor'),
|
||||
name: document.getElementById('name'),
|
||||
lv: document.getElementById('lv'),
|
||||
hpmax: document.getElementById('hpmax'),
|
||||
hp: document.getElementById('hp'),
|
||||
mana: document.getElementById('mana'),
|
||||
atk: document.getElementById('atk'),
|
||||
def: document.getElementById('def'),
|
||||
mdef: document.getElementById('mdef'),
|
||||
money: document.getElementById('money'),
|
||||
exp: document.getElementById('exp'),
|
||||
up: document.getElementById('up'),
|
||||
skill: document.getElementById('skill'),
|
||||
yellowKey: document.getElementById('yellowKey'),
|
||||
blueKey: document.getElementById('blueKey'),
|
||||
redKey: document.getElementById('redKey'),
|
||||
greenKey: document.getElementById('greenKey'),
|
||||
poison: document.getElementById('poison'),
|
||||
weak: document.getElementById('weak'),
|
||||
curse: document.getElementById('curse'),
|
||||
pickaxe: document.getElementById('pickaxe'),
|
||||
bomb: document.getElementById('bomb'),
|
||||
fly: document.getElementById('fly'),
|
||||
hard: document.getElementById('hard')
|
||||
floor: document.getElementById("floor"),
|
||||
name: document.getElementById("name"),
|
||||
lv: document.getElementById("lv"),
|
||||
hpmax: document.getElementById("hpmax"),
|
||||
hp: document.getElementById("hp"),
|
||||
mana: document.getElementById("mana"),
|
||||
atk: document.getElementById("atk"),
|
||||
def: document.getElementById("def"),
|
||||
mdef: document.getElementById("mdef"),
|
||||
money: document.getElementById("money"),
|
||||
exp: document.getElementById("exp"),
|
||||
up: document.getElementById("up"),
|
||||
skill: document.getElementById("skill"),
|
||||
yellowKey: document.getElementById("yellowKey"),
|
||||
blueKey: document.getElementById("blueKey"),
|
||||
redKey: document.getElementById("redKey"),
|
||||
greenKey: document.getElementById("greenKey"),
|
||||
poison: document.getElementById("poison"),
|
||||
weak: document.getElementById("weak"),
|
||||
curse: document.getElementById("curse"),
|
||||
pickaxe: document.getElementById("pickaxe"),
|
||||
bomb: document.getElementById("bomb"),
|
||||
fly: document.getElementById("fly"),
|
||||
hard: document.getElementById("hard"),
|
||||
};
|
||||
this.floors = {};
|
||||
this.canvas = {};
|
||||
|
||||
this.__VERSION__ = '2.10.3';
|
||||
this.__VERSION__ = "2.10.3";
|
||||
this.__VERSION_CODE__ = 512;
|
||||
}
|
||||
|
||||
main.prototype.init = function (mode, callback) {
|
||||
for (var i = 0; i < main.dom.gameCanvas.length; i++) {
|
||||
main.canvas[main.dom.gameCanvas[i].id] =
|
||||
main.dom.gameCanvas[i].getContext('2d');
|
||||
main.dom.gameCanvas[i].getContext("2d");
|
||||
}
|
||||
main.mode = mode;
|
||||
|
||||
main.loadJs('project', main.pureData, function () {
|
||||
main.loadJs("project", main.pureData, function () {
|
||||
var mainData = data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d.main;
|
||||
for (var ii in mainData) main[ii] = mainData[ii];
|
||||
|
||||
@ -236,43 +235,43 @@ main.prototype.init = function (mode, callback) {
|
||||
main.dom.startButtonGroup.style = main.styles.startButtonsStyle;
|
||||
main.levelChoose = main.levelChoose || [];
|
||||
main.levelChoose.forEach(function (value) {
|
||||
var span = document.createElement('span');
|
||||
span.setAttribute('class', 'startButton');
|
||||
span.innerText = value.title || '';
|
||||
var span = document.createElement("span");
|
||||
span.setAttribute("class", "startButton");
|
||||
span.innerText = value.title || "";
|
||||
(function (span, str_) {
|
||||
span.onclick = function () {
|
||||
core.events.startGame(str_);
|
||||
};
|
||||
})(span, value.name || '');
|
||||
})(span, value.name || "");
|
||||
main.dom.levelChooseButtons.appendChild(span);
|
||||
});
|
||||
main.createOnChoiceAnimation();
|
||||
main.importFonts(main.fonts);
|
||||
|
||||
main.loadJs('libs', main.loadList, function () {
|
||||
main.loadJs("libs", main.loadList, function () {
|
||||
main.core = core;
|
||||
|
||||
for (i = 0; i < main.loadList.length; i++) {
|
||||
var name = main.loadList[i];
|
||||
if (name === 'core') continue;
|
||||
if (name === "core") continue;
|
||||
main.core[name] = new window[name]();
|
||||
}
|
||||
|
||||
main.loadFloors(function () {
|
||||
var coreData = {};
|
||||
[
|
||||
'dom',
|
||||
'statusBar',
|
||||
'canvas',
|
||||
'images',
|
||||
'tilesets',
|
||||
'materials',
|
||||
'animates',
|
||||
'bgms',
|
||||
'sounds',
|
||||
'floorIds',
|
||||
'floors',
|
||||
'floorPartitions'
|
||||
"dom",
|
||||
"statusBar",
|
||||
"canvas",
|
||||
"images",
|
||||
"tilesets",
|
||||
"materials",
|
||||
"animates",
|
||||
"bgms",
|
||||
"sounds",
|
||||
"floorIds",
|
||||
"floors",
|
||||
"floorPartitions",
|
||||
].forEach(function (t) {
|
||||
coreData[t] = main[t];
|
||||
});
|
||||
@ -280,28 +279,19 @@ main.prototype.init = function (mode, callback) {
|
||||
main.core.resize();
|
||||
// 自动放缩最大化
|
||||
if (!main.replayChecking) {
|
||||
if (core.getLocalStorage('autoScale') == null) {
|
||||
core.setLocalStorage('autoScale', true);
|
||||
if (core.getLocalStorage("autoScale") == null) {
|
||||
core.setLocalStorage("autoScale", true);
|
||||
}
|
||||
if (
|
||||
core.getLocalStorage('autoScale') &&
|
||||
!core.domStyle.isVertical
|
||||
) {
|
||||
if (core.getLocalStorage("autoScale") && !core.domStyle.isVertical) {
|
||||
try {
|
||||
if (main.core) {
|
||||
var index =
|
||||
main.core.domStyle.availableScale.indexOf(
|
||||
var index = main.core.domStyle.availableScale.indexOf(
|
||||
core.domStyle.scale
|
||||
);
|
||||
main.core.control.setDisplayScale(
|
||||
main.core.domStyle.availableScale.length -
|
||||
1 -
|
||||
index
|
||||
main.core.domStyle.availableScale.length - 1 - index
|
||||
);
|
||||
if (
|
||||
!main.core.isPlaying() &&
|
||||
main.core.flags.enableHDCanvas
|
||||
) {
|
||||
if (!main.core.isPlaying() && main.core.flags.enableHDCanvas) {
|
||||
main.core.domStyle.ratio = Math.max(
|
||||
window.devicePixelRatio || 1,
|
||||
main.core.domStyle.scale
|
||||
@ -309,9 +299,7 @@ main.prototype.init = function (mode, callback) {
|
||||
main.core.resize();
|
||||
}
|
||||
requestAnimationFrame(function () {
|
||||
var style = getComputedStyle(
|
||||
main.dom.gameGroup
|
||||
);
|
||||
var style = getComputedStyle(main.dom.gameGroup);
|
||||
var height = parseFloat(style.height);
|
||||
if (height > window.innerHeight * 0.95) {
|
||||
main.core.control.setDisplayScale(-1);
|
||||
@ -341,7 +329,7 @@ main.prototype.init = function (mode, callback) {
|
||||
////// 动态加载所有核心JS文件 //////
|
||||
main.prototype.loadJs = function (dir, loadList, callback) {
|
||||
// 加载js
|
||||
main.setMainTipsText('正在加载核心js文件...');
|
||||
main.setMainTipsText("正在加载核心js文件...");
|
||||
|
||||
if (this.useCompress) {
|
||||
main.loadMod(dir, dir, function () {
|
||||
@ -351,7 +339,7 @@ main.prototype.loadJs = function (dir, loadList, callback) {
|
||||
var instanceNum = 0;
|
||||
for (var i = 0; i < loadList.length; i++) {
|
||||
main.loadMod(dir, loadList[i], function (modName) {
|
||||
main.setMainTipsText(modName + '.js 加载完毕');
|
||||
main.setMainTipsText(modName + ".js 加载完毕");
|
||||
instanceNum++;
|
||||
if (instanceNum === loadList.length) {
|
||||
callback();
|
||||
@ -363,14 +351,14 @@ main.prototype.loadJs = function (dir, loadList, callback) {
|
||||
|
||||
////// 加载某一个JS文件 //////
|
||||
main.prototype.loadMod = function (dir, modName, callback, onerror) {
|
||||
var script = document.createElement('script');
|
||||
var script = document.createElement("script");
|
||||
var name = modName;
|
||||
script.src =
|
||||
dir +
|
||||
'/' +
|
||||
"/" +
|
||||
modName +
|
||||
(this.useCompress ? '.min' : '') +
|
||||
'.js?v=' +
|
||||
(this.useCompress ? ".min" : "") +
|
||||
".js?v=" +
|
||||
this.version;
|
||||
script.onload = function () {
|
||||
callback(name);
|
||||
@ -381,28 +369,25 @@ main.prototype.loadMod = function (dir, modName, callback, onerror) {
|
||||
////// 动态加载所有楼层(剧本) //////
|
||||
main.prototype.loadFloors = function (callback) {
|
||||
// 加载js
|
||||
main.setMainTipsText('正在加载楼层文件...');
|
||||
main.setMainTipsText("正在加载楼层文件...");
|
||||
if (this.useCompress) {
|
||||
// 读取压缩文件
|
||||
var script = document.createElement('script');
|
||||
script.src = 'project/floors.min.js?v=' + this.version;
|
||||
var script = document.createElement("script");
|
||||
script.src = "project/floors.min.js?v=" + this.version;
|
||||
main.dom.body.appendChild(script);
|
||||
script.onload = function () {
|
||||
main.dom.mainTips.style.display = 'none';
|
||||
main.dom.mainTips.style.display = "none";
|
||||
callback();
|
||||
};
|
||||
return;
|
||||
}
|
||||
|
||||
// 高层塔优化
|
||||
var script = document.createElement('script');
|
||||
var script = document.createElement("script");
|
||||
script.src =
|
||||
'__all_floors__.js?v=' +
|
||||
this.version +
|
||||
'&id=' +
|
||||
main.floorIds.join(',');
|
||||
"__all_floors__.js?v=" + this.version + "&id=" + main.floorIds.join(",");
|
||||
script.onload = function () {
|
||||
main.dom.mainTips.style.display = 'none';
|
||||
main.dom.mainTips.style.display = "none";
|
||||
main.supportBunch = true;
|
||||
callback();
|
||||
};
|
||||
@ -413,14 +398,9 @@ main.prototype.loadFloors = function (callback) {
|
||||
// console.clear();
|
||||
for (var i = 0; i < main.floorIds.length; i++) {
|
||||
main.loadFloor(main.floorIds[i], function (modName) {
|
||||
main.setMainTipsText(
|
||||
'楼层 ' + modName + '.js 加载完毕'
|
||||
);
|
||||
if (
|
||||
Object.keys(main.floors).length ===
|
||||
main.floorIds.length
|
||||
) {
|
||||
main.dom.mainTips.style.display = 'none';
|
||||
main.setMainTipsText("楼层 " + modName + ".js 加载完毕");
|
||||
if (Object.keys(main.floors).length === main.floorIds.length) {
|
||||
main.dom.mainTips.style.display = "none";
|
||||
callback();
|
||||
}
|
||||
});
|
||||
@ -431,8 +411,8 @@ main.prototype.loadFloors = function (callback) {
|
||||
|
||||
////// 加载某一个楼层 //////
|
||||
main.prototype.loadFloor = function (floorId, callback) {
|
||||
var script = document.createElement('script');
|
||||
script.src = 'project/floors/' + floorId + '.js?v=' + this.version;
|
||||
var script = document.createElement("script");
|
||||
script.src = "project/floors/" + floorId + ".js?v=" + this.version;
|
||||
main.dom.body.appendChild(script);
|
||||
script.onload = function () {
|
||||
callback(floorId);
|
||||
@ -457,30 +437,29 @@ main.prototype.log = function (e, error) {
|
||||
|
||||
main.prototype.createOnChoiceAnimation = function () {
|
||||
var borderColor =
|
||||
main.dom.startButtonGroup.style.caretColor || 'rgb(255, 215, 0)';
|
||||
main.dom.startButtonGroup.style.caretColor || "rgb(255, 215, 0)";
|
||||
// get rgb value
|
||||
var rgb =
|
||||
/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*\d+\s*)?\)$/.exec(
|
||||
var rgb = /^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*\d+\s*)?\)$/.exec(
|
||||
borderColor
|
||||
);
|
||||
if (rgb != null) {
|
||||
var value = rgb[1] + ', ' + rgb[2] + ', ' + rgb[3];
|
||||
var style = document.createElement('style');
|
||||
style.type = 'text/css';
|
||||
var value = rgb[1] + ", " + rgb[2] + ", " + rgb[3];
|
||||
var style = document.createElement("style");
|
||||
style.type = "text/css";
|
||||
var keyFrames =
|
||||
'onChoice { ' +
|
||||
'0% { border-color: rgba(' +
|
||||
"onChoice { " +
|
||||
"0% { border-color: rgba(" +
|
||||
value +
|
||||
', 0.9); } ' +
|
||||
'50% { border-color: rgba(' +
|
||||
", 0.9); } " +
|
||||
"50% { border-color: rgba(" +
|
||||
value +
|
||||
', 0.3); } ' +
|
||||
'100% { border-color: rgba(' +
|
||||
", 0.3); } " +
|
||||
"100% { border-color: rgba(" +
|
||||
value +
|
||||
', 0.9); } ' +
|
||||
'}';
|
||||
", 0.9); } " +
|
||||
"}";
|
||||
style.innerHTML =
|
||||
'@-webkit-keyframes ' + keyFrames + ' @keyframes ' + keyFrames;
|
||||
"@-webkit-keyframes " + keyFrames + " @keyframes " + keyFrames;
|
||||
document.body.appendChild(style);
|
||||
}
|
||||
};
|
||||
@ -490,9 +469,9 @@ main.prototype.selectButton = function (index) {
|
||||
var select = function (children) {
|
||||
index = (index + children.length) % children.length;
|
||||
for (var i = 0; i < children.length; ++i) {
|
||||
children[i].classList.remove('onChoiceAnimate');
|
||||
children[i].classList.remove("onChoiceAnimate");
|
||||
}
|
||||
children[index].classList.add('onChoiceAnimate');
|
||||
children[index].classList.add("onChoiceAnimate");
|
||||
if (main.selectedButton == index) {
|
||||
children[index].click();
|
||||
} else {
|
||||
@ -500,11 +479,11 @@ main.prototype.selectButton = function (index) {
|
||||
}
|
||||
};
|
||||
|
||||
if (core.dom.startPanel.style.display != 'block') return;
|
||||
if (core.dom.startPanel.style.display != "block") return;
|
||||
|
||||
if (main.dom.startButtons.style.display == 'block') {
|
||||
if (main.dom.startButtons.style.display == "block") {
|
||||
select(main.dom.startButtons.children);
|
||||
} else if (main.dom.levelChooseButtons.style.display == 'block') {
|
||||
} else if (main.dom.levelChooseButtons.style.display == "block") {
|
||||
select(main.dom.levelChooseButtons.children);
|
||||
}
|
||||
};
|
||||
@ -512,9 +491,9 @@ main.prototype.selectButton = function (index) {
|
||||
////// 创建字体 //////
|
||||
main.prototype.importFonts = function (fonts) {
|
||||
if (!(fonts instanceof Array) || fonts.length == 0) return;
|
||||
var style = document.createElement('style');
|
||||
style.type = 'text/css';
|
||||
var html = '';
|
||||
var style = document.createElement("style");
|
||||
style.type = "text/css";
|
||||
var html = "";
|
||||
fonts.forEach(function (font) {
|
||||
html +=
|
||||
'@font-face { font-family: "' +
|
||||
@ -541,11 +520,8 @@ main.prototype.listen = function () {
|
||||
main.dom.body.onkeydown = function (e) {
|
||||
if (main.editorOpened) return;
|
||||
try {
|
||||
if (main.dom.inputDiv.style.display == 'block') return;
|
||||
if (
|
||||
main.core &&
|
||||
(main.core.isPlaying() || main.core.status.lockControl)
|
||||
)
|
||||
if (main.dom.inputDiv.style.display == "block") return;
|
||||
if (main.core && (main.core.isPlaying() || main.core.status.lockControl))
|
||||
main.core.onkeyDown(e);
|
||||
} catch (ee) {
|
||||
console.error(ee);
|
||||
@ -557,9 +533,9 @@ main.prototype.listen = function () {
|
||||
if (main.editorOpened) return;
|
||||
try {
|
||||
if (
|
||||
main.dom.startPanel.style.display == 'block' &&
|
||||
(main.dom.startButtons.style.display == 'block' ||
|
||||
main.dom.levelChooseButtons.style.display == 'block')
|
||||
main.dom.startPanel.style.display == "block" &&
|
||||
(main.dom.startButtons.style.display == "block" ||
|
||||
main.dom.levelChooseButtons.style.display == "block")
|
||||
) {
|
||||
if (e.keyCode == 38 || e.keyCode == 33)
|
||||
// up/pgup
|
||||
@ -572,7 +548,7 @@ main.prototype.listen = function () {
|
||||
main.selectButton(main.selectedButton);
|
||||
else if (
|
||||
e.keyCode == 27 &&
|
||||
main.dom.levelChooseButtons.style.display == 'block'
|
||||
main.dom.levelChooseButtons.style.display == "block"
|
||||
) {
|
||||
// ESC
|
||||
main.core.showStartAnimate(true);
|
||||
@ -580,7 +556,7 @@ main.prototype.listen = function () {
|
||||
e.stopPropagation();
|
||||
return;
|
||||
}
|
||||
if (main.dom.inputDiv.style.display == 'block') {
|
||||
if (main.dom.inputDiv.style.display == "block") {
|
||||
if (e.keyCode == 13) {
|
||||
setTimeout(function () {
|
||||
main.dom.inputYes.click();
|
||||
@ -604,15 +580,10 @@ main.prototype.listen = function () {
|
||||
}
|
||||
};
|
||||
|
||||
[main.dom.startButtons, main.dom.levelChooseButtons].forEach(function (
|
||||
dom
|
||||
) {
|
||||
[main.dom.startButtons, main.dom.levelChooseButtons].forEach(function (dom) {
|
||||
dom.onmousemove = function (e) {
|
||||
for (var i = 0; i < dom.children.length; ++i) {
|
||||
if (
|
||||
dom.children[i] == e.target &&
|
||||
i != (main.selectedButton || 0)
|
||||
) {
|
||||
if (dom.children[i] == e.target && i != (main.selectedButton || 0)) {
|
||||
main.selectButton(i);
|
||||
}
|
||||
}
|
||||
@ -765,7 +736,7 @@ main.prototype.listen = function () {
|
||||
}
|
||||
|
||||
if (main.core.isPlaying()) {
|
||||
main.core.openToolbox(core.status.event.id != 'equipbox');
|
||||
main.core.openToolbox(core.status.event.id != "equipbox");
|
||||
}
|
||||
};
|
||||
|
||||
@ -871,7 +842,7 @@ main.prototype.listen = function () {
|
||||
e.stopPropagation();
|
||||
main.core.onkeyUp({
|
||||
keyCode: 49,
|
||||
altKey: core.getLocalStorage('altKey')
|
||||
altKey: core.getLocalStorage("altKey"),
|
||||
});
|
||||
};
|
||||
|
||||
@ -879,7 +850,7 @@ main.prototype.listen = function () {
|
||||
e.stopPropagation();
|
||||
main.core.onkeyUp({
|
||||
keyCode: 50,
|
||||
altKey: core.getLocalStorage('altKey')
|
||||
altKey: core.getLocalStorage("altKey"),
|
||||
});
|
||||
};
|
||||
|
||||
@ -887,7 +858,7 @@ main.prototype.listen = function () {
|
||||
e.stopPropagation();
|
||||
main.core.onkeyUp({
|
||||
keyCode: 51,
|
||||
altKey: core.getLocalStorage('altKey')
|
||||
altKey: core.getLocalStorage("altKey"),
|
||||
});
|
||||
};
|
||||
|
||||
@ -895,7 +866,7 @@ main.prototype.listen = function () {
|
||||
e.stopPropagation();
|
||||
main.core.onkeyUp({
|
||||
keyCode: 52,
|
||||
altKey: core.getLocalStorage('altKey')
|
||||
altKey: core.getLocalStorage("altKey"),
|
||||
});
|
||||
};
|
||||
|
||||
@ -903,7 +874,7 @@ main.prototype.listen = function () {
|
||||
e.stopPropagation();
|
||||
main.core.onkeyUp({
|
||||
keyCode: 53,
|
||||
altKey: core.getLocalStorage('altKey')
|
||||
altKey: core.getLocalStorage("altKey"),
|
||||
});
|
||||
};
|
||||
|
||||
@ -911,7 +882,7 @@ main.prototype.listen = function () {
|
||||
e.stopPropagation();
|
||||
main.core.onkeyUp({
|
||||
keyCode: 54,
|
||||
altKey: core.getLocalStorage('altKey')
|
||||
altKey: core.getLocalStorage("altKey"),
|
||||
});
|
||||
};
|
||||
|
||||
@ -919,32 +890,32 @@ main.prototype.listen = function () {
|
||||
e.stopPropagation();
|
||||
main.core.onkeyUp({
|
||||
keyCode: 55,
|
||||
altKey: core.getLocalStorage('altKey')
|
||||
altKey: core.getLocalStorage("altKey"),
|
||||
});
|
||||
};
|
||||
|
||||
main.statusBar.image.btn8.onclick = function (e) {
|
||||
e.stopPropagation();
|
||||
if (core.getLocalStorage('altKey')) {
|
||||
core.removeLocalStorage('altKey');
|
||||
core.drawTip('Alt模式已关闭。');
|
||||
main.statusBar.image.btn8.style.filter = '';
|
||||
if (core.getLocalStorage("altKey")) {
|
||||
core.removeLocalStorage("altKey");
|
||||
core.drawTip("Alt模式已关闭。");
|
||||
main.statusBar.image.btn8.style.filter = "";
|
||||
} else {
|
||||
core.setLocalStorage('altKey', true);
|
||||
core.drawTip('Alt模式已开启;此模式下1~7按钮视为Alt+1~7。');
|
||||
main.statusBar.image.btn8.style.filter = 'sepia(1) contrast(1.5)';
|
||||
core.setLocalStorage("altKey", true);
|
||||
core.drawTip("Alt模式已开启;此模式下1~7按钮视为Alt+1~7。");
|
||||
main.statusBar.image.btn8.style.filter = "sepia(1) contrast(1.5)";
|
||||
}
|
||||
};
|
||||
|
||||
////// 点击“开始游戏”时 //////
|
||||
main.dom.playGame.onclick = function () {
|
||||
main.dom.startButtons.style.display = 'none';
|
||||
main.dom.startButtons.style.display = "none";
|
||||
main.core.control.checkBgm();
|
||||
|
||||
if (main.levelChoose.length == 0) {
|
||||
core.events.startGame('');
|
||||
core.events.startGame("");
|
||||
} else {
|
||||
main.dom.levelChooseButtons.style.display = 'block';
|
||||
main.dom.levelChooseButtons.style.display = "block";
|
||||
main.selectedButton = null;
|
||||
main.selectButton(0);
|
||||
}
|
||||
@ -979,14 +950,14 @@ main.prototype.listen = function () {
|
||||
};
|
||||
|
||||
main.dom.inputYes.onclick = function () {
|
||||
main.dom.inputDiv.style.display = 'none';
|
||||
main.dom.inputDiv.style.display = "none";
|
||||
var func = core.platform.successCallback;
|
||||
core.platform.successCallback = core.platform.errorCallback = null;
|
||||
if (func) func(main.dom.inputBox.value);
|
||||
};
|
||||
|
||||
main.dom.inputNo.onclick = function () {
|
||||
main.dom.inputDiv.style.display = 'none';
|
||||
main.dom.inputDiv.style.display = "none";
|
||||
var func = core.platform.errorCallback;
|
||||
core.platform.successCallback = core.platform.errorCallback = null;
|
||||
if (func) func(null);
|
||||
|
BIN
project/bgms/op.mp3
Normal file
419
project/data.js
@ -17,147 +17,276 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"guangchang",
|
||||
"guangchang2",
|
||||
"xiaoxiang01",
|
||||
"xiaoxiang02"
|
||||
"xiaoxiang02",
|
||||
"xiaoxiang3",
|
||||
"yiqu1",
|
||||
"yiqu2",
|
||||
"yiqu3",
|
||||
"yiqu4",
|
||||
"yiqu5",
|
||||
"yiqu6",
|
||||
"yiqu7",
|
||||
"yiqu8",
|
||||
"yiqu9",
|
||||
"yiqu10"
|
||||
],
|
||||
"floorPartitions": [],
|
||||
"images": [
|
||||
"HPGaugeEnemy_A.png",
|
||||
"HPGaugeEnemy_B.png",
|
||||
"background.png",
|
||||
"backgroundvertical.png",
|
||||
"bear.png",
|
||||
"bg.jpg",
|
||||
"bg2.jpg",
|
||||
"bg_1511.png",
|
||||
"bg_1521.png",
|
||||
"bg_2010.png",
|
||||
"bg_2011.png",
|
||||
"bg_2521.png",
|
||||
"bg_3042.png",
|
||||
"bg_3531.png",
|
||||
"bg_3551.png",
|
||||
"bg_3563.png",
|
||||
"bg_3571.png",
|
||||
"bg_3601.png",
|
||||
"bg_3721.png",
|
||||
"bg_5033.png",
|
||||
"bg_5043.png",
|
||||
"bg_5044.png",
|
||||
"bg_6004.png",
|
||||
"brave.png",
|
||||
"cao.png",
|
||||
"d.png",
|
||||
"dl.png",
|
||||
"dlr.png",
|
||||
"dr.png",
|
||||
"dragon.png",
|
||||
"eve_010102.png",
|
||||
"eve_010203.png",
|
||||
"eve_010304.png",
|
||||
"eve_010501.png",
|
||||
"eve_010601.png",
|
||||
"eve_010701.png",
|
||||
"eve_010801.png",
|
||||
"eve_010902.png",
|
||||
"eve_011001.png",
|
||||
"eve_011101.png",
|
||||
"eve_011202.png",
|
||||
"eve_011302.png",
|
||||
"eve_011402.png",
|
||||
"eve_020102.png",
|
||||
"eve_020201.png",
|
||||
"eve_020301.png",
|
||||
"eve_020401.png",
|
||||
"eve_020501.png",
|
||||
"eve_020605.png",
|
||||
"eve_020701.png",
|
||||
"eve_020801.png",
|
||||
"eve_030101.png",
|
||||
"eve_030206.png",
|
||||
"eve_030302.png",
|
||||
"eve_030508.png",
|
||||
"eve_030601.png",
|
||||
"eve_030801.png",
|
||||
"eve_030901.png",
|
||||
"eve_031002.png",
|
||||
"eve_031101.png",
|
||||
"eve_040201.png",
|
||||
"eve_040401.png",
|
||||
"eve_040501.png",
|
||||
"eve_040601.png",
|
||||
"eve_040702.png",
|
||||
"eve_040801.png",
|
||||
"eve_050101.png",
|
||||
"eve_050201.png",
|
||||
"eve_050401.png",
|
||||
"eve_050501.png",
|
||||
"eve_050601.png",
|
||||
"eve_050704.png",
|
||||
"eve_050801.png",
|
||||
"eve_070101.png",
|
||||
"face_050445.png",
|
||||
"face_120107.png",
|
||||
"green.png",
|
||||
"h25.png",
|
||||
"hero.png",
|
||||
"l.png",
|
||||
"lane1.png",
|
||||
"light.png",
|
||||
"lock.png",
|
||||
"lr.png",
|
||||
"maba.png",
|
||||
"now.png",
|
||||
"null.png",
|
||||
"other_0001.png",
|
||||
"other_0002.png",
|
||||
"other_0003.png",
|
||||
"other_0004.png",
|
||||
"r.png",
|
||||
"status.png",
|
||||
"statusBackground.jpg",
|
||||
"statusBackground.png",
|
||||
"statusBackground2.png",
|
||||
"statusBackground_vertical.png",
|
||||
"statusBackgroundv4.png",
|
||||
"t012d0ffd2cc7d751fc.jpg",
|
||||
"t015d97564abe3b6a74.jpg",
|
||||
"t0187fe5a5fa586419d.jpg",
|
||||
"t01c16e1361b78b9412.jpg",
|
||||
"tati_050145a.png",
|
||||
"tati_120124.png",
|
||||
"u.png",
|
||||
"ud.png",
|
||||
"udl.png",
|
||||
"udlr.png",
|
||||
"udr.png",
|
||||
"ul.png",
|
||||
"ulr.png",
|
||||
"unknow.png",
|
||||
"ur.png",
|
||||
"winskin.png",
|
||||
"winskin1.png"
|
||||
"HPGaugeEnemy_A.webp",
|
||||
"HPGaugeEnemy_B.webp",
|
||||
"background.webp",
|
||||
"backgroundvertical.webp",
|
||||
"bg_1511.webp",
|
||||
"bg_1521.webp",
|
||||
"bg_2010.webp",
|
||||
"bg_2011.webp",
|
||||
"bg_2521.webp",
|
||||
"bg_3042.webp",
|
||||
"bg_3531.webp",
|
||||
"bg_3551.webp",
|
||||
"bg_3563.webp",
|
||||
"bg_3571.webp",
|
||||
"bg_3601.webp",
|
||||
"bg_3721.webp",
|
||||
"bg_5033.webp",
|
||||
"bg_5043.webp",
|
||||
"bg_5044.webp",
|
||||
"bg_6004.webp",
|
||||
"cao.webp",
|
||||
"d.webp",
|
||||
"dl.webp",
|
||||
"dlr.webp",
|
||||
"dr.webp",
|
||||
"dragon.webp",
|
||||
"eve_010102.webp",
|
||||
"eve_010203.webp",
|
||||
"eve_010304.webp",
|
||||
"eve_010501.webp",
|
||||
"eve_010601.webp",
|
||||
"eve_010701.webp",
|
||||
"eve_010801.webp",
|
||||
"eve_010902.webp",
|
||||
"eve_011001.webp",
|
||||
"eve_011101.webp",
|
||||
"eve_011202.webp",
|
||||
"eve_011302.webp",
|
||||
"eve_011402.webp",
|
||||
"eve_020102.webp",
|
||||
"eve_020201.webp",
|
||||
"eve_020301.webp",
|
||||
"eve_020401.webp",
|
||||
"eve_020501.webp",
|
||||
"eve_020605.webp",
|
||||
"eve_020701.webp",
|
||||
"eve_020801.webp",
|
||||
"eve_030101.webp",
|
||||
"eve_030206.webp",
|
||||
"eve_030302.webp",
|
||||
"eve_030508.webp",
|
||||
"eve_030601.webp",
|
||||
"eve_030801.webp",
|
||||
"eve_030901.webp",
|
||||
"eve_031002.webp",
|
||||
"eve_031101.webp",
|
||||
"eve_040201.webp",
|
||||
"eve_040401.webp",
|
||||
"eve_040501.webp",
|
||||
"eve_040601.webp",
|
||||
"eve_040702.webp",
|
||||
"eve_040801.webp",
|
||||
"eve_050101.webp",
|
||||
"eve_050201.webp",
|
||||
"eve_050401.webp",
|
||||
"eve_050501.webp",
|
||||
"eve_050601.webp",
|
||||
"eve_050704.webp",
|
||||
"eve_050801.webp",
|
||||
"eve_070101.webp",
|
||||
"face_020101.webp",
|
||||
"face_020102.webp",
|
||||
"face_020103.webp",
|
||||
"face_020104.webp",
|
||||
"face_020105.webp",
|
||||
"face_020106.webp",
|
||||
"face_020107.webp",
|
||||
"face_020108.webp",
|
||||
"face_020109.webp",
|
||||
"face_020110.webp",
|
||||
"face_020111.webp",
|
||||
"face_020112.webp",
|
||||
"face_020113.webp",
|
||||
"face_020114.webp",
|
||||
"face_020115.webp",
|
||||
"face_020116.webp",
|
||||
"face_020117.webp",
|
||||
"face_020118.webp",
|
||||
"face_020121.webp",
|
||||
"face_020122.webp",
|
||||
"face_020123.webp",
|
||||
"face_020124.webp",
|
||||
"face_020125.webp",
|
||||
"face_020126.webp",
|
||||
"face_020127.webp",
|
||||
"face_020128.webp",
|
||||
"face_020129.webp",
|
||||
"face_020130.webp",
|
||||
"face_020131.webp",
|
||||
"face_020132.webp",
|
||||
"face_020133.webp",
|
||||
"face_020134.webp",
|
||||
"face_020135.webp",
|
||||
"face_020136.webp",
|
||||
"face_020137.webp",
|
||||
"face_020141.webp",
|
||||
"face_020142.webp",
|
||||
"face_020143.webp",
|
||||
"face_020144.webp",
|
||||
"face_020145.webp",
|
||||
"face_020146.webp",
|
||||
"face_020147.webp",
|
||||
"face_020148.webp",
|
||||
"face_020149.webp",
|
||||
"face_020150.webp",
|
||||
"face_020151.webp",
|
||||
"face_020152.webp",
|
||||
"face_020153.webp",
|
||||
"face_020154.webp",
|
||||
"face_020155.webp",
|
||||
"face_020156.webp",
|
||||
"face_020157.webp",
|
||||
"face_020158.webp",
|
||||
"face_020159.webp",
|
||||
"face_050445.webp",
|
||||
"face_120107.webp",
|
||||
"green.webp",
|
||||
"hero.webp",
|
||||
"l.webp",
|
||||
"lane1.webp",
|
||||
"light.webp",
|
||||
"lock.webp",
|
||||
"lr.webp",
|
||||
"maba.webp",
|
||||
"null.webp",
|
||||
"other_0001.webp",
|
||||
"other_0002.webp",
|
||||
"other_0003.webp",
|
||||
"other_0004.webp",
|
||||
"r.webp",
|
||||
"status.webp",
|
||||
"tati_020101.webp",
|
||||
"tati_020101a.webp",
|
||||
"tati_020101y.webp",
|
||||
"tati_020102.webp",
|
||||
"tati_020102a.webp",
|
||||
"tati_020103.webp",
|
||||
"tati_020103y.webp",
|
||||
"tati_020104.webp",
|
||||
"tati_020104a.webp",
|
||||
"tati_020104y.webp",
|
||||
"tati_020105.webp",
|
||||
"tati_020105a.webp",
|
||||
"tati_020105y.webp",
|
||||
"tati_020106.webp",
|
||||
"tati_020107.webp",
|
||||
"tati_020107a.webp",
|
||||
"tati_020107y.webp",
|
||||
"tati_020109.webp",
|
||||
"tati_020110.webp",
|
||||
"tati_020111.webp",
|
||||
"tati_020111a.webp",
|
||||
"tati_020113.webp",
|
||||
"tati_020113a.webp",
|
||||
"tati_020114.webp",
|
||||
"tati_020115.webp",
|
||||
"tati_020115y.webp",
|
||||
"tati_020116.webp",
|
||||
"tati_020116a.webp",
|
||||
"tati_020117.webp",
|
||||
"tati_020117a.webp",
|
||||
"tati_020118.webp",
|
||||
"tati_020121a.webp",
|
||||
"tati_020122.webp",
|
||||
"tati_020123.webp",
|
||||
"tati_020123y.webp",
|
||||
"tati_020124.webp",
|
||||
"tati_020124a.webp",
|
||||
"tati_020125.webp",
|
||||
"tati_020125a.webp",
|
||||
"tati_020125y.webp",
|
||||
"tati_020126.webp",
|
||||
"tati_020126y.webp",
|
||||
"tati_020127.webp",
|
||||
"tati_020129.webp",
|
||||
"tati_020130.webp",
|
||||
"tati_020131.webp",
|
||||
"tati_020131a.webp",
|
||||
"tati_020131y.webp",
|
||||
"tati_020132.webp",
|
||||
"tati_020133.webp",
|
||||
"tati_020134.webp",
|
||||
"tati_020135.webp",
|
||||
"tati_020135a.webp",
|
||||
"tati_020136.webp",
|
||||
"tati_020137.webp",
|
||||
"tati_020141.webp",
|
||||
"tati_020141a.webp",
|
||||
"tati_020142.webp",
|
||||
"tati_020142a.webp",
|
||||
"tati_020142y.webp",
|
||||
"tati_020143.webp",
|
||||
"tati_020143y.webp",
|
||||
"tati_020144.webp",
|
||||
"tati_020144a.webp",
|
||||
"tati_020145.webp",
|
||||
"tati_020145a.webp",
|
||||
"tati_020145y.webp",
|
||||
"tati_020146.webp",
|
||||
"tati_020147.webp",
|
||||
"tati_020149.webp",
|
||||
"tati_020150.webp",
|
||||
"tati_020151.webp",
|
||||
"tati_020151a.webp",
|
||||
"tati_020152.webp",
|
||||
"tati_020153.webp",
|
||||
"tati_020154.webp",
|
||||
"tati_020157.webp",
|
||||
"tati_020157a.webp",
|
||||
"tati_020158.webp",
|
||||
"tati_050145a.webp",
|
||||
"tati_120124.webp",
|
||||
"u.webp",
|
||||
"ud.webp",
|
||||
"udl.webp",
|
||||
"udlr.webp",
|
||||
"udr.webp",
|
||||
"ul.webp",
|
||||
"ulr.webp",
|
||||
"unknow.webp",
|
||||
"ur.webp",
|
||||
"winskin.webp",
|
||||
"winskin1.webp"
|
||||
],
|
||||
"tilesets": [
|
||||
"magictower.png",
|
||||
"5.png",
|
||||
"4.png",
|
||||
"3.png",
|
||||
"2.png",
|
||||
"1.png",
|
||||
"11.png",
|
||||
"6.png",
|
||||
"12.png",
|
||||
"Outside_B.png",
|
||||
"C4.png",
|
||||
"C3.png",
|
||||
"C2.png",
|
||||
"C1.png",
|
||||
"IconSet.png",
|
||||
"9.png",
|
||||
"8.png",
|
||||
"7.png",
|
||||
"10.png",
|
||||
"C5.png"
|
||||
"magictower.webp",
|
||||
"5.webp",
|
||||
"4.webp",
|
||||
"3.webp",
|
||||
"2.webp",
|
||||
"1.webp",
|
||||
"11.webp",
|
||||
"6.webp",
|
||||
"12.webp",
|
||||
"Outside_B.webp",
|
||||
"C4.webp",
|
||||
"C3.webp",
|
||||
"C2.webp",
|
||||
"C1.webp",
|
||||
"IconSet.webp",
|
||||
"9.webp",
|
||||
"8.webp",
|
||||
"7.webp",
|
||||
"10.webp",
|
||||
"C5.webp"
|
||||
],
|
||||
"animates": [
|
||||
"hand",
|
||||
@ -236,7 +365,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"穿脱装备": "equip.mp3",
|
||||
"背景音乐": "bgm.mp3",
|
||||
"攻击": "attack.mp3",
|
||||
"背景图": "bg.jpg",
|
||||
"背景图": "bg.webp",
|
||||
"商店": "shop.mp3",
|
||||
"领域": "zone"
|
||||
},
|
||||
@ -249,13 +378,13 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
],
|
||||
"startBgm": "theme.mp3",
|
||||
"styles": {
|
||||
"startBackground": "project/images/background.png",
|
||||
"startVerticalBackground": "project/images/backgroundvertical.png",
|
||||
"startBackground": "project/images/background.webp",
|
||||
"startVerticalBackground": "project/images/backgroundvertical.webp",
|
||||
"startLogoStyle": "color: black",
|
||||
"startButtonsStyle": "background-color: #000000; opacity: 0.45; color: #FFFFFF; border: #FFFFFF 2px solid; caret-color: #FFD700;",
|
||||
"statusLeftBackground": "url(project/materials/ground.png) repeat",
|
||||
"statusTopBackground": "url(project/materials/ground.png) repeat",
|
||||
"toolsBackground": "url(project/materials/ground.png) repeat",
|
||||
"statusLeftBackground": "url(project/materials/ground.webp) repeat",
|
||||
"statusTopBackground": "url(project/materials/ground.webp) repeat",
|
||||
"toolsBackground": "url(project/materials/ground.webp) repeat",
|
||||
"floorChangingStyle": "background-color: black; color: white",
|
||||
"statusBarColor": [
|
||||
255,
|
||||
@ -279,7 +408,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
},
|
||||
"splitImages": [
|
||||
{
|
||||
"name": "dragon.png",
|
||||
"name": "dragon.webp",
|
||||
"width": 384,
|
||||
"height": 96,
|
||||
"prefix": "dragon_"
|
||||
@ -292,7 +421,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"version": "鸽子窝造塔小队",
|
||||
"floorId": "street01",
|
||||
"hero": {
|
||||
"image": "hero.png",
|
||||
"image": "hero.webp",
|
||||
"animate": false,
|
||||
"name": "Caim",
|
||||
"lv": 1,
|
||||
@ -456,7 +585,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||
"data": [
|
||||
{
|
||||
"type": "drawSelector",
|
||||
"image": "winskin.png",
|
||||
"image": "winskin.webp",
|
||||
"code": 1,
|
||||
"x": 245,
|
||||
"y": "261 + 40*flag:selection",
|
||||
|
@ -35,7 +35,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
|
||||
"whiteHornSlime": {"name":"尖角怪","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
|
||||
"redSwordsman": {"name":"剑王","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
|
||||
"poisonZombie": {"name":"绿兽人","hp":100,"atk":120,"def":0,"money":13,"exp":0,"point":0,"special":[12]},
|
||||
"octopus": {"name":"血影","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0,"bigImage":"dragon_1.png"},
|
||||
"octopus": {"name":"血影","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0,"bigImage":"dragon_1.webp"},
|
||||
"princessEnemy": {"name":"假公主","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
|
||||
"angel": {"name":"天使","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
|
||||
"elemental": {"name":"元素生物","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
|
||||
@ -52,7 +52,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
|
||||
"magicMaster": {"name":"黑暗大法师","hp":100,"atk":120,"def":0,"money":12,"exp":0,"point":0,"special":11,"value":0.3333333333333333,"add":true,"notBomb":true},
|
||||
"devilWarrior": {"name":"魔神武士","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
|
||||
"fairyEnemy": {"name":"仙子","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
|
||||
"dragon": {"name":"魔龙","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0,"bigImage":"dragon_0.png"},
|
||||
"dragon": {"name":"魔龙","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0,"bigImage":"dragon_0.webp"},
|
||||
"skeletonKnight": {"name":"骷髅武士","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
|
||||
"skeletonPresbyter": {"name":"骷髅巫师","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
|
||||
"ironRock": {"name":"铁面人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
|
||||
|
7505
project/events.js
@ -23,6 +23,13 @@ main.floors.guangchang2=
|
||||
12
|
||||
],
|
||||
"direction": "up"
|
||||
},
|
||||
"12,10": {
|
||||
"floorId": "xiaoxiang01",
|
||||
"loc": [
|
||||
0,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"beforeBattle": {},
|
||||
|
@ -25,6 +25,60 @@ main.floors.street01=
|
||||
],
|
||||
"direction": "up"
|
||||
}
|
||||
],
|
||||
"6,11": [
|
||||
{
|
||||
"type": "insert",
|
||||
"name": "chapter01"
|
||||
}
|
||||
],
|
||||
"4,11": [
|
||||
{
|
||||
"type": "animationDrawable",
|
||||
"allFarme": 300,
|
||||
"color": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"imageList": [
|
||||
{
|
||||
"image": "bg_1511.webp",
|
||||
"beforefarme": 50,
|
||||
"globalAlpha": 0,
|
||||
"afterfarme": 250,
|
||||
"aglobalAlpha": 100
|
||||
},
|
||||
{
|
||||
"image": "eve_010304.webp",
|
||||
"beforefarme": 70,
|
||||
"globalAlpha": 0,
|
||||
"afterfarme": 170,
|
||||
"aglobalAlpha": 100,
|
||||
"ax": 0,
|
||||
"ay": 0
|
||||
},
|
||||
{
|
||||
"image": "eve_010304.webp",
|
||||
"beforefarme": 171,
|
||||
"globalAlpha": 100,
|
||||
"afterfarme": 270,
|
||||
"aglobalAlpha": 100,
|
||||
"ax": 800,
|
||||
"ay": 0
|
||||
}
|
||||
],
|
||||
"soundList": [
|
||||
{
|
||||
"sound": "",
|
||||
"startfarme": 0,
|
||||
"stopbefore": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "op"
|
||||
}
|
||||
]
|
||||
},
|
||||
"changeFloor": {
|
||||
|
@ -20,7 +20,7 @@ main.floors.street02=
|
||||
"floorId": "street01",
|
||||
"loc": [
|
||||
0,
|
||||
6
|
||||
8
|
||||
]
|
||||
},
|
||||
"0,6": {
|
||||
|
@ -15,7 +15,29 @@ main.floors.xiaoxiang01=
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"changeFloor": {
|
||||
"0,10": {
|
||||
"floorId": "guangchang2",
|
||||
"loc": [
|
||||
12,
|
||||
10
|
||||
]
|
||||
},
|
||||
"12,7": {
|
||||
"floorId": "xiaoxiang02",
|
||||
"loc": [
|
||||
0,
|
||||
7
|
||||
]
|
||||
},
|
||||
"6,12": {
|
||||
"floorId": "xiaoxiang3",
|
||||
"loc": [
|
||||
6,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
@ -28,15 +50,15 @@ main.floors.xiaoxiang01=
|
||||
[141,141,141,141,141,141,141,141,141,141,141,141,141],
|
||||
[141,141,141,141,141,141,141,141,141,141,141,141,141],
|
||||
[140,140,140,140,140,140,140,140,140,140,140,140,140],
|
||||
[140, 30,140, 0, 0, 0,221, 0,224, 0, 28, 27,140],
|
||||
[140, 30,140, 0, 81, 0,221, 0,224, 0, 28, 27,140],
|
||||
[140,224,140,225,140, 31,140, 0,140,140,140,224,140],
|
||||
[140, 0, 32, 0,140, 0,140,225,140,224, 0, 0,140],
|
||||
[140,225,140,140,140, 81,140, 0, 0, 0,140, 0, 94],
|
||||
[140, 0,222, 0,221, 0,140, 81,140,225,140,140,140],
|
||||
[140,140,140, 81,140,140,140, 31,140, 0, 81, 31,140],
|
||||
[ 92, 0, 0, 0, 32, 32,140, 0,140, 0,140,140,140],
|
||||
[140, 21, 21, 21, 21, 22,140, 0, 0, 0,222, 29,140],
|
||||
[140,140,140,140,140,140,140, 93,140,140,140,140,140]
|
||||
[140,140,140, 81,140,140,140, 0,140, 0, 81, 31,140],
|
||||
[ 92, 0, 32, 22, 32,140, 31, 0,140, 0,140,140,140],
|
||||
[140, 21, 21, 21, 21,140, 0, 0, 81, 0,222, 29,140],
|
||||
[140,140,140,140,140,140, 93,140,140,140,140,140,140]
|
||||
],
|
||||
"areas": "牢狱",
|
||||
"bgmap": [
|
||||
|
@ -15,7 +15,15 @@ main.floors.xiaoxiang02=
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"changeFloor": {
|
||||
"0,7": {
|
||||
"floorId": "xiaoxiang01",
|
||||
"loc": [
|
||||
12,
|
||||
7
|
||||
]
|
||||
}
|
||||
},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
@ -28,14 +36,14 @@ main.floors.xiaoxiang02=
|
||||
[141,141,141,141,141,141,141,141,141,141,141,141,141],
|
||||
[141,141,141,141,141,141,141,141,141,141,141,141,141],
|
||||
[140,140,140,140,140,140,140,140,140,140,140,140,140],
|
||||
[140, 0, 0, 0,140, 0, 0, 0, 0,140, 0, 0,140],
|
||||
[140, 0,140, 0,140,140,140,140, 0,140,140, 0,140],
|
||||
[140, 0, 81, 0,140, 0, 0, 0, 0,140, 0, 0,140],
|
||||
[140, 0,140, 0,140,140,140,140, 81,140,140, 81,140],
|
||||
[140, 0,140, 0, 0, 0, 0, 0, 0, 0, 0, 0,140],
|
||||
[ 92, 0,140,140,140,140, 0,140,140,140, 0,140,140],
|
||||
[ 92, 0,140,140,140,140, 81,140,140,140, 81,140,140],
|
||||
[140, 0, 0, 0, 0, 0, 0, 0, 0,140, 0, 0,140],
|
||||
[140,140,140,140,140, 0,140,140, 0,140,140, 0,140],
|
||||
[140, 0, 0, 0,140, 0,140, 0, 0, 0,140, 0,140],
|
||||
[140, 0, 0, 0, 81, 0,140, 0, 0, 0, 0, 0,140],
|
||||
[140,140,140,140,140, 0,140,140, 82,140,140, 0,140],
|
||||
[140, 0, 0, 0,140, 0,140, 0, 0, 0, 81, 0,140],
|
||||
[140, 0, 0, 0, 81, 0,140, 0, 0, 0,140, 0,140],
|
||||
[140,140,140,140,140,140,140,140,140,140,140,140,140]
|
||||
],
|
||||
"areas": "牢狱",
|
||||
|
90
project/floors/xiaoxiang03.js
Normal file
@ -0,0 +1,90 @@
|
||||
main.floors.xiaoxiang03=
|
||||
{
|
||||
"floorId": "xiaoxiang03",
|
||||
"title": "小巷",
|
||||
"name": "1",
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"images": [],
|
||||
"ratio": 1,
|
||||
"defaultGround": "X30001",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[120125,120125,120125,120125,120125,120125,120125,120125,120125,120125,120125,120125,120125],
|
||||
[120150,120150,120150,120150,120150,120150,120150,120150,120150,120150,120150,120150,120150],
|
||||
[120174,71784,71785,71816,71817,90187,90187,90187,71784,71785,71786,71787,120174],
|
||||
[120041,71792,71793,71824,71825,90194,90195,90196,71792,71793,71794,71795,71819],
|
||||
[100436,100437, 0, 81,222,130011, 31, 21,71783, 31, 0, 31,71827],
|
||||
[100460, 21,221,30214, 22,130006,224, 21,71783,221, 27, 0,71807],
|
||||
[100484,30217, 81,30217,30218,30217, 81,120014,120014, 81,120014,120014,71815],
|
||||
[110012, 0,224, 0, 0,20168, 0, 0,224, 0, 0, 0, 94],
|
||||
[ 92, 0,71818, 31,222,20168, 81,120014,120014,120014,120014,120014,120014],
|
||||
[71821, 82,71826,71783, 81,20168,225, 0, 82,221, 28, 21,71834],
|
||||
[71829, 0,71750, 21, 0,20176, 0, 31,110122,110122,110122,224,71842],
|
||||
[71817, 31, 81, 0,224, 81, 21, 0, 81,222, 27, 21,71783],
|
||||
[120134,120134,120134,120134,120134,120134,120134,120134,120134,120134,120134,120134,120134]
|
||||
],
|
||||
"areas": "牢狱",
|
||||
"bgmap": [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[120166,120166,120166,120166,120166,120166,120166,120166,120166,120166,120166,120166,120166],
|
||||
[120174,120174,120174,120174,120174,100360,100361,100362,120173,120174,120174,120174,120174],
|
||||
[ 0, 0, 0, 0, 0,100384,100385,100386, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0,100461, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0,100485, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[71837, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
],
|
||||
"fgmap": [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,110020],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,110020],
|
||||
[ 0, 0, 0, 0, 0, 0, 0,120006,120006, 0,120006,120006, 0],
|
||||
[ 0, 0, 0, 0, 0,20160, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0,120006,120006,120006,120006,120006,120006],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0,71742, 0, 0, 0, 0, 0,110114,110114,110114, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
],
|
||||
"bg2map": [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[120150,120150,120150,120150,120150,120150,120150,120150,120150,120150,120150,120150,120150],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,71791],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,110028],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,110028],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
}
|
144
project/floors/xiaoxiang3.js
Normal file
@ -0,0 +1,144 @@
|
||||
main.floors.xiaoxiang3=
|
||||
{
|
||||
"floorId": "xiaoxiang3",
|
||||
"title": "小巷",
|
||||
"name": "1",
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"images": [],
|
||||
"ratio": 1,
|
||||
"defaultGround": "grass2",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {
|
||||
"6,0": {
|
||||
"floorId": "xiaoxiang01",
|
||||
"loc": [
|
||||
6,
|
||||
12
|
||||
]
|
||||
}
|
||||
},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {
|
||||
"6,8": [
|
||||
{
|
||||
"type": "setValue",
|
||||
"name": "flag:door_xiaoxiang3_4_9",
|
||||
"operator": "+=",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"type": "setValue",
|
||||
"name": "flag:door_xiaoxiang3_8_9",
|
||||
"operator": "+=",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"type": "setValue",
|
||||
"name": "flag:door_xiaoxiang3_6_11",
|
||||
"operator": "+=",
|
||||
"value": "1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {
|
||||
"4,9": {
|
||||
"0": {
|
||||
"condition": "flag:door_xiaoxiang3_4_9==1",
|
||||
"currentFloor": true,
|
||||
"priority": 0,
|
||||
"delayExecute": false,
|
||||
"multiExecute": false,
|
||||
"data": [
|
||||
{
|
||||
"type": "openDoor"
|
||||
},
|
||||
{
|
||||
"type": "setValue",
|
||||
"name": "flag:door_xiaoxiang3_4_9",
|
||||
"operator": "=",
|
||||
"value": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"8,9": {
|
||||
"0": {
|
||||
"condition": "flag:door_xiaoxiang3_8_9==1",
|
||||
"currentFloor": true,
|
||||
"priority": 0,
|
||||
"delayExecute": false,
|
||||
"multiExecute": false,
|
||||
"data": [
|
||||
{
|
||||
"type": "openDoor"
|
||||
},
|
||||
{
|
||||
"type": "setValue",
|
||||
"name": "flag:door_xiaoxiang3_8_9",
|
||||
"operator": "=",
|
||||
"value": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"6,11": {
|
||||
"0": {
|
||||
"condition": "flag:door_xiaoxiang3_6_11==1",
|
||||
"currentFloor": true,
|
||||
"priority": 0,
|
||||
"delayExecute": false,
|
||||
"multiExecute": false,
|
||||
"data": [
|
||||
{
|
||||
"type": "openDoor"
|
||||
},
|
||||
{
|
||||
"type": "setValue",
|
||||
"name": "flag:door_xiaoxiang3_6_11",
|
||||
"operator": "=",
|
||||
"value": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[140,140,140,140, 0, 0, 91, 0, 0,140,140,140,140],
|
||||
[140,140,140,140, 0, 0, 0, 0, 0,140,140,140,140],
|
||||
[140,140,140,140,140,140, 0,140,140,140,140,140,140],
|
||||
[140,140,140,140,140,140, 0,140, 0,140,140,140,140],
|
||||
[140,140,140,140, 0, 0, 0, 0, 0,140,140,140,140],
|
||||
[140,140,140,140,140,140, 83,140,140,140,140,140,140],
|
||||
[140,140,140,140, 0, 0, 0, 0, 0,140,140,140,140],
|
||||
[140,140,140,140, 0, 0, 0, 0, 0,140,140,140,140],
|
||||
[140,140,140,140, 0, 0,247, 0, 0,140,140,140,140],
|
||||
[140,140,140,140, 85,140, 0,140, 85,140,140,140,140],
|
||||
[140,140,140,140, 34,140, 0,140, 27,140,140,140,140],
|
||||
[140,140,140,140, 21,140, 85,140, 28,140,140,140,140],
|
||||
[140,140,140,140,140,140, 93,140,140,140,140,140,140]
|
||||
],
|
||||
"areas": "牢狱",
|
||||
"bgmap": [
|
||||
|
||||
],
|
||||
"fgmap": [
|
||||
|
||||
],
|
||||
"bg2map": [
|
||||
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
}
|
53
project/floors/yiqu1.js
Normal file
@ -0,0 +1,53 @@
|
||||
main.floors.yiqu1=
|
||||
{
|
||||
"floorId": "yiqu1",
|
||||
"title": "主塔 1 层",
|
||||
"name": "1",
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"images": [],
|
||||
"ratio": 1,
|
||||
"defaultGround": "grass2",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[140,140,140,140,140,140, 91,140,140,140,140,140,140],
|
||||
[140,140,140,140,140,140, 0,140,140, 0, 0, 0, 94],
|
||||
[140,140,140,140,140,140, 0, 0,140,140, 81, 0, 0],
|
||||
[140,140,140,140,140,140, 0, 0, 0,140, 0,140,140],
|
||||
[140, 0, 0, 0,140, 0, 0, 0,140,140,140,140,140],
|
||||
[140, 0,140,140,140, 0,140, 0,140, 0, 0, 0, 94],
|
||||
[140, 0, 0,140, 0, 0,140, 0, 0, 0, 0, 0,140],
|
||||
[ 92, 0, 0,140,140,140,140, 0,140,140, 81,140,140],
|
||||
[140,140, 0,140, 0, 0, 0, 0,140, 0, 0, 0,140],
|
||||
[140, 0, 0, 0, 0, 0,140, 0,140, 0, 0, 0,140],
|
||||
[140,140,140,140,140,140,140,140,140,140,140,140,140],
|
||||
[140,140,140,140,140,140,140,140,140,140,140,140,140],
|
||||
[140,140,140,140,140,140,140,140,140,140,140,140,140]
|
||||
],
|
||||
"bgmap": [
|
||||
|
||||
],
|
||||
"fgmap": [
|
||||
|
||||
],
|
||||
"bg2map": [
|
||||
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
}
|
41
project/floors/yiqu10.js
Normal file
@ -0,0 +1,41 @@
|
||||
main.floors.yiqu10=
|
||||
{
|
||||
"floorId": "yiqu10",
|
||||
"title": "主塔 10 层",
|
||||
"name": "10",
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"images": [],
|
||||
"ratio": 1,
|
||||
"defaultGround": "grass2",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
],
|
||||
}
|
53
project/floors/yiqu2.js
Normal file
@ -0,0 +1,53 @@
|
||||
main.floors.yiqu2=
|
||||
{
|
||||
"floorId": "yiqu2",
|
||||
"title": "主塔 2 层",
|
||||
"name": "2",
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"images": [],
|
||||
"ratio": 1,
|
||||
"defaultGround": "grass2",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[140,140,140,140,140,140,140,140,140,140,140,140,140],
|
||||
[140,140,140,140,140,140,140,140,140,140,140,140,140],
|
||||
[140,140,140,140,140,140,140,140, 32, 21, 28, 27,140],
|
||||
[140,140,140,140,140,140,140,140,140, 82,140,140,140],
|
||||
[140, 32, 0, 0,210, 0,140, 0, 0,214, 0, 0,140],
|
||||
[140,140,140, 81,140, 0, 81, 0,140, 21,140, 0,140],
|
||||
[140, 0,209, 0,140,140,140,210,140,140,140, 0,140],
|
||||
[140,210,140,214,140, 27,140, 0,140, 22, 0, 0, 94],
|
||||
[140, 0,209, 0, 81, 28,140, 0, 81, 21, 21, 21, 0],
|
||||
[140,140,140,140,140,140,140,140,140,140,140,140,140],
|
||||
[140,140,140,140,140,140,140,140,140,140,140,140,140],
|
||||
[140,140,140,140,140,140,140,140,140,140,140,140,140],
|
||||
[140,140,140,140,140,140,140,140,140,140,140,140,140]
|
||||
],
|
||||
"bgmap": [
|
||||
|
||||
],
|
||||
"fgmap": [
|
||||
|
||||
],
|
||||
"bg2map": [
|
||||
|
||||
],
|
||||
"fg2map": [
|
||||
|
||||
]
|
||||
}
|
41
project/floors/yiqu3.js
Normal file
@ -0,0 +1,41 @@
|
||||
main.floors.yiqu3=
|
||||
{
|
||||
"floorId": "yiqu3",
|
||||
"title": "主塔 3 层",
|
||||
"name": "3",
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"images": [],
|
||||
"ratio": 1,
|
||||
"defaultGround": "grass2",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
],
|
||||
}
|
41
project/floors/yiqu4.js
Normal file
@ -0,0 +1,41 @@
|
||||
main.floors.yiqu4=
|
||||
{
|
||||
"floorId": "yiqu4",
|
||||
"title": "主塔 4 层",
|
||||
"name": "4",
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"images": [],
|
||||
"ratio": 1,
|
||||
"defaultGround": "grass2",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
],
|
||||
}
|
41
project/floors/yiqu5.js
Normal file
@ -0,0 +1,41 @@
|
||||
main.floors.yiqu5=
|
||||
{
|
||||
"floorId": "yiqu5",
|
||||
"title": "主塔 5 层",
|
||||
"name": "5",
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"images": [],
|
||||
"ratio": 1,
|
||||
"defaultGround": "grass2",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
],
|
||||
}
|
41
project/floors/yiqu6.js
Normal file
@ -0,0 +1,41 @@
|
||||
main.floors.yiqu6=
|
||||
{
|
||||
"floorId": "yiqu6",
|
||||
"title": "主塔 6 层",
|
||||
"name": "6",
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"images": [],
|
||||
"ratio": 1,
|
||||
"defaultGround": "grass2",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
],
|
||||
}
|
41
project/floors/yiqu7.js
Normal file
@ -0,0 +1,41 @@
|
||||
main.floors.yiqu7=
|
||||
{
|
||||
"floorId": "yiqu7",
|
||||
"title": "主塔 7 层",
|
||||
"name": "7",
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"images": [],
|
||||
"ratio": 1,
|
||||
"defaultGround": "grass2",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
],
|
||||
}
|
41
project/floors/yiqu8.js
Normal file
@ -0,0 +1,41 @@
|
||||
main.floors.yiqu8=
|
||||
{
|
||||
"floorId": "yiqu8",
|
||||
"title": "主塔 8 层",
|
||||
"name": "8",
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"images": [],
|
||||
"ratio": 1,
|
||||
"defaultGround": "grass2",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
],
|
||||
}
|
41
project/floors/yiqu9.js
Normal file
@ -0,0 +1,41 @@
|
||||
main.floors.yiqu9=
|
||||
{
|
||||
"floorId": "yiqu9",
|
||||
"title": "主塔 9 层",
|
||||
"name": "9",
|
||||
"width": 13,
|
||||
"height": 13,
|
||||
"canFlyTo": true,
|
||||
"canFlyFrom": true,
|
||||
"canUseQuickShop": true,
|
||||
"images": [],
|
||||
"ratio": 1,
|
||||
"defaultGround": "grass2",
|
||||
"firstArrive": [],
|
||||
"eachArrive": [],
|
||||
"parallelDo": "",
|
||||
"events": {},
|
||||
"changeFloor": {},
|
||||
"beforeBattle": {},
|
||||
"afterBattle": {},
|
||||
"afterGetItem": {},
|
||||
"afterOpenDoor": {},
|
||||
"autoEvent": {},
|
||||
"cannotMove": {},
|
||||
"cannotMoveIn": {},
|
||||
"map": [
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
],
|
||||
}
|
@ -171,8 +171,8 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
core.removeFlag("__events__");
|
||||
} else {
|
||||
// 每次抵达楼层执行的事件
|
||||
core.ui.statusBar._update_map(); //更新小地图缓存
|
||||
core.insertAction(core.floors[floorId].eachArrive);
|
||||
core.ui.statusBar._update_map()
|
||||
// 首次抵达楼层时执行的事件(后插入,先执行)
|
||||
if (!core.hasVisitedFloor(floorId)) {
|
||||
core.insertAction(core.floors[floorId].firstArrive);
|
||||
@ -1044,7 +1044,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
},
|
||||
"loadData": function (data, callback) {
|
||||
// 读档操作;从存储中读取了内容后的行为
|
||||
|
||||
const play = core.status.played
|
||||
// 重置游戏和路线
|
||||
core.resetGame(data.hero, data.hard, data.floorId, core.maps.loadMap(data.maps, null, data.hero.flags), data.values);
|
||||
core.status.route = core.decodeRoute(data.route);
|
||||
@ -1071,6 +1071,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
// TODO:增加自己的一些读档处理
|
||||
core.ui.statusBar.clearItemInfo()
|
||||
core.ui.statusBar.update();
|
||||
|
||||
// 切换到对应的楼层
|
||||
core.changeFloor(data.floorId, null, data.hero.loc, 0, function () {
|
||||
// TODO:可以在这里设置读档后播放BGM
|
||||
@ -1079,9 +1080,12 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
}
|
||||
|
||||
core.removeFlag('__fromLoad__');
|
||||
if (!play) core.insertCommonEvent('强制横屏')
|
||||
if (callback) callback();
|
||||
});
|
||||
core.doAction()
|
||||
if (play) core.doAction()
|
||||
|
||||
|
||||
},
|
||||
"getStatusLabel": function (name) {
|
||||
// 返回某个状态英文名的对应中文标签,如atk -> 攻击,def -> 防御等。
|
||||
@ -1166,7 +1170,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
core.updateStatus()
|
||||
// 更新状态栏
|
||||
core.ui.statusBar.update();
|
||||
|
||||
// 更新阻激夹域的伤害值
|
||||
core.updateCheckBlock();
|
||||
// 更新全地图显伤
|
||||
@ -1565,7 +1568,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
core.ui.setFillStyle(ctx, core.status.globalAttribute.statusBarColor);
|
||||
var offset = core.status.hero.loc.x - core.bigmap.offsetX / 32 >= core._HEIGHT_ ? 0 : core._PY_;
|
||||
core.ui.setAlpha(ctx, 0.75);
|
||||
core.ui.drawWindowSkin('winskin.png', ctx, offset, 0, core._PX_ - core._PY_, core._PY_);
|
||||
core.ui.drawWindowSkin('winskin.webp', ctx, offset, 0, core._PX_ - core._PY_, core._PY_);
|
||||
core.ui.setAlpha(ctx, 1);
|
||||
core.drawImage(ctx, core.statusBar.icons.floor, 6 + offset, 9, 25, 25);
|
||||
fill((core.status.thisMap || {}).name || "Loading", 42 + offset, 29);
|
||||
|
Before Width: | Height: | Size: 6.2 KiB |
BIN
project/images/HPGaugeEnemy_A.webp
Normal file
After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 18 KiB |
BIN
project/images/HPGaugeEnemy_B.webp
Normal file
After Width: | Height: | Size: 834 B |
Before Width: | Height: | Size: 3.0 MiB |
BIN
project/images/background.webp
Normal file
After Width: | Height: | Size: 256 KiB |
Before Width: | Height: | Size: 3.5 MiB |
BIN
project/images/backgroundvertical.webp
Normal file
After Width: | Height: | Size: 257 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 258 KiB |
Before Width: | Height: | Size: 1.4 MiB |
BIN
project/images/bg_1511.webp
Normal file
After Width: | Height: | Size: 117 KiB |
Before Width: | Height: | Size: 1.2 MiB |
BIN
project/images/bg_1521.webp
Normal file
After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 2.5 MiB |
BIN
project/images/bg_2010.webp
Normal file
After Width: | Height: | Size: 222 KiB |
Before Width: | Height: | Size: 1.4 MiB |
BIN
project/images/bg_2011.webp
Normal file
After Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 1.4 MiB |
BIN
project/images/bg_2521.webp
Normal file
After Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 1.2 MiB |
BIN
project/images/bg_3042.webp
Normal file
After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 1.4 MiB |
BIN
project/images/bg_3531.webp
Normal file
After Width: | Height: | Size: 120 KiB |
Before Width: | Height: | Size: 1.3 MiB |
BIN
project/images/bg_3551.webp
Normal file
After Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 815 KiB |
BIN
project/images/bg_3563.webp
Normal file
After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 1.2 MiB |
BIN
project/images/bg_3571.webp
Normal file
After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 1.4 MiB |
BIN
project/images/bg_3601.webp
Normal file
After Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 1.3 MiB |
BIN
project/images/bg_3721.webp
Normal file
After Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 1.5 MiB |
BIN
project/images/bg_5033.webp
Normal file
After Width: | Height: | Size: 147 KiB |
Before Width: | Height: | Size: 1.5 MiB |
BIN
project/images/bg_5043.webp
Normal file
After Width: | Height: | Size: 176 KiB |
Before Width: | Height: | Size: 1.5 MiB |
BIN
project/images/bg_5044.webp
Normal file
After Width: | Height: | Size: 166 KiB |
Before Width: | Height: | Size: 1.2 MiB |
BIN
project/images/bg_6004.webp
Normal file
After Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 123 KiB |
BIN
project/images/cao.webp
Normal file
After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 1.4 KiB |
BIN
project/images/d.webp
Normal file
After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
BIN
project/images/dl.webp
Normal file
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.6 KiB |
BIN
project/images/dlr.webp
Normal file
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.5 KiB |
BIN
project/images/dr.webp
Normal file
After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 8.5 KiB |
BIN
project/images/dragon.webp
Normal file
After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 1.2 MiB |
BIN
project/images/eve_010102.webp
Normal file
After Width: | Height: | Size: 83 KiB |
Before Width: | Height: | Size: 992 KiB |
BIN
project/images/eve_010203.webp
Normal file
After Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 1.3 MiB |
BIN
project/images/eve_010304.webp
Normal file
After Width: | Height: | Size: 116 KiB |
Before Width: | Height: | Size: 1.3 MiB |
BIN
project/images/eve_010501.webp
Normal file
After Width: | Height: | Size: 117 KiB |
Before Width: | Height: | Size: 1.4 MiB |
BIN
project/images/eve_010601.webp
Normal file
After Width: | Height: | Size: 130 KiB |
Before Width: | Height: | Size: 1.2 MiB |
BIN
project/images/eve_010701.webp
Normal file
After Width: | Height: | Size: 110 KiB |
Before Width: | Height: | Size: 1.1 MiB |
BIN
project/images/eve_010801.webp
Normal file
After Width: | Height: | Size: 102 KiB |