melonjs 18.3.0 → 19.0.0

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.
Files changed (126) hide show
  1. package/README.md +11 -4
  2. package/build/application/application.d.ts.map +1 -1
  3. package/build/application/defaultApplicationSettings.d.ts +0 -1
  4. package/build/application/defaultApplicationSettings.d.ts.map +1 -1
  5. package/build/application/header.d.ts.map +1 -1
  6. package/build/application/settings.d.ts +0 -6
  7. package/build/application/settings.d.ts.map +1 -1
  8. package/build/camera/camera2d.d.ts +1 -2
  9. package/build/camera/camera2d.d.ts.map +1 -1
  10. package/build/geometries/earcut.d.ts.map +1 -1
  11. package/build/geometries/rectangle.d.ts.map +1 -1
  12. package/build/index.d.ts +20 -3
  13. package/build/index.d.ts.map +1 -1
  14. package/build/index.js +3042 -770
  15. package/build/index.js.map +4 -4
  16. package/build/input/gamepad.d.ts.map +1 -1
  17. package/build/level/level.d.ts +3 -3
  18. package/build/level/tiled/TMXTile.d.ts.map +1 -1
  19. package/build/loader/cache.d.ts +2 -0
  20. package/build/loader/cache.d.ts.map +1 -1
  21. package/build/loader/loader.d.ts +60 -0
  22. package/build/loader/loader.d.ts.map +1 -1
  23. package/build/loader/loadingscreen.d.ts +1 -1
  24. package/build/loader/parsers/mtl.d.ts +11 -0
  25. package/build/loader/parsers/mtl.d.ts.map +1 -0
  26. package/build/loader/parsers/obj.d.ts +11 -0
  27. package/build/loader/parsers/obj.d.ts.map +1 -0
  28. package/build/math/color.d.ts.map +1 -1
  29. package/build/math/math.d.ts +12 -0
  30. package/build/math/math.d.ts.map +1 -1
  31. package/build/math/matrix2d.d.ts +2 -2
  32. package/build/math/matrix2d.d.ts.map +1 -1
  33. package/build/math/matrix3d.d.ts +19 -4
  34. package/build/math/matrix3d.d.ts.map +1 -1
  35. package/build/math/observableVector2d.d.ts +1 -1
  36. package/build/math/observableVector2d.d.ts.map +1 -1
  37. package/build/math/observableVector3d.d.ts +1 -1
  38. package/build/math/observableVector3d.d.ts.map +1 -1
  39. package/build/math/vertex.d.ts +42 -0
  40. package/build/math/vertex.d.ts.map +1 -0
  41. package/build/particles/particle.d.ts.map +1 -1
  42. package/build/physics/bounds.d.ts +3 -2
  43. package/build/physics/bounds.d.ts.map +1 -1
  44. package/build/renderable/container.d.ts +21 -5
  45. package/build/renderable/container.d.ts.map +1 -1
  46. package/build/renderable/entity/entity.d.ts +7 -0
  47. package/build/renderable/entity/entity.d.ts.map +1 -1
  48. package/build/renderable/mesh.d.ts +147 -0
  49. package/build/renderable/mesh.d.ts.map +1 -0
  50. package/build/renderable/renderable.d.ts +56 -30
  51. package/build/renderable/renderable.d.ts.map +1 -1
  52. package/build/renderable/sprite.d.ts +1 -1
  53. package/build/renderable/text/bitmaptext.d.ts +1 -10
  54. package/build/renderable/text/bitmaptext.d.ts.map +1 -1
  55. package/build/renderable/text/bitmaptextdata.d.ts.map +1 -1
  56. package/build/renderable/text/glyph.d.ts +1 -1
  57. package/build/renderable/text/glyph.d.ts.map +1 -1
  58. package/build/renderable/text/text.d.ts +2 -12
  59. package/build/renderable/text/text.d.ts.map +1 -1
  60. package/build/renderable/trail.d.ts +120 -0
  61. package/build/renderable/trail.d.ts.map +1 -0
  62. package/build/renderable/ui/uitextbutton.d.ts +2 -6
  63. package/build/renderable/ui/uitextbutton.d.ts.map +1 -1
  64. package/build/state/stage.d.ts +39 -57
  65. package/build/state/stage.d.ts.map +1 -1
  66. package/build/state/state.d.ts +14 -28
  67. package/build/state/state.d.ts.map +1 -1
  68. package/build/system/event.d.ts +1 -1
  69. package/build/system/event.d.ts.map +1 -1
  70. package/build/system/eventEmitter.d.ts.map +1 -1
  71. package/build/tweens/easing.d.ts +23 -34
  72. package/build/tweens/easing.d.ts.map +1 -1
  73. package/build/tweens/interpolation.d.ts +32 -0
  74. package/build/tweens/interpolation.d.ts.map +1 -1
  75. package/build/tweens/tween.d.ts +77 -41
  76. package/build/tweens/tween.d.ts.map +1 -1
  77. package/build/video/canvas/canvas_renderer.d.ts +7 -4
  78. package/build/video/canvas/canvas_renderer.d.ts.map +1 -1
  79. package/build/video/gradient.d.ts +31 -0
  80. package/build/video/gradient.d.ts.map +1 -1
  81. package/build/video/renderer.d.ts +17 -6
  82. package/build/video/renderer.d.ts.map +1 -1
  83. package/build/video/renderstate.d.ts +4 -4
  84. package/build/video/webgl/batchers/material_batcher.d.ts +65 -0
  85. package/build/video/webgl/batchers/material_batcher.d.ts.map +1 -0
  86. package/build/video/webgl/batchers/mesh_batcher.d.ts +20 -0
  87. package/build/video/webgl/batchers/mesh_batcher.d.ts.map +1 -0
  88. package/build/video/webgl/batchers/quad_batcher.d.ts +2 -45
  89. package/build/video/webgl/batchers/quad_batcher.d.ts.map +1 -1
  90. package/build/video/webgl/buffer/index.d.ts +5 -0
  91. package/build/video/webgl/buffer/index.d.ts.map +1 -1
  92. package/build/video/webgl/buffer/vertex.d.ts +5 -0
  93. package/build/video/webgl/buffer/vertex.d.ts.map +1 -1
  94. package/build/video/webgl/effects/blur.d.ts +36 -0
  95. package/build/video/webgl/effects/blur.d.ts.map +1 -0
  96. package/build/video/webgl/effects/chromaticAberration.d.ts +39 -0
  97. package/build/video/webgl/effects/chromaticAberration.d.ts.map +1 -0
  98. package/build/video/webgl/effects/desaturate.d.ts +32 -0
  99. package/build/video/webgl/effects/desaturate.d.ts.map +1 -0
  100. package/build/video/webgl/effects/dissolve.d.ts +42 -0
  101. package/build/video/webgl/effects/dissolve.d.ts.map +1 -0
  102. package/build/video/webgl/effects/dropShadow.d.ts +47 -0
  103. package/build/video/webgl/effects/dropShadow.d.ts.map +1 -0
  104. package/build/video/webgl/effects/flash.d.ts +46 -0
  105. package/build/video/webgl/effects/flash.d.ts.map +1 -0
  106. package/build/video/webgl/effects/glow.d.ts +48 -0
  107. package/build/video/webgl/effects/glow.d.ts.map +1 -0
  108. package/build/video/webgl/effects/hologram.d.ts +37 -0
  109. package/build/video/webgl/effects/hologram.d.ts.map +1 -0
  110. package/build/video/webgl/effects/invert.d.ts +29 -0
  111. package/build/video/webgl/effects/invert.d.ts.map +1 -0
  112. package/build/video/webgl/effects/outline.d.ts +49 -0
  113. package/build/video/webgl/effects/outline.d.ts.map +1 -0
  114. package/build/video/webgl/effects/pixelate.d.ts +38 -0
  115. package/build/video/webgl/effects/pixelate.d.ts.map +1 -0
  116. package/build/video/webgl/effects/scanline.d.ts +47 -0
  117. package/build/video/webgl/effects/scanline.d.ts.map +1 -0
  118. package/build/video/webgl/effects/sepia.d.ts +28 -0
  119. package/build/video/webgl/effects/sepia.d.ts.map +1 -0
  120. package/build/video/webgl/effects/tintPulse.d.ts +43 -0
  121. package/build/video/webgl/effects/tintPulse.d.ts.map +1 -0
  122. package/build/video/webgl/effects/wave.d.ts +43 -0
  123. package/build/video/webgl/effects/wave.d.ts.map +1 -0
  124. package/build/video/webgl/webgl_renderer.d.ts +8 -9
  125. package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
  126. package/package.json +5 -5
