wise9/enchant.js
소개
게임과 앱을 만들기 위한 간단한 JavaScript 프레임워크
게임 및 에뮬레이션측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- -1
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
Download
This is a repository for development. Refer to uei/enchant.js-builds to download pre-built files.
Documentation
- English
- Deutsch (German)
- Japanese
Design
- Compact
- Standalone
- Graphics Object Tree
- Event Driven
Platform
- Chrome
- Safari
- Firefox
- IE9
- iOS
- Android 2.1+
License
MIT License
Usage
<script src='./enchant.js'></script>
<script>
enchant();
window.onload = function(){
var game = new Game(320, 320);
var label = new Label('Hello, enchant.js!');
game.rootScene.addChild(label);
game.start();
}
</script>
More examples and references: GitHub Repository
How to build
Source code is divided into class files (dev/src/*.js). These files include multi-language comments. You can build enchant.js with 'grunt' command from these files. If you want to send a pull request or join development enchant.js, please edit files under dev/src, use this build tool and commit the built work tree.
To setup grunt.js (build tool for node.js) as an npm package, type:
npm install -g grunt-cli
npm install
You additionally need phantomjs to run qunit test in grunt.js.
Build Tasks
gruntdo default tasks (jshint concat uglify qunit exec:lang)grunt watchwatch dev/src/*.js and execgrunt concat uglify langwhen something is modifiedgrunt jshintcheck sourcecode in dev/classes/*.js with jshintgrunt concatgenerate dev/enchant.js from dev/classes/*.jsgrunt uglifygenerate enchant.min.js from dev/enchant.jsgrunt exec:langgenerate enchant.js (English comment only) from dev/enchant.jsgrunt qunitdo qunit tests with phantomjs (headless browser)grunt mochado mocha tests with phantomjs (headless browser)
If you wish to send your codes to github repos, don't forget to run grunt command before you commit your change!
How to contribute
If you found issues or improved codes, please write issues or send a pull request to wise9/enchant.js:develop.
관련 프로젝트 살펴보기
불러오는 중…

