上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 43 下一页
摘要: ``` attackOnTarget: function (atkDir, targetPos) { var self = this; let deg = cc.radiansToDegrees(cc.pAngleSigned(cc.p(0, 1), atkDir)); let angleDivid 阅读全文
posted @ 2016-06-02 11:41 yufenghou 阅读(255) 评论(0) 推荐(0)
摘要: ``` //如果不是恩雅,也不在移动过程中,那么移动 if (!self.hasMoved && !isHold) { var touchLoc = touch.getLocation(); self.atkPos = self.node.parent.c... 阅读全文
posted @ 2016-06-02 11:40 yufenghou 阅读(143) 评论(0) 推荐(0)
摘要: ``` cc.Class({ extends: cc.Component, properties: { moveSpeed: 100, rotationSpeed: 90 }, // use this for initialization onLoad: function () { }, // call... 阅读全文
posted @ 2016-05-29 12:38 yufenghou 阅读(150) 评论(0) 推荐(0)
摘要: ``` cc.Class({ extends: cc.Component, properties: { }, // use this for initialization onLoad: function () { var manager=cc.director.getCollisionManager(); manage... 阅读全文
posted @ 2016-05-29 12:29 yufenghou 阅读(197) 评论(0) 推荐(0)
摘要: 可以通过上面的命令会退到最初的版本查看源代码, 然后通过这个命令回到未来一个新版本,学习新特性 阅读全文
posted @ 2016-05-18 19:06 yufenghou 阅读(137) 评论(0) 推荐(0)
摘要: ``` git log --oneline --graph --decorate ``` 阅读全文
posted @ 2016-05-18 13:10 yufenghou 阅读(127) 评论(0) 推荐(0)
摘要: ``` {% block title %}默认标题{% endblock %} - 自强学堂 {% include 'nav.html' %} {% block content %} 这里是默认内容,所有继承自这个模板的,如果不覆盖就显示这里的默认内容。 {% endblock %} {% include 'bottom.html' %} {% include 'tong... 阅读全文
posted @ 2016-05-08 18:05 yufenghou 阅读(1187) 评论(0) 推荐(0)
摘要: 创建一个1.html的东西 创建并写一个form.py 修改views 修改urls.py 阅读全文
posted @ 2016-05-08 15:59 yufenghou 阅读(417) 评论(0) 推荐(0)
摘要: 修改 admin.py 修改models 阅读全文
posted @ 2016-05-08 15:24 yufenghou 阅读(120) 评论(0) 推荐(0)
摘要: 打开django shell 输入命令 插入一条命令 然后再查询 过滤 排序 也可以修改models,这样每次都可以按照num排序 更新 删除 限制只取前几条数据 阅读全文
posted @ 2016-05-08 15:07 yufenghou 阅读(163) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 43 下一页