melonjs 10.0.2 → 10.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,8 +3,8 @@ melonJS 2
3
3
  [![Build Status](https://travis-ci.org/melonjs/melonJS.svg)](https://travis-ci.org/melonjs/melonJS)
4
4
  [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/melonjs/melonJS.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/melonjs/melonJS/context:javascript)
5
5
  [![Build Size](https://badgen.net/bundlephobia/min/melonjs)](https://bundlephobia.com/result?p=melonjs)
6
- [![Dependencies](https://img.shields.io/david/melonjs/melonJS.svg)](https://david-dm.org/melonjs/melonJS)
7
6
  [![NPM Package](https://img.shields.io/npm/v/melonjs)](https://www.npmjs.com/package/melonjs)
7
+ [![jsDeliver](https://data.jsdelivr.com/v1/package/npm/melonjs/badge?style=rounded)](https://www.jsdelivr.com/package/npm/melonjs)
8
8
  [![Boss Bounty Badge](https://img.shields.io/endpoint.svg?url=https://api.boss.dev/badge/enabled/melonjs/melonJS)](https://www.boss.dev/issues/repo/melonjs/melonJS)
9
9
 
10
10
 
@@ -31,7 +31,7 @@ Graphics
31
31
  - 2D sprite-based graphic engine
32
32
  - Fast WebGL 1 & 2 renderer for desktop and mobile devices with fallback to Canvas rendering
33
33
  - High DPI resolution & Canvas advanced auto scaling
34
- - Sprite with Animation management
34
+ - Sprite with 9-slice scaling option, and animation management
35
35
  - built-in effects such as tinting and masking
36
36
  - Standard spritesheet, single and multiple Packed Textures support
37
37
  - System & Bitmap Text
@@ -93,7 +93,7 @@ Using melonJS
93
93
  Basic Example
94
94
 
95
95
  ```JavaScript
96
- import * as me from "melonjs.module.js";
96
+ import * as me from "https://esm.run/melonjs";
97
97
 
98
98
  me.device.onReady(function () {
99
99
  // initialize the display canvas once the device/browser is ready
@@ -127,8 +127,6 @@ For your first time using melonJS, follow these tutorials :
127
127
  - [Platformer](http://melonjs.github.io/tutorial-platformer/) Step by Step Tutorial.
128
128
  - [Space Invaders](http://melonjs.github.io/tutorial-space-invaders/) Step by Step Tutorial.
129
129
 
130
- > Note: current version of both the tutorials are not compatible with the ES6 version.
131
-
132
130
  You may find it useful to skim the overview found at the wiki [Details & Usage](https://github.com/melonjs/melonJS/wiki#details--usage)
133
131
 
134
132
  When starting your own projects, checkout our [es6 boilerplate](https://github.com/melonjs/es6-boilerplate)
@@ -169,18 +167,14 @@ If you need to import the ES6 module of melonjs (e.g. for Webpack):
169
167
 
170
168
  $ import * as me from 'melonjs/dist/melonjs.module.js';
171
169
 
172
- Or can simply be added to your html, through a content delivery network (CDN) URL, using for example :
170
+ Or can simply be added to your html, using [jsDeliver](https://www.jsdelivr.com/package/npm/melonjs) content delivery network (CDN) :
173
171
 
174
172
  ```html
175
- <!-- load the ES5 UMD bundle of melonJS v10.0.0 -->
176
- <script src="https://cdn.jsdelivr.net/npm/melonjs@10.0.0/dist/melonjs.js"></script>
177
- <!-- load the ES6 module bundle of melonJS v10.0.0 -->
178
- <script src="https://cdn.jsdelivr.net/npm/melonjs@10.0.0/dist/melonjs.module.js"></script>
173
+ <!-- load the ES6 module bundle of melonJS v10.0 -->
174
+ <script src="https://esm.run/melonjs@10.0"></script>
179
175
  <!-- omit the version completely to get the latest one -->
180
176
  <!-- you should NOT use this in production -->
181
- <script src="https://cdn.jsdelivr.net/npm/melonjs/dist/melonjs.js"></script>
182
- <!-- add ".min" to any JS/CSS file to get a minified version -->
183
- <script src="https://cdn.jsdelivr.net/npm/melonjs@10.0.0/dist/melonjs.min.js"></script>
177
+ <script src="https://esm.run/melonjs"></script>
184
178
  ```
185
179
  > Note: starting from the 10.0.0 version, the debug plugin is no longer provided as part of the melonJS library release, and has been moved to the official [boilerplate](https://github.com/melonjs/es6-boilerplate)
186
180