Update Video
This commit is contained in:
parent
129b289509
commit
cb69004a5e
@ -6,7 +6,8 @@ HTML5 canvas制作的魔塔样板,支持全平台游戏!
|
||||
**即使完全不会编程的用户,按照模板和说明文档也能很快做出一个魔塔游戏!**
|
||||
|
||||
* [Demo / 样板效果](https://ckcz123.com/games/template/)
|
||||
* [Docs / 使用文档说明](https://ckcz123.github.io/mota-js)
|
||||
* [Docs / 使用文档说明](https://ckcz123.github.io/mota-js/)
|
||||
* [Video / 视频教程](http://www.bilibili.com/video/av17608025/)
|
||||
|
||||

|
||||
|
||||
|
||||
@ -251,7 +251,7 @@ value是一个表达式,将通过这个表达式计算出的结果赋值给nam
|
||||
{"type": "setValue", "name": "status:money", "value": "1000" } // 将金币数设为1000(不是+1000)
|
||||
{"type": "setValue", "name": "status:hp", "value": "status:hp*2" } // 生命值翻倍
|
||||
{"type": "setValue", "name": "item:yellowKey", "value": "item:yellowKey+3" } // 黄钥匙个数加3
|
||||
{"type": "setValue", "name": "item:boom", "value": "item:boom+10" } // 炸弹个数+10
|
||||
{"type": "setValue", "name": "item:bomb", "value": "item:bomb+10" } // 炸弹个数+10
|
||||
{"type": "setValue", "name": "flag:man_times", "value": "0" } // 将变量man_times设为0
|
||||
{"type": "setValue", "name": "flag:man_times", "value": "flag:man_times+2*status:atk" } // 将变量man_times的值加上勇士的攻击数值的两倍
|
||||
]
|
||||
|
||||
@ -11,6 +11,8 @@
|
||||
|
||||
继续查看文档的详细介绍,让你学会如何使用这一个样板来制作属于自己的HTML5魔塔。
|
||||
|
||||
视频教程地址:http://www.bilibili.com/video/av17608025/,配合本教程观看效果更佳~
|
||||
|
||||
==========================================================================================
|
||||
|
||||
[继续阅读下一章:现在就做出自己的第一部H5魔塔!](start)
|
||||
|
||||
@ -80,7 +80,7 @@ if (id == 65) tmp.event = {'cls': 'items', 'id': 'hammer'} // 圣锤
|
||||
1. 指定一个唯一的英文ID,不能和enemys中现有的重复。
|
||||
2. 进入icons.js,在enemys分类下进行添加(对应图标在图片上的位置,即index)
|
||||
3. 在maps.js的getBlock下继续进行添加。请注意其ID为200开始的顺序,即如果新增一行为261,依次类推
|
||||
4. 在items.js中仿照其他道具,来添加道具的信息。
|
||||
4. 在enemys.js中仿照其他怪物,来添加怪物的信息。
|
||||
|
||||
``` js
|
||||
if (id == 258) tmp.event = {'cls': 'enemys', 'id': 'octopus'};
|
||||
|
||||
BIN
常用工具/便捷PS工具.exe
BIN
常用工具/便捷PS工具.exe
Binary file not shown.
Loading…
Reference in New Issue
Block a user