V2.7.3.1
This commit is contained in:
parent
c1b73d9960
commit
04f07b2ed4
@ -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
|
### 2020.11.8 HTML5魔塔样板V2.7.3
|
||||||
|
|
||||||
* [x] 内置高清UI,界面更清晰!
|
* [x] 内置高清UI,界面更清晰!
|
||||||
|
|||||||
@ -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())
|
changeFloor: fn(floorId: string, stair?: string, heroLoc?: {x?: number, y?: number, direction?: string}, time?: number, callback?: fn())
|
||||||
场景切换
|
场景切换
|
||||||
例如:core.changeFloor('MT0'); // 传送到主塔0层,主角坐标和朝向不变,黑屏时间取用户定义的值
|
例如:core.changeFloor('MT0'); // 传送到主塔0层,主角坐标和朝向不变,黑屏时间取用户定义的值
|
||||||
floorId: 传送的目标地图id,可以填':before'和':after'分别表示楼下或楼上
|
floorId: 传送的目标地图id,可以填':before'和':next'分别表示楼下或楼上
|
||||||
stair: 传送的位置
|
stair: 传送的位置
|
||||||
heroLoc: 传送的坐标;会覆盖stair
|
heroLoc: 传送的坐标;会覆盖stair
|
||||||
time: 传送的黑屏时间,单位为毫秒;不填为用户设置值
|
time: 传送的黑屏时间,单位为毫秒;不填为用户设置值
|
||||||
|
|||||||
@ -3929,7 +3929,7 @@ var terndefs_f6783a0a_522d_417e_8407_94c67b692e50 = [
|
|||||||
"!type": "fn(steps: [step], time?: number, callback?: fn())"
|
"!type": "fn(steps: [step], time?: number, callback?: fn())"
|
||||||
},
|
},
|
||||||
"changeFloor": {
|
"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())"
|
"!type": "fn(floorId: string, stair?: string, heroLoc?: {x?: number, y?: number, direction?: string}, time?: number, callback?: fn())"
|
||||||
},
|
},
|
||||||
"getCommonEvent": {
|
"getCommonEvent": {
|
||||||
|
|||||||
@ -595,7 +595,7 @@ return '{' + [
|
|||||||
|
|
||||||
|
|
||||||
mainStyle_m
|
mainStyle_m
|
||||||
: '主要样式设置:' '标题界面背景图(544x422):' EvalString BGNL? Newline
|
: '主要样式设置:' '标题界面背景图(554x422):' EvalString BGNL? Newline
|
||||||
'竖屏标题界面背景图(422x580)' EvalString BGNL? Newline
|
'竖屏标题界面背景图(422x580)' EvalString BGNL? Newline
|
||||||
'标题样式;可写 display: none 隐藏标题' EvalString BGNL? Newline
|
'标题样式;可写 display: none 隐藏标题' EvalString BGNL? Newline
|
||||||
'标题按钮样式:' EvalString BGNL? Newline
|
'标题按钮样式:' EvalString BGNL? Newline
|
||||||
|
|||||||
@ -486,7 +486,7 @@ editor_blockly = function () {
|
|||||||
editor.uievent.selectPoint(floorId, x, y, false, function (fv, xv, yv) {
|
editor.uievent.selectPoint(floorId, x, y, false, function (fv, xv, yv) {
|
||||||
if (!arr) return;
|
if (!arr) return;
|
||||||
if (arr[2] != null) {
|
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]);
|
else block.setFieldValue(arr[3] ? fv : "", arr[2]);
|
||||||
}
|
}
|
||||||
if (arr[0] === arr[1]) {
|
if (arr[0] === arr[1]) {
|
||||||
|
|||||||
@ -2711,7 +2711,7 @@ control.prototype.clearStatusBar = function() {
|
|||||||
|
|
||||||
////// 更新状态栏 //////
|
////// 更新状态栏 //////
|
||||||
control.prototype.updateStatusBar = function (doNotCheckAutoEvents) {
|
control.prototype.updateStatusBar = function (doNotCheckAutoEvents) {
|
||||||
if (!core.isPlaying()) return;
|
if (!core.isPlaying() || core.hasFlag('__statistics__')) return;
|
||||||
this.controldata.updateStatusBar();
|
this.controldata.updateStatusBar();
|
||||||
if (!doNotCheckAutoEvents) core.checkAutoEvents();
|
if (!doNotCheckAutoEvents) core.checkAutoEvents();
|
||||||
this._updateStatusBar_setToolboxIcon();
|
this._updateStatusBar_setToolboxIcon();
|
||||||
|
|||||||
6
main.js
6
main.js
@ -2,7 +2,7 @@ function main() {
|
|||||||
|
|
||||||
//------------------------ 用户修改内容 ------------------------//
|
//------------------------ 用户修改内容 ------------------------//
|
||||||
|
|
||||||
this.version = "2.7.3"; // 游戏版本号;如果更改了游戏内容建议修改此version以免造成缓存问题。
|
this.version = "2.7.3.1"; // 游戏版本号;如果更改了游戏内容建议修改此version以免造成缓存问题。
|
||||||
|
|
||||||
this.useCompress = false; // 是否使用压缩文件
|
this.useCompress = false; // 是否使用压缩文件
|
||||||
// 当你即将发布你的塔时,请使用“JS代码压缩工具”将所有js代码进行压缩,然后将这里的useCompress改为true。
|
// 当你即将发布你的塔时,请使用“JS代码压缩工具”将所有js代码进行压缩,然后将这里的useCompress改为true。
|
||||||
@ -186,8 +186,8 @@ function main() {
|
|||||||
this.floors = {}
|
this.floors = {}
|
||||||
this.canvas = {};
|
this.canvas = {};
|
||||||
|
|
||||||
this.__VERSION__ = "2.7.3";
|
this.__VERSION__ = "2.7.3.1";
|
||||||
this.__VERSION_CODE__ = 261;
|
this.__VERSION_CODE__ = 273;
|
||||||
}
|
}
|
||||||
|
|
||||||
main.prototype.init = function (mode, callback) {
|
main.prototype.init = function (mode, callback) {
|
||||||
|
|||||||
@ -105,7 +105,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"firstData": {
|
"firstData": {
|
||||||
"title": "魔塔样板",
|
"title": "魔塔样板",
|
||||||
"name": "template",
|
"name": "template",
|
||||||
"version": "Ver 2.7.3",
|
"version": "Ver 2.7.3.1",
|
||||||
"floorId": "sample0",
|
"floorId": "sample0",
|
||||||
"hero": {
|
"hero": {
|
||||||
"image": "hero.png",
|
"image": "hero.png",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user