@@ -0,0 +1,48 @@
1
+ /**
2
+ * A shader effect that adds a colored glow around the sprite.
3
+ * Similar to OutlineEffect but with a soft, blurred edge instead of a hard line.
4
+ * Commonly used for power-ups, magic items, or selection highlights.
5
+ * @category Effects
6
+ * @see {@link Renderable.shader} for usage
7
+ * @example
8
+ * // blue glow for a magic item
9
+ * mySprite.shader = new GlowEffect(renderer, {
10
+ * color: [0.2, 0.5, 1.0],
11
+ * intensity: 1.5,
12
+ * });
13
+ */
14
+ export default class GlowEffect extends ShaderEffect {
15
+ /**
16
+ * @param {import("../webgl_renderer.js").default} renderer - the current renderer instance
17
+ * @param {object} [options] - effect options
18
+ * @param {number[]} [options.color=[1.0, 1.0, 1.0]] - glow color as [r, g, b] (0.0–1.0)
19
+ * @param {number} [options.width=3.0] - glow spread in pixels
20
+ * @param {number} [options.intensity=1.0] - glow brightness multiplier
21
+ * @param {number[]} [options.textureSize=[256, 256]] - texture dimensions [width, height]
22
+ */
23
+ constructor(renderer: import("../webgl_renderer.js").default, options?: {
24
+ color?: number[] | undefined;
25
+ width?: number | undefined;
26
+ intensity?: number | undefined;
27
+ textureSize?: number[] | undefined;
28
+ });
29
+ intensity: number;
30
+ /**
31
+ * set the glow color
32
+ * @param {number[]} color - glow color as [r, g, b] (0.0–1.0)
33
+ */
34
+ setColor(color: number[]): void;
35
+ /**
36
+ * set the glow intensity
37
+ * @param {number} value - glow brightness multiplier
38
+ */
39
+ setIntensity(value: number): void;
40
+ /**
41
+ * set the texture size
42
+ * @param {number} width - texture width in pixels
43
+ * @param {number} height - texture height in pixels
44
+ */
45
+ setTextureSize(width: number, height: number): void;
46
+ }
47
+ import ShaderEffect from "../shadereffect.js";
48
+ //# sourceMappingURL=glow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glow.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/glow.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH;IACC;;;;;;;OAOG;IACH,sBAPW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAA2B,KAAK;QACP,KAAK;QACL,SAAS;QACP,WAAW;KACxC,EAsCA;IANA,kBAAyC;IAQ1C;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAIlB;IAED;;;OAGG;IACH,oBAFW,MAAM,QAKhB;IAED;;;;OAIG;IACH,sBAHW,MAAM,UACN,MAAM,QAIhB;CACD;yBAxFwB,oBAAoB"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * A shader effect that simulates a holographic projection with
3
+ * horizontal scan lines, color shift, and flickering.
4
+ * Commonly used for sci-fi UI, ghost/spirit characters, or tech displays.
5
+ * The `time` uniform should be updated each frame for animation.
6
+ * @category Effects
7
+ * @see {@link Renderable.shader} for usage
8
+ * @example
9
+ * const holo = new HologramEffect(renderer);
10
+ * mySprite.shader = holo;
11
+ * // update each frame
12
+ * holo.setTime(performance.now() / 1000);
13
+ */
14
+ export default class HologramEffect extends ShaderEffect {
15
+ /**
16
+ * @param {import("../webgl_renderer.js").default} renderer - the current renderer instance
17
+ * @param {object} [options] - effect options
18
+ * @param {number[]} [options.color=[0.1, 0.7, 1.0]] - hologram tint color [r, g, b]
19
+ * @param {number} [options.intensity=0.5] - effect intensity (0.0–1.0)
20
+ */
21
+ constructor(renderer: import("../webgl_renderer.js").default, options?: {
22
+ color?: number[] | undefined;
23
+ intensity?: number | undefined;
24
+ });
25
+ /**
26
+ * set the current time (call each frame for animation)
27
+ * @param {number} time - time in seconds
28
+ */
29
+ setTime(time: number): void;
30
+ /**
31
+ * set the hologram tint color
32
+ * @param {number[]} color - color as [r, g, b] (0.0–1.0)
33
+ */
34
+ setColor(color: number[]): void;
35
+ }
36
+ import ShaderEffect from "../shadereffect.js";
37
+ //# sourceMappingURL=hologram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hologram.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/hologram.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH;IACC;;;;;OAKG;IACH,sBALW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAA2B,KAAK;QACP,SAAS;KACpC,EAyBA;IAED;;;OAGG;IACH,cAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAIlB;CACD;yBA/DwB,oBAAoB"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * A shader effect that inverts the colors of the sprite.
3
+ * Commonly used for damage feedback, negative image, or X-ray effects.
4
+ * @category Effects
5
+ * @see {@link Renderable.shader} for usage
6
+ * @example
7
+ * mySprite.shader = new InvertEffect(renderer);
8
+ * @example
9
+ * // partial inversion
10
+ * mySprite.shader = new InvertEffect(renderer, { intensity: 0.5 });
11
+ */
12
+ export default class InvertEffect extends ShaderEffect {
13
+ /**
14
+ * @param {import("../webgl_renderer.js").default} renderer - the current renderer instance
15
+ * @param {object} [options] - effect options
16
+ * @param {number} [options.intensity=1.0] - inversion intensity (0.0 = original, 1.0 = fully inverted)
17
+ */
18
+ constructor(renderer: import("../webgl_renderer.js").default, options?: {
19
+ intensity?: number | undefined;
20
+ });
21
+ intensity: number;
22
+ /**
23
+ * set the inversion intensity
24
+ * @param {number} value - inversion intensity (0.0 = original, 1.0 = fully inverted)
25
+ */
26
+ setIntensity(value: number): void;
27
+ }
28
+ import ShaderEffect from "../shadereffect.js";
29
+ //# sourceMappingURL=invert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invert.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/invert.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH;IACC;;;;OAIG;IACH,sBAJW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,SAAS;KACpC,EAgBA;IAHA,kBACgE;IAIjE;;;OAGG;IACH,oBAFW,MAAM,QAKhB;CACD;yBA5CwB,oBAAoB"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * A shader effect that draws a colored outline around the sprite.
3
+ * Works by sampling neighboring pixels — if any neighbor is opaque but the
4
+ * current pixel is transparent, it draws the outline color.
5
+ * Commonly used for selection highlights, hover states, or collectible glow.
6
+ * @category Effects
7
+ * @see {@link Renderable.shader} for usage
8
+ * @example
9
+ * // yellow outline for selection
10
+ * mySprite.shader = new OutlineEffect(renderer, {
11
+ * color: [1.0, 1.0, 0.0],
12
+ * width: 2.0,
13
+ * });
14
+ * @example
15
+ * // remove the effect
16
+ * mySprite.shader = undefined;
17
+ */
18
+ export default class OutlineEffect extends ShaderEffect {
19
+ /**
20
+ * @param {import("../webgl_renderer.js").default} renderer - the current renderer instance
21
+ * @param {object} [options] - effect options
22
+ * @param {number[]} [options.color=[1.0, 1.0, 1.0]] - outline color as [r, g, b] (0.0–1.0)
23
+ * @param {number} [options.width=1.0] - outline width in pixels
24
+ * @param {number[]} [options.textureSize] - texture dimensions [width, height] (defaults to renderer size)
25
+ */
26
+ constructor(renderer: import("../webgl_renderer.js").default, options?: {
27
+ color?: number[] | undefined;
28
+ width?: number | undefined;
29
+ textureSize?: number[] | undefined;
30
+ });
31
+ /**
32
+ * set the outline color
33
+ * @param {number[]} color - outline color as [r, g, b] (0.0–1.0)
34
+ */
35
+ setColor(color: number[]): void;
36
+ /**
37
+ * set the outline width
38
+ * @param {number} width - outline width in pixels
39
+ */
40
+ setWidth(width: number): void;
41
+ /**
42
+ * set the texture size for accurate outline width calculation
43
+ * @param {number} width - texture width in pixels
44
+ * @param {number} height - texture height in pixels
45
+ */
46
+ setTextureSize(width: number, height: number): void;
47
+ }
48
+ import ShaderEffect from "../shadereffect.js";
49
+ //# sourceMappingURL=outline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outline.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/outline.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH;IACC;;;;;;OAMG;IACH,sBANW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAA2B,KAAK;QACP,KAAK;QACH,WAAW;KACxC,EAsCA;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAIlB;IAED;;;OAGG;IACH,gBAFW,MAAM,QAIhB;IAED;;;;OAIG;IACH,sBAHW,MAAM,UACN,MAAM,QAIhB;CACD;yBA1FwB,oBAAoB"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * A shader effect that pixelates the sprite by snapping UV coordinates
3
+ * to a grid. Commonly used for teleport effects, transitions, or retro styling.
4
+ * @category Effects
5
+ * @see {@link Renderable.shader} for usage
6
+ * @example
7
+ * // moderate pixelation
8
+ * mySprite.shader = new PixelateEffect(renderer, { size: 8.0 });
9
+ * @example
10
+ * // animate the pixelation (e.g. for teleport)
11
+ * pixelate.setSize(pixelate.size + dt / 50);
12
+ */
13
+ export default class PixelateEffect extends ShaderEffect {
14
+ /**
15
+ * @param {import("../webgl_renderer.js").default} renderer - the current renderer instance
16
+ * @param {object} [options] - effect options
17
+ * @param {number} [options.size=4.0] - pixel size in texels (higher = more pixelated)
18
+ * @param {number[]} [options.textureSize=[256, 256]] - texture dimensions [width, height]
19
+ */
20
+ constructor(renderer: import("../webgl_renderer.js").default, options?: {
21
+ size?: number | undefined;
22
+ textureSize?: number[] | undefined;
23
+ });
24
+ size: number;
25
+ /**
26
+ * set the pixel size
27
+ * @param {number} size - pixel size in texels
28
+ */
29
+ setSize(size: number): void;
30
+ /**
31
+ * set the texture size
32
+ * @param {number} width - texture width in pixels
33
+ * @param {number} height - texture height in pixels
34
+ */
35
+ setTextureSize(width: number, height: number): void;
36
+ }
37
+ import ShaderEffect from "../shadereffect.js";
38
+ //# sourceMappingURL=pixelate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pixelate.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/pixelate.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH;IACC;;;;;OAKG;IACH,sBALW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,IAAI;QACF,WAAW;KACxC,EAoBA;IALA,aAA+B;IAOhC;;;OAGG;IACH,cAFW,MAAM,QAKhB;IAED;;;;OAIG;IACH,sBAHW,MAAM,UACN,MAAM,QAIhB;CACD;yBA3DwB,oBAAoB"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * A shader effect that overlays horizontal scanlines on the sprite.
3
+ * Can optionally add barrel distortion and vignette for a full CRT monitor look.
4
+ * @category Effects
5
+ * @see {@link Renderable.shader} for usage
6
+ * @example
7
+ * // simple scanlines
8
+ * mySprite.shader = new ScanlineEffect(renderer, { opacity: 0.3 });
9
+ * @example
10
+ * // full CRT look with curvature and vignette
11
+ * mySprite.shader = new ScanlineEffect(renderer, {
12
+ * opacity: 0.3,
13
+ * curvature: 0.02,
14
+ * vignetteStrength: 0.3,
15
+ * });
16
+ */
17
+ export default class ScanlineEffect extends ShaderEffect {
18
+ /**
19
+ * @param {import("../webgl_renderer.js").default} renderer - the current renderer instance
20
+ * @param {object} [options] - effect options
21
+ * @param {number} [options.opacity=0.25] - scanline darkness (0.0 = invisible, 1.0 = fully black lines)
22
+ * @param {number} [options.curvature=0.0] - barrel distortion strength (0.0 = flat, 0.02 = subtle CRT curve)
23
+ * @param {number} [options.vignetteStrength=0.0] - edge darkening strength (0.0 = none, 0.3 = subtle)
24
+ */
25
+ constructor(renderer: import("../webgl_renderer.js").default, options?: {
26
+ opacity?: number | undefined;
27
+ curvature?: number | undefined;
28
+ vignetteStrength?: number | undefined;
29
+ });
30
+ /**
31
+ * set the scanline opacity
32
+ * @param {number} opacity - scanline darkness (0.0–1.0)
33
+ */
34
+ setOpacity(opacity: number): void;
35
+ /**
36
+ * set the barrel curvature strength
37
+ * @param {number} curvature - distortion amount (0.0 = flat)
38
+ */
39
+ setCurvature(curvature: number): void;
40
+ /**
41
+ * set the vignette strength
42
+ * @param {number} strength - edge darkening (0.0 = none)
43
+ */
44
+ setVignetteStrength(strength: number): void;
45
+ }
46
+ import ShaderEffect from "../shadereffect.js";
47
+ //# sourceMappingURL=scanline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scanline.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/scanline.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH;IACC;;;;;;OAMG;IACH,sBANW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,OAAO;QACP,SAAS;QACT,gBAAgB;KAC3C,EAyCA;IAED;;;OAGG;IACH,oBAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,wBAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,8BAFW,MAAM,QAIhB;CACD;yBA3FwB,oBAAoB"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * A shader effect that applies a warm sepia (vintage photo) tone to the sprite.
3
+ * @category Effects
4
+ * @see {@link Renderable.shader} for usage
5
+ * @example
6
+ * mySprite.shader = new SepiaEffect(renderer);
7
+ * @example
8
+ * // partial sepia
9
+ * mySprite.shader = new SepiaEffect(renderer, { intensity: 0.5 });
10
+ */
11
+ export default class SepiaEffect extends ShaderEffect {
12
+ /**
13
+ * @param {import("../webgl_renderer.js").default} renderer - the current renderer instance
14
+ * @param {object} [options] - effect options
15
+ * @param {number} [options.intensity=1.0] - sepia intensity (0.0 = original, 1.0 = full sepia)
16
+ */
17
+ constructor(renderer: import("../webgl_renderer.js").default, options?: {
18
+ intensity?: number | undefined;
19
+ });
20
+ intensity: number;
21
+ /**
22
+ * set the sepia intensity
23
+ * @param {number} value - sepia intensity (0.0 = original, 1.0 = full sepia)
24
+ */
25
+ setIntensity(value: number): void;
26
+ }
27
+ import ShaderEffect from "../shadereffect.js";
28
+ //# sourceMappingURL=sepia.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sepia.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/sepia.js"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH;IACC;;;;OAIG;IACH,sBAJW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,SAAS;KACpC,EAmBA;IAHA,kBACgE;IAIjE;;;OAGG;IACH,oBAFW,MAAM,QAKhB;CACD;yBA9CwB,oBAAoB"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * A shader effect that pulses a color overlay on the sprite.
3
+ * Commonly used for status effects — poison green, freeze blue, fire red.
4
+ * The `time` uniform should be updated each frame for the pulse animation.
5
+ * @category Effects
6
+ * @see {@link Renderable.shader} for usage
7
+ * @example
8
+ * // poison pulse
9
+ * const poison = new TintPulseEffect(renderer, {
10
+ * color: [0.0, 1.0, 0.0],
11
+ * speed: 3.0,
12
+ * });
13
+ * mySprite.shader = poison;
14
+ *
15
+ * // update each frame
16
+ * poison.setTime(timer.getTime() / 1000);
17
+ */
18
+ export default class TintPulseEffect extends ShaderEffect {
19
+ /**
20
+ * @param {import("../webgl_renderer.js").default} renderer - the current renderer instance
21
+ * @param {object} [options] - effect options
22
+ * @param {number[]} [options.color=[1.0, 0.0, 0.0]] - pulse color as [r, g, b] (0.0–1.0)
23
+ * @param {number} [options.speed=2.0] - pulse speed (oscillations per second)
24
+ * @param {number} [options.intensity=0.3] - maximum tint strength (0.0–1.0)
25
+ */
26
+ constructor(renderer: import("../webgl_renderer.js").default, options?: {
27
+ color?: number[] | undefined;
28
+ speed?: number | undefined;
29
+ intensity?: number | undefined;
30
+ });
31
+ /**
32
+ * set the current time (call each frame for animation)
33
+ * @param {number} time - time in seconds
34
+ */
35
+ setTime(time: number): void;
36
+ /**
37
+ * set the pulse color
38
+ * @param {number[]} color - pulse color as [r, g, b] (0.0–1.0)
39
+ */
40
+ setColor(color: number[]): void;
41
+ }
42
+ import ShaderEffect from "../shadereffect.js";
43
+ //# sourceMappingURL=tintPulse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tintPulse.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/tintPulse.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH;IACC;;;;;;OAMG;IACH,sBANW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAA2B,KAAK;QACP,KAAK;QACL,SAAS;KACpC,EAqBA;IAED;;;OAGG;IACH,cAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAIlB;CACD;yBAhEwB,oBAAoB"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * A shader effect that applies a sine wave distortion to the sprite.
3
+ * Commonly used for underwater, heat haze, or dream sequence effects.
4
+ * The `time` uniform should be updated each frame for animation.
5
+ * @category Effects
6
+ * @see {@link Renderable.shader} for usage
7
+ * @example
8
+ * const wave = new WaveEffect(renderer, { amplitude: 0.01, frequency: 10.0 });
9
+ * mySprite.shader = wave;
10
+ * // update each frame
11
+ * wave.setTime(performance.now() / 1000);
12
+ */
13
+ export default class WaveEffect extends ShaderEffect {
14
+ /**
15
+ * @param {import("../webgl_renderer.js").default} renderer - the current renderer instance
16
+ * @param {object} [options] - effect options
17
+ * @param {number} [options.amplitude=0.01] - wave displacement strength (in UV space, 0.01 = subtle)
18
+ * @param {number} [options.frequency=10.0] - number of waves across the sprite
19
+ * @param {number} [options.speed=2.0] - wave animation speed
20
+ */
21
+ constructor(renderer: import("../webgl_renderer.js").default, options?: {
22
+ amplitude?: number | undefined;
23
+ frequency?: number | undefined;
24
+ speed?: number | undefined;
25
+ });
26
+ /**
27
+ * set the current time (call each frame for animation)
28
+ * @param {number} time - time in seconds
29
+ */
30
+ setTime(time: number): void;
31
+ /**
32
+ * set the wave amplitude
33
+ * @param {number} amplitude - displacement strength in UV space
34
+ */
35
+ setAmplitude(amplitude: number): void;
36
+ /**
37
+ * set the wave frequency
38
+ * @param {number} frequency - number of waves
39
+ */
40
+ setFrequency(frequency: number): void;
41
+ }
42
+ import ShaderEffect from "../shadereffect.js";
43
+ //# sourceMappingURL=wave.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wave.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/wave.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH;IACC;;;;;;OAMG;IACH,sBANW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,SAAS;QACT,SAAS;QACT,KAAK;KAChC,EAqBA;IAED;;;OAGG;IACH,cAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,wBAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,wBAFW,MAAM,QAIhB;CACD;yBAnEwB,oBAAoB"}
@@ -53,9 +53,9 @@ export default class WebGLRenderer extends Renderer {
53
53
  /**
54
54
  * The current transformation matrix used for transformations on the overall scene
55
55
  * (alias to renderState.currentTransform for backward compatibility)
56
- * @type {Matrix2d}
56
+ * @type {Matrix3d}
57
57
  */
58
- currentTransform: Matrix2d;
58
+ currentTransform: Matrix3d;
59
59
  /**
60
60
  * The current batcher used by the renderer
61
61
  * @type {Batcher}
@@ -71,8 +71,6 @@ export default class WebGLRenderer extends Renderer {
71
71
  * @type {Map<Batcher>}
72
72
  */
73
73
  batchers: Map<Batcher, any>;
74
- depthTest: any;
75
- customShader: any;
76
74
  cache: TextureCache;
77
75
  /**
78
76
  * The WebGL version used by this renderer (1 or 2)
@@ -457,25 +455,25 @@ export default class WebGLRenderer extends Renderer {
457
455
  /**
458
456
  * Reset (overrides) the renderer transformation matrix to the
459
457
  * identity one, and then apply the given transformation matrix.
460
- * @param {Matrix2d|number} a - a matrix2d to transform by, or a the a component to multiply the current matrix by
458
+ * @param {Matrix2d|Matrix3d|number} a - a matrix to transform by, or the a component to multiply the current matrix by
461
459
  * @param {number} b - the b component to multiply the current matrix by
462
460
  * @param {number} c - the c component to multiply the current matrix by
463
461
  * @param {number} d - the d component to multiply the current matrix by
464
462
  * @param {number} e - the e component to multiply the current matrix by
465
463
  * @param {number} f - the f component to multiply the current matrix by
466
464
  */
467
- setTransform(a: Matrix2d | number, b: number, c: number, d: number, e: number, f: number): void;
465
+ setTransform(a: Matrix2d | Matrix3d | number, b: number, c: number, d: number, e: number, f: number): void;
468
466
  /**
469
467
  * Multiply given matrix into the renderer tranformation matrix
470
468
  * @see {@link WebGLRenderer.setTransform} which will reset the current transform matrix prior to performing the new transformation
471
- * @param {Matrix2d|number} a - a matrix2d to transform by, or a the a component to multiply the current matrix by
469
+ * @param {Matrix2d|Matrix3d|number} a - a matrix to transform by, or the a component to multiply the current matrix by
472
470
  * @param {number} b - the b component to multiply the current matrix by
473
471
  * @param {number} c - the c component to multiply the current matrix by
474
472
  * @param {number} d - the d component to multiply the current matrix by
475
473
  * @param {number} e - the e component to multiply the current matrix by
476
474
  * @param {number} f - the f component to multiply the current matrix by
477
475
  */
478
- transform(a: Matrix2d | number, b: number, c: number, d: number, e: number, f: number): void;
476
+ transform(a: Matrix2d | Matrix3d | number, b: number, c: number, d: number, e: number, f: number): void;
479
477
  /**
480
478
  * adds a translation transformation to the current matrix.
481
479
  * @param {number} x - Distance to move in the horizontal direction. Positive values are to the right, and negative to the left.
@@ -506,7 +504,7 @@ export default class WebGLRenderer extends Renderer {
506
504
  #private;
507
505
  }
508
506
  import Renderer from "./../renderer.js";
509
- import type { Matrix2d } from "../../math/matrix2d.ts";
507
+ import { Matrix3d } from "../../math/matrix3d.ts";
510
508
  import type { Batcher } from "./batchers/batcher.js";
511
509
  import TextureCache from "./../texture/cache.js";
512
510
  import { TextureAtlas } from "./../texture/atlas.js";
@@ -516,4 +514,5 @@ import type { RoundRect } from "./../../geometries/roundrect.ts";
516
514
  import type { Polygon } from "../../geometries/polygon.ts";
517
515
  import type { Line } from "./../../geometries/line.ts";
518
516
  import type { Ellipse } from "./../../geometries/ellipse.ts";
517
+ import type { Matrix2d } from "../../math/matrix2d.ts";
519
518
  //# sourceMappingURL=webgl_renderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webgl_renderer.d.ts","sourceRoot":"","sources":["../../../src/video/webgl/webgl_renderer.js"],"names":[],"mappings":"AAqCA;;;GAGG;AACH;IAQE;;;;;OAKG;IACH,oBAJU,MAAM,CAIU;IAU1B;;;;OAIG;IACH,IAFU,qBAAqB,CAEI;IAEnC;;;;OAIG;IACH,WAHU,MAAM,CAGE;IAElB;;;;;OAKG;IACH,UAHU,MAAM,CAGO;IAEvB;;;OAGG;IACH,cAFU,WAAW,CAEqB;IAE1C;;;;OAIG;IACH,sBAHU,MAAM,CAGwD;IAExE;;;OAGG;IACH;;;QAEE;IAGF,kBAAoB;IAGpB,sBAA4B;IAE5B;;;;OAIG;IACH,kBAFU,QAAQ,CAEuC;IAEzD;;;OAGG;IACH,gBAFU,OAAO,CAEc;IAE/B;;;OAGG;IACH,gBAFU,YAAY,CAES;IAE/B;;;OAGG;IACH,4BAAyB;IAWzB,eAAkC;IA6BlC,kBAA6B;IAG7B,oBAAqD;IAwCtD;;;;OAIG;IACH,oBAHU,MAAM,CAKf;IAqGD;;;;;OAKG;IACH,oBAJW,OAAO,SACP,MAAM,aACN,OAAO,QAYjB;IAED;;;;;OAKG;IACH,kBAJW,MAAM,WACN,QAAQ,GACN,OAAO,CA8BnB;IAED;;OAEG;IACH,uBAEC;IAED;;;;;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ACH,cANW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,SACN,OAAO,QA2BjB;IAED;;;;;;OAMG;IACH,YALW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,QA0BhB;IAED;;;;;;;;OAQG;IACH,mBAPW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,UACN,MAAM,SACN,OAAO,QAWjB;IAED;;;;;;;OAOG;IACH,iBANW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,UACN,MAAM,QA4FhB;IAED;;;;OAIG;IACH,eAHW,MAAM,KACN,MAAM,QAIhB;IAED;;;;OAIG;IACH,aAHW,MAAM,KACN,MAAM,QAIhB;IAgED;;;;;;;;;OASG;IACH,gBAPW,QAAQ,GAAC,MAAM,KACf,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,QAKhB;IAED;;;;;;;;;OASG;IACH,aAPW,QAAQ,GAAC,MAAM,KACf,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,QAehB;IAED;;;;OAIG;IACH,aAHW,MAAM,KACN,MAAM,QAWhB;IAED;;;;;;;;;;OAUG;IACH,YALW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,QA6ChB;IAED;;;;;;;OAOG;IACH,eAHW,IAAI,GAAC,SAAS,GAAC,OAAO,GAAC,IAAI,GAAC,OAAO,WACnC,OAAO,QAmCjB;;CAcD;qBAtqDoB,kBAAkB;8BAkBZ,wBAAwB;6BAEzB,uBAAuB;yBAlBxB,uBAAuB;6BADN,uBAAuB;sBAZhC,uBAAuB;0BAwBjC,iCAAiC;+BAC5B,iCAAiC;6BACnC,6BAA6B;0BAChC,4BAA4B;6BACzB,+BAA+B"}
1
+ {"version":3,"file":"webgl_renderer.d.ts","sourceRoot":"","sources":["../../../src/video/webgl/webgl_renderer.js"],"names":[],"mappings":"AA0CA;;;GAGG;AACH;IAQE;;;;;OAKG;IACH,oBAJU,MAAM,CAIU;IAU1B;;;;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MAAM,KACxB,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,QAmChB;IAED;;;;OAIG;IACH,aAHW,MAAM,KACN,MAAM,QAUhB;IAED;;;;;;;;;;OAUG;IACH,YALW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,QA6ChB;IAED;;;;;;;OAOG;IACH,eAHW,IAAI,GAAC,SAAS,GAAC,OAAO,GAAC,IAAI,GAAC,OAAO,WACnC,OAAO,QAmCjB;;CAcD;qBA3uDoB,kBAAkB;yBAVd,wBAAwB;6BA+BvB,uBAAuB;yBAnBxB,uBAAuB;6BADN,uBAAuB;sBAbhC,uBAAuB;0BA0BjC,iCAAiC;+BAC5B,iCAAiC;6BACnC,6BAA6B;0BAChC,4BAA4B;6BACzB,+BAA+B;8BAC9B,wBAAwB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "melonjs",
3
- "version": "18.3.0",
3
+ "version": "19.0.0",
4
4
  "description": "melonJS Game Engine",
5
5
  "homepage": "http://www.melonjs.org/",
6
6
  "type": "module",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/howler": "^2.2.12",
63
- "@types/node": "^25.5.2",
63
+ "@types/node": "^25.6.0",
64
64
  "concurrently": "^9.2.1",
65
65
  "del-cli": "^7.0.0",
66
66
  "esbuild": "^0.27.3",
@@ -68,10 +68,10 @@
68
68
  "tsconfig": "workspace:^",
69
69
  "tsx": "^4.21.0",
70
70
  "type-fest": "^5.5.0",
71
- "typedoc": "^0.28.18",
71
+ "typedoc": "^0.28.19",
72
72
  "typescript": "^6.0.2",
73
- "vite": "8.0.3",
74
- "vite-plugin-glsl": "^1.5.6"
73
+ "vite": "8.0.8",
74
+ "vite-plugin-glsl": "^1.6.0"
75
75
  },
76
76
  "scripts": {
77
77
  "dev": "concurrently --raw \"pnpm build:watch\" \"pnpm tsc:watch\" \"pnpm doc:watch\"",