GC DevKit 快速入门

GC DevKit 是一款基于HTML5的开源2D游戏引擎,由Game Closure贡献,直接入正题 *本人系统为ubuntu* ## 准备工作 安装最新的 `nodejs` $ sudo add-apt-repository ppa:chris-lea/node.js $ sudo apt-get update $ sudo apt-get install nodejs ## 安装 只要获得devkit就行,这里均已ubuntu为例 $ git clone https://github.com/gameclosure/devkit 这样会把devkit的最新版本下载到当前目录 $ cd devkit $ sudo ./install.sh 注意,如果还是提示非root用户的权限一场,则更改这个脚本 $ nano install.sh 将 if [[ $EUID -eq 0 ]]; then echo "This script should not be run as root" 1>&2 exit 1 fi 改为 if [![ $EUID -eq 0 ]]; then echo "This script should not be run as root" 1>&2 exit 1 fi 再次运行 `sudo ./install.sh` `install.sh`脚本会装一个`basil`命令行程序,用来创建和维护devkit项目 $ basil 直接运行会列出它所支持的命令 GC DevKit 快速入门 -- Hello World! -> http://www.cnblogs.com/hangxin1940/archive/2013/04/09/3011424.html

posted on 2013-04-09 01:16  黑暗伯爵  阅读(423)  评论(0编辑  收藏  举报

导航