![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
小米的蝉
Keep It Simple and Stupid
展开
-
phaser 按键表 keyboard keycode
https://photonstorm.github.io/phaser-ce/Phaser.KeyCode.html帮助文档里都有,但就是没人说原创 2019-04-13 21:39:27 · 428 阅读 · 0 评论 -
PhaserCE 使用 create.texture 出错 Phaser.Cache.addImage: Image "xx" is not complete 并且图形没有显示
首先参看官网文档的写法 https://photonstorm.github.io/phaser-ce/Phaser.Create.html#texturevar game = new Phaser.Game(800, 600, Phaser.CANVAS, 'game', { preload: preload, create: create,});function prel...原创 2019-07-15 12:45:38 · 280 阅读 · 0 评论 -
js 生成当前日期时间
精简版 var date = new Date(); datetime = date.toLocaleDateString().split('/').slice(2,3).concat( date.toLocaleDateString().split('/').splice(0,2)).join('-') + " " + ( date.toL...原创 2019-07-15 19:08:28 · 2935 阅读 · 0 评论 -
Phaser 引擎 中TiledMap 的 json地图配置文件的格式
官方推荐Tiled 地图编辑器,https://www.mapeditor.org/所以查看地图格式直接看Tiled 的官方帮助文档http://doc.mapeditor.org/en/stable/reference/json-map-format/原创 2019-07-11 15:21:38 · 1959 阅读 · 0 评论