Giter Club home page Giter Club logo

ash-js's Introduction

ash-js

A JavaScript port of Ash Framework, an Actionscript 3 entity framework for game development

Ash Framework

Ash Framework

Ash Framework is a high-performance entity system framework for game development, developed by Richard Lord in ActionScript 3.

For more in-depth introduction and examples, please check out its official page at http://www.ashframework.org.

Features

Usage

On folder build, you can found the built & ready-to-use library file.

There are two versions you can choose from:

  • ash.js, the un-minified version, good for development & debugging
  • ash.min.js, the minified version, good for release

You can use the library file as inline script (by using script tag on your HTML file) or using AMD (e.g RequireJS).

Building your own

This library uses Grunt for building.

Dependencies

  • Node.js
  • Grunt's CLI installed using npm install -g grunt-cli
  • Go to ash-js folder & do npm install. This will automatically download & install the required modules for building the library
  • Additionally, you might want to have PhantomJS installed on your system to enjoy automatic unit testings. However, you don't have to install PhantomJS and can still do unit testing directly from your browser (see instruction below).

Command lines

  • grunt will run jshint, build your library files (both minified & non-minified version), and do automatic unit testings using PhantomJS
  • grunt requirejs:compile if you just want to build ash.js (non-minifed version) and skip the unit testing
  • grunt requirejs:minifed if you just want to build ash.min.js (minified version) and skip the unit testing

Unit Testings without PhantomJS

You can still do unit testing without having PhantomJS installed on your system.

  • Do grunt connect to start a local webserver.
  • From your browser, go to http://localhost:9001/test/ and manually click each html files there.

List of unit test files:

  • runner.html : test each Ash Framework module separately
  • test_build.html : test the build version build/ash.js as inline script ( WIP )
  • test_build_min.html : test the minified & build version build/ash.min.js as inline script ( WIP )
  • test_build_require.html : test the build version build/ash.js with requirejs ( WIP )
  • test_build_min_require.html : test the minified & build version build/ash.js with requirejs ( WIP )

Example on how to use ash-js

License

MIT License

ash-js's People

Contributors

abiyasa avatar brettjephson avatar

Watchers

 avatar  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.