开源HTML5游戏引擎Kiwi.js_安装使用

来源:互联网 发布:e卡销外包源码 编辑:程序博客网 时间:2024/06/13 08:14


下载Kiwi.jsGitHub,想要了解更多关于Kiwi.js的信息,可查看Kiwi.js官方文档,此外,您还可以进入Kiwi.js的mobilehub主页进行资源分享和讨论。

今天是我第一天接触他,因为我的机子上已经有node.js,后面补上node.js的安装教程。因为我用的是苹果系统,window的晚点更新。
安装我选择了 bower 官网是 https://github.com/bower/bower


  cd 你要安装的目录

sudo npm install -g yo grunt-cli bower grunt 



接下来安装创建环境:  
地址是https://github.com/gamelab/generator-kiwigame

 sudo npm install -g generator-kiwiplugin

执行yo kiwiplugin命令 一直回车下去


目录下      /examples 这个需要php环境。
 /docs  api查询目录
   /templateGame  呵呵,我打开了,空白一片。。。。。


   安装后
$ grunt

6 Optionally you can the following to start a server on localhost:9000 which serves your game

$ grunt serve
 在浏览器就看到简单的demo了,呵呵。
http://localhost:9000/bower_components/kiwi.js/templateGame/





0 0