Giter Site home page Giter Site logo

gopalindians / melonjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from melonjs/melonjs

0.0 1.0 0.0 57.69 MB

a fresh & lightweight javascript game engine

Home Page: www.melonjs.org

License: MIT License

JavaScript 36.46% HTML 1.08% CSS 62.46% Shell 0.01%

melonjs's Introduction

melonJS

Build Status

A fresh & lightweight HTML5 game engine

melonJS

Copyright (C) 2011 - 2015, Olivier Biot, Jason Oster, Aaron McLeod

melonJS is licensed under the MIT License

About melonJS

melonJS is the result of our enthusiasm & experiments with Javascript, and currently features :

  • A fresh & lightweight 2D sprite-based engine
  • Standalone library (does not rely on anything else, except a HTML5 capable browser)
  • Compatible with most major browser (Chrome, Safari, Firefox, Opera, IE) and mobile devices
  • Device motion & accelerometer support
  • High DPI & auto scaling
  • Multi-channel HTML5 audio support and Web Audio on supported devices
  • Lightweight physics implementation to ensure low cpu requirements
  • Polygon (SAT) based collision algorithm for accurate detection and response
  • Fast Broad-phase collision detection using spatial partitioning
  • Advanced math API for Vector and Matrix
  • Tween Effects
  • Transition effects
  • A basic set of Object Entities (to be extended)
  • Object Pooling
  • Basic Particle System
  • Basic animation management
  • Standard spritesheet and Packed Textures (Texture Packer, ShoeBox) support
  • A state manager (to easily manage loading, menu, options, in-game state)
  • Tiled map format version +0.9.x integration for easy level design
    • Uncompressed Plain, Base64, CSV and JSON encoded XML tilemap loading
    • Orthogonal, Isometric and Perspective tilemap support
    • Multiple layers (multiple background/Foreground, collision and Image layers)
    • Multiple Tileset support
    • Tileset Transparency settings
    • Layers Alpha settings
    • Rectangle, Ellipse, Polygon and Polyline objects support
    • Tiled Objects
    • Flipped & rotated Tiles
    • Dynamic Layer and Object/Group ordering
    • Dynamic Entity loading
    • Shape based Tile collision support
  • System & bitmap fonts
  • Mouse and Touch device support (with mouse emulation)
  • Built-in support for CocoonJS
  • Asynchronous messaging support (minPubSub)
  • Basic GUI elements included
  • Customizable loader

Using melonJS

For your first time using melonJS, follow these tutorials :

When starting your own projects, checkout the boilerplate

Note that due to the cross-origin request policy implemented in most browsers (that prevents from accessing local files), you will need to either disable this security check (see the tutorial), or better use a "personal" local web server like the grunt connect task that is used for building melonJS (see below for building melonJS).

Building melonJS

To build your own version of melonJS you will need to install :

  • The Node.js JavaScript runtime and npm package manager
  • The Grunt task manager

Once the Node.js package manager has been installed (using the installer from their website), you need to install build dependencies and Grunt CLI (Command Line Interface), by doing the following :

Open a Terminal or a Commmand Prompt and type the following :

$ npm install -g grunt-cli

Next you need to install the melonJS dependencies, by typing :

$ cd melonJS
$ npm install

Once this is done, you can build melonJS :

$ cd melonJS # if not already in the melonJS directory
$ grunt

Both plain and minified versions of the library will be available under the "build" directory.

Building the documentation

Here is how you can build your own copy of the docs locally :

$ cd melonJS # if not already in the melonJS directory
$ grunt doc

The generated documentation will be available in the docs directory

Testing

The recommended way to test is to use the serve task:

$ grunt serve

Then navigate to http://localhost:8000/ in your browser. Stop the server when you are done by pressing Ctrl+C in the terminal.

To run melonJS tests in node simply run the following:

$ grunt test

This will run the jasmine spec tests with the output displayed on the shell. This however, is not recommended because the tests are run by PhantomJS in this mode, and there are a lot of known bugs and unsupported features in the version of WebKit shipped with PhantomJS.

WIP Builds

melonJS uses Travis-CI for automated testing and build uploads. The latest build artifacts can be downloaded from the melonjs-builds bucket.

Questions, need help ?

If you need technical support, you can contact us through the following channels :

For any other non technical related questions, feel free to also send us an email.

melonjs's People

Contributors

obiot avatar parasyte avatar agmcleod avatar insidiator avatar ellisonleao avatar pixelscripter avatar aaschmitz avatar xorinzor avatar kaldjo avatar dblk avatar gravypod avatar themanuz avatar smuron avatar nvlbg avatar juhanapaavola avatar zoiba avatar matthewmmorrow avatar ldd avatar jdrorrer avatar kkirsche avatar jdutriaux avatar johnrayner avatar vegar avatar warpten avatar thesisb avatar shaneriley avatar duckycrayfish avatar lsix avatar juderosario avatar jvalduvieco avatar

Watchers

Gopal Sharma 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.