Update Map Generator
This commit is contained in:
parent
778f417500
commit
6a4be76625
@ -2,4 +2,4 @@
|
||||
Prop3=19,2
|
||||
[InternetShortcut]
|
||||
IDList=
|
||||
URL=http://ckcz123.github.io/mota-js/
|
||||
URL=https://ckcz123.github.io/mota-js/
|
||||
|
||||
@ -43,16 +43,18 @@ HTML5 canvas制作的魔塔样板,支持全平台游戏!
|
||||
|
||||
## 更新说明
|
||||
|
||||
### 2017.12.20
|
||||
### 2017.12.21
|
||||
|
||||
* [x] 新增:本地HTTP服务器。
|
||||
* [x] 新增:可视化地图编辑工具。
|
||||
* [x] 新增:便捷PS工具。
|
||||
* [x] 移除了meaning.txt,现在“地图生成器”将直接从js文件中读取数字和图块对应关系。
|
||||
* [x] 新增:对Autotile图块的支持。
|
||||
* [x] 新增:怪物支持多种属性;添加仇恨属性。
|
||||
* [x] 移除了不再支持的checkBlock,现在对于领域和夹击无需再手动指定可能的点了。
|
||||
* [x] 新增:单向箭头、感叹号(单次通行)的支持。
|
||||
* [x] 新增:更多的默认素材,现在对于大多数地图风格无需P图,直接替换即可。
|
||||
* [x] 部分细节优化,一些已知的Bug进行了修复。
|
||||
* [x] 添加部分自定义事件,部分细节优化,一些已知的Bug进行了修复。
|
||||
|
||||
### 2017.12.16
|
||||
|
||||
@ -66,7 +68,7 @@ HTML5 canvas制作的魔塔样板,支持全平台游戏!
|
||||
|
||||
### 2017.12.9
|
||||
|
||||
* 发布初版HTML5魔塔样板
|
||||
* [x] 发布初版HTML5魔塔样板
|
||||
|
||||
## 联系我们
|
||||
|
||||
|
||||
@ -97,13 +97,9 @@ if (id == 260) tmp.event = {'cls': 'enemys', 'id': 'greenKnight'};
|
||||
|
||||
### 地图生成器使用自定义素材
|
||||
|
||||
地图生成器可以将数字和图标一一对应,从数字生成图标或从图标生成数字。
|
||||
地图生成器是直接从js文件中读取数字-图标对应关系的。
|
||||
|
||||
在使用自定义素材后,我们可以使用地图生成器来识别新的素材。打开同目录下的`meaning.txt`,按照已有的方式来增加或编辑内容即可。
|
||||
|
||||
第一列是地图生成器中的数字,第二列是它所在的文件名,第三列是坐标。
|
||||
|
||||

