This commit is contained in:
SOLATR 2025-01-05 08:29:13 +08:00
commit 9924d301d8
445 changed files with 22492 additions and 15441 deletions

View File

@ -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']*/;

File diff suppressed because it is too large Load Diff

View File

@ -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(),

View File

@ -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];

View File

@ -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');
startImageLogo.onload = function () {
startImageBackgroundDiv.style.display = 'block';
var onAnimationEnd = function () {
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.src = "logo.png";
})();
(function () {
var startImageBackgroundDiv = document.getElementById(
"startImageBackgroundDiv"
);
var startImageLogo = document.getElementById("startImageLogo");
var startImageDiv = document.getElementById("startImageDiv");
startImageLogo.onload = function () {
startImageBackgroundDiv.style.display = "block";
var onAnimationEnd = function () {
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.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>
<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>
</div>
<div id='levelChooseButtons'></div>
</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>
</div>
<div id='floorMsgGroup'>
<p id='logoLabel'></p>
<p id='versionLabel'></p>
<p id='floorNameLabel'></p>
<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>
</div>
<div id="floorMsgGroup">
<p id="logoLabel"></p>
<p id="versionLabel"></p>
<p id="floorNameLabel"></p>
</div>
<div id="statusBar" class="clearfix">
<div class="status" id="floorCol">
<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>
</div>
<div class="status" id="lvCol">
<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>
<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>
<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>
<div class="status" id="mdefCol">
<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>
</div>
<div class="status" id="expCol">
<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>
</div>
<div class="status" id="skillCol">
<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>
<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>
</div>
<div id='statusBar' class="clearfix">
<div class="status" id="floorCol">
<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>
</div>
<div class="status" id="lvCol">
<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>
<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>
<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>
<div class="status" id="mdefCol">
<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>
</div>
<div class="status" id="expCol">
<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>
</div>
<div class="status" id="skillCol">
<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>
<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>
</div>
<!-- 状态栏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'>
<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>
<div id="next"></div>
</div>
<!-- 状态栏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" />
<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>
<div id="next"></div>
</div>
</div>
<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>
</div>
<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>
</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>

1781
main.js

File diff suppressed because it is too large Load Diff

BIN
project/bgms/op.mp3 Normal file

Binary file not shown.

View File

@ -32,143 +32,261 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
],
"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",
@ -247,7 +365,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"穿脱装备": "equip.mp3",
"背景音乐": "bgm.mp3",
"攻击": "attack.mp3",
"背景图": "bg.jpg",
"背景图": "bg.webp",
"商店": "shop.mp3",
"领域": "zone"
},
@ -260,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,
@ -290,7 +408,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
},
"splitImages": [
{
"name": "dragon.png",
"name": "dragon.webp",
"width": 384,
"height": 96,
"prefix": "dragon_"
@ -303,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,
@ -467,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",

View File

@ -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},

File diff suppressed because it is too large Load Diff

View File

@ -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": {

View File

@ -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);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 834 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

BIN
project/images/bg_1511.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

BIN
project/images/bg_1521.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

BIN
project/images/bg_2010.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

BIN
project/images/bg_2011.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

BIN
project/images/bg_2521.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

BIN
project/images/bg_3042.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

BIN
project/images/bg_3531.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

BIN
project/images/bg_3551.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 815 KiB

BIN
project/images/bg_3563.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

BIN
project/images/bg_3571.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

BIN
project/images/bg_3601.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

BIN
project/images/bg_3721.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

BIN
project/images/bg_5033.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

BIN
project/images/bg_5043.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

BIN
project/images/bg_5044.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

BIN
project/images/bg_6004.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

BIN
project/images/cao.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

BIN
project/images/d.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

BIN
project/images/dl.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

BIN
project/images/dlr.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

BIN
project/images/dr.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

BIN
project/images/dragon.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 992 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Some files were not shown because too many files have changed in this diff Show More