Skip to content

Commit 37eaf7f

Browse files
authored
Merge pull request #1333 from melonjs/chore/add-spine-plugin
Spine plugin: custom SpineBatcher, CI fix, and README updates
2 parents 2b03c75 + 07ae262 commit 37eaf7f

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
run: pnpm -F @melonjs/debug-plugin build
3737
- name: Build tiled-inflate-plugin
3838
run: pnpm -F @melonjs/tiled-inflate-plugin build
39+
- name: Build spine-plugin
40+
run: pnpm -F @melonjs/spine-plugin build
3941
- name: Build API docs
4042
run: pnpm doc
4143
- name: Build examples

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Compatibility
4848
Graphics
4949
- 2D sprite-based graphic engine
5050
- Fast WebGL renderer for desktop and mobile devices with fallback to Canvas rendering
51+
- Extensible batcher system for custom rendering pipelines
5152
- High DPI resolution & Canvas advanced auto scaling
5253
- Sprite with 9-slice scaling option, and animation management
5354
- Built-in effects such as tinting, masking and 2D lighting
@@ -72,6 +73,7 @@ Input
7273
- Device motion & accelerometer support
7374

7475
Camera
76+
- Multi-camera support (split-screen, minimaps, multiple viewports)
7577
- Camera follow with configurable deadzone and damping
7678
- Built-in shake, fade and flash effects
7779

@@ -152,6 +154,7 @@ Examples
152154
* [Hello World](https://melonjs.github.io/melonJS/examples/#/hello-world) ([source](https://github.com/melonjs/melonJS/tree/master/packages/examples/src/examples/helloWorld))
153155
* [Whac-A-Mole](https://melonjs.github.io/melonJS/examples/#/whac-a-mole) ([source](https://github.com/melonjs/melonJS/tree/master/packages/examples/src/examples/whac-a-mole))
154156
* [Compressed Textures](https://melonjs.github.io/melonJS/examples/#/compressed-textures) ([source](https://github.com/melonjs/melonJS/tree/master/packages/examples/src/examples/compressedTextures))
157+
* [Spine](https://melonjs.github.io/melonJS/examples/#/spine) ([source](https://github.com/melonjs/melonJS/tree/master/packages/examples/src/examples/spine))
155158

156159
Browse all examples [here](https://melonjs.github.io/melonJS/examples/)
157160

@@ -160,7 +163,7 @@ Browse all examples [here](https://melonjs.github.io/melonJS/examples/)
160163
### Basic Hello World Example
161164

162165
```JavaScript
163-
import * as me from "https://esm.run/melonjs";
166+
import * as me from "https://cdn.jsdelivr.net/npm/melonjs/+esm";
164167

165168
me.device.onReady(function () {
166169
// initialize the display canvas once the device/browser is ready
@@ -197,7 +200,7 @@ melonJS provides a plugin system allowing to extend the engine capabilities.
197200
Here is the list of official plugins maintained by the melonJS team:
198201
- [debug-plugin](https://github.com/melonjs/melonJS/tree/master/packages/debug-plugin) - a debug panel for inspecting game objects
199202
- [tiled-inflate-plugin](https://github.com/melonjs/melonJS/tree/master/packages/tiled-inflate-plugin) - enable loading and parsing of zlib, gzip and zstd compressed [Tiled](https://www.mapeditor.org/) maps
200-
- [spine-plugin](https://github.com/melonjs/spine-plugin) - [Spine](http://esotericsoftware.com) runtime integration to render Spine skeletal animations
203+
- [spine-plugin](https://github.com/melonjs/melonJS/tree/master/packages/spine-plugin) - [Spine](http://esotericsoftware.com) runtime integration to render Spine skeletal animations
201204

202205
If you wish to develop your own plugin, we also provide a [plugin template](https://github.com/melonjs/plugin-template) to help you get started.
203206

@@ -219,11 +222,11 @@ import * as me from 'melonjs';
219222
Or use it directly via [jsDelivr](https://www.jsdelivr.com/package/npm/melonjs) CDN :
220223

221224
```html
222-
<!-- load the ES6 module bundle of melonJS v18.0 -->
223-
<script type="module" src="https://esm.run/melonjs@18.0"></script>
225+
<!-- load the ES6 module bundle of melonJS v18.x -->
226+
<script type="module" src="https://cdn.jsdelivr.net/npm/melonjs@18/+esm"></script>
224227
<!-- omit the version completely to get the latest one -->
225228
<!-- you should NOT use this in production -->
226-
<script type="module" src="https://esm.run/melonjs"></script>
229+
<script type="module" src="https://cdn.jsdelivr.net/npm/melonjs/+esm"></script>
227230
```
228231
> Note: the debug plugin is available separately as [`@melonjs/debug-plugin`](https://www.npmjs.com/package/@melonjs/debug-plugin)
229232

packages/melonjs/CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
- Application: fix `getUriFragment()` unsafe cast by making `url` parameter optional
4646
- CanvasRenderer: `setProjection()` now properly applies the projection matrix as a canvas 2D transform
4747

48-
### Performance
49-
5048
## [18.1.0] (melonJS 2) - _2026-03-23_
5149

5250
### Added

0 commit comments

Comments
 (0)