GithubHelp home page GithubHelp logo

wegiangb / enchant.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wise9/enchant.js

0.0 2.0 0.0 21.41 MB

A simple JavaScript framework for creating games and apps

Home Page: http://enchantjs.com

License: MIT License

CoffeeScript 0.37% JavaScript 98.63% ActionScript 0.14% HTML 0.49% CSS 0.38%

enchant.js's Introduction

enchant.js

Build Status Built with Grunt

Download

This is a repository for development. Refer to uei/enchant.js-builds for download pre-built files.

Download Zip file

Documentation

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: enchantjs.com

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 npm package, type:

npm install -g grunt-cli
npm install

You additionally need phantomjs to run qunit test in grunt.js.

Build Tasks

  • grunt do default tasks (jshint concat uglify qunit exec:lang)
  • grunt watch watch dev/src/*.js and exec grunt concat uglify lang when something is modified
  • grunt jshint check sourcecode in dev/classes/*.js with jshint
  • grunt concat generate dev/enchant.js from dev/classes/*.js
  • grunt uglify generate enchant.min.js from dev/enchant.js
  • grunt exec:lang generate enchant.js (English comment only) from dev/enchant.js
  • grunt qunit do qunit tests with phantomjs (headless browser)
  • grunt mocha do 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 pull request to wise9/enchant.js:develop.

enchant.js's People

Contributors

rtsan avatar sidestepism avatar rfushimi avatar uei-moon avatar alpicola avatar kengotoda avatar tygerpatch avatar shellkana avatar kentris1123 avatar chick307 avatar daishihmr avatar kumabook avatar crowbeak avatar illfang avatar cs8898 avatar yonekawa avatar jhampton avatar fukusyo avatar asaayers avatar gobnilin avatar bytehala avatar maciejkus avatar authornari avatar nnabeyang avatar freeguest avatar phi-jp avatar tomykaira avatar

Watchers

James Cloos avatar Gordon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.