|
||||
因此,在你修改了icons.js和maps.js两个文件,也就是将素材添加到游戏后,地图生成器的对应关系也将同步更新。
|
||||
|
||||
## 自定义道具效果
|
||||
|
||||
|
||||
@ -1,116 +0,0 @@
|
||||
# 此文件是每个数字所代表的意思,可被地图生成器读取和使用
|
||||
# 可以模仿此格式在后面写上任意被识别内容
|
||||
|
||||
|
||||
# 文件格式:
|
||||
# 编号,图标所在的图片名,图标在图片上的索引(从上到下第几个,从0开始计算)
|
||||
# 注意中间以小逗号分开;不要有空格;后面可以加任意"#"代表注释
|
||||
|
||||
### 0-20 地形 ###
|
||||
0,terrains,0 # 路面;此项必须在第一条。
|
||||
1,terrains,1 # 黄色墙(经典墙)
|
||||
2,terrains,2 # 白色墙
|
||||
3,terrains,3 # 蓝色墙
|
||||
4,terrains,4 # 星空
|
||||
5,terrains,5 # 岩浆
|
||||
6,terrains,6 # 冰面
|
||||
7,terrains,15 # 蓝色商店左
|
||||
8,terrains,16 # 蓝色商店右
|
||||
9,terrains,17 # 红色商店左
|
||||
10,terrains,18 # 红色商店右
|
||||
11,animates,23 # 血网(经过受到伤害)
|
||||
12,animates,24 # 毒网(经过中毒)
|
||||
13,animates,25 # 衰网(经过衰弱)
|
||||
14,animates,26 # 咒网(经过诅咒)
|
||||
15,animates,31 # 水
|
||||
# 可自行往后添加
|
||||
20,autotile,0 # Autotile
|
||||
|
||||
### 21-80 物品 ###
|
||||
# 消耗品
|
||||
21,items,0 # 黄钥匙
|
||||
22,items,1 # 蓝钥匙
|
||||
23,items,2 # 红钥匙
|
||||
24,items,3 # 绿钥匙
|
||||
25,items,4 # 铁门钥匙
|
||||
26,items,6 # 大黄门钥匙(钥匙盒)
|
||||
27,items,16 # 红宝石
|
||||
28,items,17 # 蓝宝石
|
||||
29,items,18 # 绿宝石
|
||||
30,items,19 # 黄宝石
|
||||
31,items,20 # 红血瓶
|
||||
32,items,21 # 蓝血瓶
|
||||
33,items,22 # 绿血瓶
|
||||
34,items,23 # 黄血瓶
|
||||
35,items,50 # 铁剑
|
||||
36,items,55 # 铁盾
|
||||
37,items,51 # 银剑
|
||||
38,items,56 # 银盾
|
||||
39,items,52 # 骑士剑
|
||||
40,items,57 # 骑士盾
|
||||
41,items,53 # 圣剑
|
||||
42,items,58 # 圣盾
|
||||
43,items,54 # 神圣剑
|
||||
44,items,59 # 神圣盾
|
||||
# 特殊道具
|
||||
45,items,9 # 怪物手册
|
||||
46,items,12 # 楼层传送器
|
||||
47,items,45 # 破墙镐
|
||||
48,items,44 # 破冰镐
|
||||
49,items,43 # 炸弹
|
||||
50,items,13 # 中心对称飞行器
|
||||
51,items,15 # 上楼器
|
||||
52,items,14 # 下楼器
|
||||
53,items,11 # 幸运金币
|
||||
54,items,41 # 冰冻徽章
|
||||
55,items,40 # 十字架
|
||||
56,items,29 # 圣水
|
||||
57,items,8 # 地震卷轴
|
||||
58,items,24 # 解毒药水
|
||||
59,items,25 # 解衰药水
|
||||
60,items,27 # 解咒药水
|
||||
61,items,28 # 万能药水
|
||||
62,items,42 # 屠龙匕首
|
||||
63,items,46 # 金钱袋
|
||||
64,items,47 # 绿鞋
|
||||
65,items,48 # 圣锤
|
||||
# 可自行往后添加
|
||||
|
||||
### 81-120 门、楼梯、传送门 ###
|
||||
81,terrains,9 # 黄门
|
||||
82,terrains,10 # 蓝门
|
||||
83,terrains,11 # 红门
|
||||
84,terrains,12 # 绿门
|
||||
85,terrains,13 # 机关门
|
||||
86,terrains,14 # 铁门
|
||||
87,terrains,8 # 上楼梯
|
||||
88,terrains,7 # 下楼梯
|
||||
89,animates,21 # 传送门
|
||||
90,animates,19 # 星空传送
|
||||
91,animates,30 # 上箭头传送
|
||||
92,animates,28 # 左箭头传送
|
||||
93,animates,27 # 下箭头传送
|
||||
94,animates,29 # 右箭头传送
|
||||
|
||||
### 121-150 NPC ###
|
||||
121,npcs,0 # 经典老人
|
||||
122,npcs,1 # 经典商人
|
||||
123,npcs,2 # 小偷
|
||||
124,npcs,3 # 仙子
|
||||
125,npcs,4 # 神秘男老人
|
||||
126,npcs,5 # 神秘女老人
|
||||
127,npcs,6 # 老头
|
||||
128,npcs,7 # 小孩
|
||||
129,npcs,8 # 木牌
|
||||
130,npcs,9 # 经验商店
|
||||
131,npcs,10 # 金币商店
|
||||
132,npcs,11 # 公主
|
||||
# 可以添加更多的NPC图标
|
||||
|
||||
|
||||
# 在此可以继续添加更多的事件,比如单向箭头、感叹号开关、箱子等等
|
||||
|
||||
|
||||
### 201-300 怪物 ###
|
||||
# 将会按照enemys.png顺序依次读取怪物
|
||||
# 如201绿色史莱姆,202红色史莱姆,依次类推
|
||||
@ -63,7 +63,7 @@ enemys.prototype.init = function () {
|
||||
'poisonZombie': {'name': '绿兽人', 'hp': 100, 'atk': 120, 'def': 0, 'money': 13, 'experience': 0, 'special': 12},
|
||||
'magicDragon': {'name': '魔龙', 'hp': 0, 'atk': 0, 'def': 0, 'money': 0, 'experience': 0, 'special': 0},
|
||||
'octopus': {'name': '血影', 'hp': 0, 'atk': 0, 'def': 0, 'money': 0, 'experience': 0, 'special': 0},
|
||||
'fairy': {'name': '仙子', 'hp': 0, 'atk': 0, 'def': 0, 'money': 0, 'experience': 0, 'special': 0},
|
||||
'darkFairy': {'name': '仙子', 'hp': 0, 'atk': 0, 'def': 0, 'money': 0, 'experience': 0, 'special': 0},
|
||||
'greenKnight': {'name': '强盾骑士', 'hp': 0, 'atk': 0, 'def': 0, 'money': 0, 'experience': 0, 'special': 0},
|
||||
}
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ icons.prototype.init = function () {
|
||||
'poisonZombie': 55,
|
||||
'magicDragon': 56,
|
||||
'octopus': 57,
|
||||
'fairy': 58,
|
||||
'darkFairy': 58,
|
||||
'greenKnight': 59,
|
||||
},
|
||||
'items': {
|
||||
|
||||
@ -226,7 +226,7 @@ maps.prototype.getBlock = function (x, y, id) {
|
||||
if (id == 256) tmp.event = {'cls': 'enemys', 'id': 'poisonZombie'};
|
||||
if (id == 257) tmp.event = {'cls': 'enemys', 'id': 'magicDragon'};
|
||||
if (id == 258) tmp.event = {'cls': 'enemys', 'id': 'octopus'};
|
||||
if (id == 259) tmp.event = {'cls': 'enemys', 'id': 'fairy'};
|
||||
if (id == 259) tmp.event = {'cls': 'enemys', 'id': 'darkFairy'};
|
||||
if (id == 260) tmp.event = {'cls': 'enemys', 'id': 'greenKnight'};
|
||||
|
||||
return tmp;
|
||||
|
||||
BIN
常用工具/Jint.dll
Normal file
BIN
常用工具/Jint.dll
Normal file
Binary file not shown.
BIN
常用工具/地图生成器.exe
BIN
常用工具/地图生成器.exe
Binary file not shown.
Loading…
Reference in New Issue
Block a user