This commit is contained in:
ckcz123 2021-01-29 10:57:51 +08:00
parent c1b73d9960
commit 04f07b2ed4
8 changed files with 14 additions and 9 deletions

View File

@ -65,6 +65,11 @@ HTML5 canvas制作的魔塔样板支持全平台游戏
## 更新说明
### 2021.1.29 HTML5魔塔样板V2.7.3.1
* [x] 怪物可以增加怪物描述到详情页
* [x] 修复V2.7.3的所有已知bug
### 2020.11.8 HTML5魔塔样板V2.7.3
* [x] 内置高清UI界面更清晰

View File

@ -870,7 +870,7 @@ beforeBattle: fn(enemyId?: string, x?: number, y?: number) -> bool
changeFloor: fn(floorId: string, stair?: string, heroLoc?: {x?: number, y?: number, direction?: string}, time?: number, callback?: fn())
场景切换
例如core.changeFloor('MT0'); // 传送到主塔0层主角坐标和朝向不变黑屏时间取用户定义的值
floorId: 传送的目标地图id可以填':before'和':after'分别表示楼下或楼上
floorId: 传送的目标地图id可以填':before'和':next'分别表示楼下或楼上
stair: 传送的位置
heroLoc: 传送的坐标会覆盖stair
time: 传送的黑屏时间,单位为毫秒;不填为用户设置值

View File

@ -3929,7 +3929,7 @@ var terndefs_f6783a0a_522d_417e_8407_94c67b692e50 = [
"!type": "fn(steps: [step], time?: number, callback?: fn())"
},
"changeFloor": {
"!doc": "场景切换<br/>例如core.changeFloor('MT0'); // 传送到主塔0层主角坐标和朝向不变黑屏时间取用户定义的值<br/>floorId: 传送的目标地图id可以填':before'和':after'分别表示楼下或楼上<br/>stair: 传送的位置<br/>heroLoc: 传送的坐标会覆盖stair<br/>time: 传送的黑屏时间,单位为毫秒;不填为用户设置值<br/>callback: 传送的回调函数<br/>【异步脚本,请勿在脚本中直接调用(而是使用对应的事件),否则可能导致录像出错】",
"!doc": "场景切换<br/>例如core.changeFloor('MT0'); // 传送到主塔0层主角坐标和朝向不变黑屏时间取用户定义的值<br/>floorId: 传送的目标地图id可以填':before'和':next'分别表示楼下或楼上<br/>stair: 传送的位置<br/>heroLoc: 传送的坐标会覆盖stair<br/>time: 传送的黑屏时间,单位为毫秒;不填为用户设置值<br/>callback: 传送的回调函数<br/>【异步脚本,请勿在脚本中直接调用(而是使用对应的事件),否则可能导致录像出错】",
"!type": "fn(floorId: string, stair?: string, heroLoc?: {x?: number, y?: number, direction?: string}, time?: number, callback?: fn())"
},
"getCommonEvent": {

View File

@ -595,7 +595,7 @@ return '{' + [
mainStyle_m
: '主要样式设置:' '标题界面背景图544x422' EvalString BGNL? Newline
: '主要样式设置:' '标题界面背景图554x422' EvalString BGNL? Newline
'竖屏标题界面背景图422x580' EvalString BGNL? Newline
'标题样式;可写 display: none 隐藏标题' EvalString BGNL? Newline
'标题按钮样式:' EvalString BGNL? Newline

View File

@ -486,7 +486,7 @@ editor_blockly = function () {
editor.uievent.selectPoint(floorId, x, y, false, function (fv, xv, yv) {
if (!arr) return;
if (arr[2] != null) {
if (fv != editor.currentFloorId) block.setFieldValue(fv, arr[2]);
if (fv != editor.currentFloorId || editor_blockly.entryType == 'commonEvent') block.setFieldValue(fv, arr[2]);
else block.setFieldValue(arr[3] ? fv : "", arr[2]);
}
if (arr[0] === arr[1]) {

View File

@ -2711,7 +2711,7 @@ control.prototype.clearStatusBar = function() {
////// 更新状态栏 //////
control.prototype.updateStatusBar = function (doNotCheckAutoEvents) {
if (!core.isPlaying()) return;
if (!core.isPlaying() || core.hasFlag('__statistics__')) return;
this.controldata.updateStatusBar();
if (!doNotCheckAutoEvents) core.checkAutoEvents();
this._updateStatusBar_setToolboxIcon();

View File

@ -2,7 +2,7 @@ function main() {
//------------------------ 用户修改内容 ------------------------//
this.version = "2.7.3"; // 游戏版本号如果更改了游戏内容建议修改此version以免造成缓存问题。
this.version = "2.7.3.1"; // 游戏版本号如果更改了游戏内容建议修改此version以免造成缓存问题。
this.useCompress = false; // 是否使用压缩文件
// 当你即将发布你的塔时请使用“JS代码压缩工具”将所有js代码进行压缩然后将这里的useCompress改为true。
@ -186,8 +186,8 @@ function main() {
this.floors = {}
this.canvas = {};
this.__VERSION__ = "2.7.3";
this.__VERSION_CODE__ = 261;
this.__VERSION__ = "2.7.3.1";
this.__VERSION_CODE__ = 273;
}
main.prototype.init = function (mode, callback) {

View File

@ -105,7 +105,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"firstData": {
"title": "魔塔样板",
"name": "template",
"version": "Ver 2.7.3",
"version": "Ver 2.7.3.1",
"floorId": "sample0",
"hero": {
"image": "hero.png",