This commit is contained in:
oc 2017-12-15 21:25:43 +08:00
commit ce17747968
4 changed files with 28 additions and 3 deletions

22
README.md Normal file
View File

@ -0,0 +1,22 @@
# H5 魔塔样板
## 简介
HTML5 canvas制作的魔塔样板支持全平台即使不会编程的用户按照模板和说明文档也能很快做出一个魔塔游戏对于有编程基础的用户那就更好了根据文档能做出更个性化的魔塔。
## 文档
* [Demo](http://ckcz123.com/games/template/)
* [Docs](http://ckcz123.github.io/mota-js)
## 更新说明
- [x] 新增战斗过程显示可在全局Flag中开关也可针对某一怪物单独设置
- [x] 新增勇士支持48*32大图的行走图
- [x] 新增:更改画面色调
- [x] 新增:文字显示支持自动换行
- [x] 部分修改状态栏UI
- [ ] 移除doc和pdf文档现在请参考Web端有很好的索引。
- [x] 移除不再支持的全局变量中的bombTrigger选项
- [x] 修复键盘开门导致openDoor重复触发的Bug
- [x] 更新快捷商店(文字显示&禁用)

View File

@ -13,9 +13,12 @@
<div id="app"></div> <div id="app"></div>
<script> <script>
window.$docsify = { window.$docsify = {
homepage: 'index.md',
loadSidebar: true, loadSidebar: true,
name: 'H5魔塔样板', name: 'H5魔塔样板',
repo: 'https://github.com/ckcz123/mota-js', repo: 'https://github.com/ckcz123/mota-js',
// basepath: '../docs/',
// Search Support // Search Support
// search: { // search: {
// maxAge: 43200000, // 过期时间,单位毫秒,默认一天 // maxAge: 43200000, // 过期时间,单位毫秒,默认一天

View File

@ -9,4 +9,4 @@
> 这个魔塔样板可以让你在完全不懂任何编程的情况下做出自己的H5魔塔。不会代码没关系只要你想做就能做出来 > 这个魔塔样板可以让你在完全不懂任何编程的情况下做出自己的H5魔塔。不会代码没关系只要你想做就能做出来
下面,我将详细地介绍,如何使用这一个样板来制作属于自己的HTML5魔塔。 继续查看文档的详细介绍,让你学会如何使用这一个样板来制作属于自己的HTML5魔塔。

View File

@ -2961,7 +2961,7 @@ core.prototype.resize = function(clientWidth, clientHeight) {
rules:{ rules:{
width: (canvasWidth - SPACE*2) + unit, width: (canvasWidth - SPACE*2) + unit,
height:(canvasWidth - SPACE*2) + unit, height:(canvasWidth - SPACE*2) + unit,
top: SPACE + unit, top: (canvasTop + SPACE) + unit,
right: SPACE + unit, right: SPACE + unit,
} }
}, },