GC DevKit 快速入門

來源:互聯網
上載者:User
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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.