melonjs 20.2.0 → 20.4.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 (515) hide show
  1. package/README.md +86 -8
  2. package/build/application/application.d.ts +0 -17
  3. package/build/application/application.d.ts.map +1 -1
  4. package/build/application/settings.d.ts +6 -2
  5. package/build/application/settings.d.ts.map +1 -1
  6. package/build/audio/audio.d.ts +2 -2
  7. package/build/audio/audio.d.ts.map +1 -1
  8. package/build/audio/backend/buffer.d.ts +26 -0
  9. package/build/audio/backend/buffer.d.ts.map +1 -0
  10. package/build/audio/backend/cache.d.ts +2 -0
  11. package/build/audio/backend/cache.d.ts.map +1 -0
  12. package/build/audio/backend/core.d.ts +24 -0
  13. package/build/audio/backend/core.d.ts.map +1 -0
  14. package/build/audio/backend/engine.d.ts +35 -0
  15. package/build/audio/backend/engine.d.ts.map +1 -0
  16. package/build/audio/backend/sound.d.ts +29 -0
  17. package/build/audio/backend/sound.d.ts.map +1 -0
  18. package/build/audio/backend/spatial.d.ts +191 -0
  19. package/build/audio/backend/spatial.d.ts.map +1 -0
  20. package/build/audio/backend/types.d.ts +107 -0
  21. package/build/audio/backend/types.d.ts.map +1 -0
  22. package/build/audio/backend/voice.d.ts +8 -0
  23. package/build/audio/backend/voice.d.ts.map +1 -0
  24. package/build/audio/playback.d.ts +49 -4
  25. package/build/audio/playback.d.ts.map +1 -1
  26. package/build/audio/procedural.d.ts.map +1 -1
  27. package/build/audio/state.d.ts +69 -0
  28. package/build/audio/state.d.ts.map +1 -0
  29. package/build/audio/types.d.ts +93 -1
  30. package/build/audio/types.d.ts.map +1 -1
  31. package/build/camera/camera2d.d.ts +0 -68
  32. package/build/camera/camera2d.d.ts.map +1 -1
  33. package/build/camera/camera3d.d.ts +91 -84
  34. package/build/camera/camera3d.d.ts.map +1 -1
  35. package/build/camera/effects/fade_effect.d.ts +0 -5
  36. package/build/camera/effects/fade_effect.d.ts.map +1 -1
  37. package/build/camera/effects/mask_effect.d.ts +0 -5
  38. package/build/camera/effects/mask_effect.d.ts.map +1 -1
  39. package/build/camera/fog.d.ts +118 -0
  40. package/build/camera/fog.d.ts.map +1 -0
  41. package/build/const.d.ts +2 -2
  42. package/build/geometries/box3d.d.ts +0 -28
  43. package/build/geometries/box3d.d.ts.map +1 -1
  44. package/build/geometries/ellipse.d.ts +0 -20
  45. package/build/geometries/ellipse.d.ts.map +1 -1
  46. package/build/geometries/observablePoint.d.ts +0 -3
  47. package/build/geometries/observablePoint.d.ts.map +1 -1
  48. package/build/geometries/path2d.d.ts +0 -19
  49. package/build/geometries/path2d.d.ts.map +1 -1
  50. package/build/geometries/polygon.d.ts +0 -12
  51. package/build/geometries/polygon.d.ts.map +1 -1
  52. package/build/geometries/roundrect.d.ts +0 -18
  53. package/build/geometries/roundrect.d.ts.map +1 -1
  54. package/build/geometries/sphere.d.ts +0 -9
  55. package/build/geometries/sphere.d.ts.map +1 -1
  56. package/build/geometries/toarccanvas.d.ts.map +1 -1
  57. package/build/index.d.ts +1 -0
  58. package/build/index.d.ts.map +1 -1
  59. package/build/index.js +12150 -11289
  60. package/build/index.js.map +4 -4
  61. package/build/input/gamepad.d.ts.map +1 -1
  62. package/build/input/input.d.ts +19 -0
  63. package/build/input/input.d.ts.map +1 -1
  64. package/build/input/pointer.d.ts +0 -4
  65. package/build/input/pointer.d.ts.map +1 -1
  66. package/build/input/pointerevent.d.ts +0 -6
  67. package/build/input/pointerevent.d.ts.map +1 -1
  68. package/build/lang/deprecated.d.ts +4 -2
  69. package/build/lang/deprecated.d.ts.map +1 -1
  70. package/build/level/gltf/GLTFModel.d.ts +0 -81
  71. package/build/level/gltf/GLTFModel.d.ts.map +1 -1
  72. package/build/level/gltf/GLTFScene.d.ts +13 -44
  73. package/build/level/gltf/GLTFScene.d.ts.map +1 -1
  74. package/build/level/gltf/gltf_sampler.d.ts +1 -48
  75. package/build/level/gltf/gltf_sampler.d.ts.map +1 -1
  76. package/build/level/level.d.ts +195 -113
  77. package/build/level/level.d.ts.map +1 -1
  78. package/build/level/tiled/TMXGroup.d.ts +1 -65
  79. package/build/level/tiled/TMXGroup.d.ts.map +1 -1
  80. package/build/level/tiled/TMXLayer.d.ts +0 -44
  81. package/build/level/tiled/TMXLayer.d.ts.map +1 -1
  82. package/build/level/tiled/TMXObject.d.ts +1 -136
  83. package/build/level/tiled/TMXObject.d.ts.map +1 -1
  84. package/build/level/tiled/TMXObjectFactory.d.ts +1 -40
  85. package/build/level/tiled/TMXObjectFactory.d.ts.map +1 -1
  86. package/build/level/tiled/TMXTile.d.ts +1 -30
  87. package/build/level/tiled/TMXTile.d.ts.map +1 -1
  88. package/build/level/tiled/TMXTileMap.d.ts +0 -10
  89. package/build/level/tiled/TMXTileMap.d.ts.map +1 -1
  90. package/build/level/tiled/TMXTileset.d.ts +0 -113
  91. package/build/level/tiled/TMXTileset.d.ts.map +1 -1
  92. package/build/level/tiled/TMXTilesetGroup.d.ts +0 -1
  93. package/build/level/tiled/TMXTilesetGroup.d.ts.map +1 -1
  94. package/build/level/tiled/TMXUtils.d.ts +1 -43
  95. package/build/level/tiled/TMXUtils.d.ts.map +1 -1
  96. package/build/level/tiled/factories/shape.d.ts +1 -7
  97. package/build/level/tiled/factories/shape.d.ts.map +1 -1
  98. package/build/level/tiled/factories/text.d.ts +1 -7
  99. package/build/level/tiled/factories/text.d.ts.map +1 -1
  100. package/build/level/tiled/factories/tile.d.ts +1 -7
  101. package/build/level/tiled/factories/tile.d.ts.map +1 -1
  102. package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts +0 -60
  103. package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts.map +1 -1
  104. package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts +0 -42
  105. package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts.map +1 -1
  106. package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts +0 -5
  107. package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts.map +1 -1
  108. package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts +0 -31
  109. package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts.map +1 -1
  110. package/build/level/tiled/renderer/TMXRenderer.d.ts +2 -2
  111. package/build/level/tiled/renderer/TMXRenderer.d.ts.map +1 -1
  112. package/build/level/tiled/renderer/TMXStaggeredRenderer.d.ts.map +1 -1
  113. package/build/level/tiled/renderer/autodetect.d.ts +1 -6
  114. package/build/level/tiled/renderer/autodetect.d.ts.map +1 -1
  115. package/build/lighting/light2d.d.ts +0 -25
  116. package/build/lighting/light2d.d.ts.map +1 -1
  117. package/build/lighting/light3d.d.ts +0 -16
  118. package/build/lighting/light3d.d.ts.map +1 -1
  119. package/build/loader/loader.d.ts +46 -73
  120. package/build/loader/loader.d.ts.map +1 -1
  121. package/build/loader/loadingscreen.d.ts +0 -33
  122. package/build/loader/loadingscreen.d.ts.map +1 -1
  123. package/build/loader/parsers/aseprite.d.ts +0 -13
  124. package/build/loader/parsers/aseprite.d.ts.map +1 -1
  125. package/build/loader/parsers/audio.d.ts +2 -0
  126. package/build/loader/parsers/audio.d.ts.map +1 -0
  127. package/build/loader/parsers/binary.d.ts +1 -10
  128. package/build/loader/parsers/binary.d.ts.map +1 -1
  129. package/build/loader/parsers/compressed_textures/compressed_image.d.ts.map +1 -1
  130. package/build/loader/parsers/compressed_textures/parseDDS.d.ts +1 -7
  131. package/build/loader/parsers/compressed_textures/parseDDS.d.ts.map +1 -1
  132. package/build/loader/parsers/compressed_textures/parseKTX.d.ts +1 -7
  133. package/build/loader/parsers/compressed_textures/parseKTX.d.ts.map +1 -1
  134. package/build/loader/parsers/compressed_textures/parseKTX2.d.ts +1 -7
  135. package/build/loader/parsers/compressed_textures/parseKTX2.d.ts.map +1 -1
  136. package/build/loader/parsers/compressed_textures/parsePKM.d.ts +1 -7
  137. package/build/loader/parsers/compressed_textures/parsePKM.d.ts.map +1 -1
  138. package/build/loader/parsers/compressed_textures/parsePVR.d.ts +1 -7
  139. package/build/loader/parsers/compressed_textures/parsePVR.d.ts.map +1 -1
  140. package/build/loader/parsers/fontface.d.ts +1 -13
  141. package/build/loader/parsers/fontface.d.ts.map +1 -1
  142. package/build/loader/parsers/gltf.d.ts +1 -70
  143. package/build/loader/parsers/gltf.d.ts.map +1 -1
  144. package/build/loader/parsers/image.d.ts +1 -22
  145. package/build/loader/parsers/image.d.ts.map +1 -1
  146. package/build/loader/parsers/json.d.ts +1 -10
  147. package/build/loader/parsers/json.d.ts.map +1 -1
  148. package/build/loader/parsers/mtl.d.ts +1 -28
  149. package/build/loader/parsers/mtl.d.ts.map +1 -1
  150. package/build/loader/parsers/obj.d.ts +1 -59
  151. package/build/loader/parsers/obj.d.ts.map +1 -1
  152. package/build/loader/parsers/pbr.d.ts +1 -62
  153. package/build/loader/parsers/pbr.d.ts.map +1 -1
  154. package/build/loader/parsers/script.d.ts +1 -10
  155. package/build/loader/parsers/script.d.ts.map +1 -1
  156. package/build/loader/parsers/shader.d.ts +1 -52
  157. package/build/loader/parsers/shader.d.ts.map +1 -1
  158. package/build/loader/parsers/tmx.d.ts +1 -10
  159. package/build/loader/parsers/tmx.d.ts.map +1 -1
  160. package/build/loader/parsers/video.d.ts +1 -10
  161. package/build/loader/parsers/video.d.ts.map +1 -1
  162. package/build/math/color.d.ts.map +1 -1
  163. package/build/math/noise.d.ts +0 -40
  164. package/build/math/noise.d.ts.map +1 -1
  165. package/build/math/observableVector2d.d.ts +0 -3
  166. package/build/math/observableVector2d.d.ts.map +1 -1
  167. package/build/math/observableVector3d.d.ts +0 -3
  168. package/build/math/observableVector3d.d.ts.map +1 -1
  169. package/build/math/vector2d.d.ts +0 -6
  170. package/build/math/vector2d.d.ts.map +1 -1
  171. package/build/math/vertex.d.ts +25 -0
  172. package/build/math/vertex.d.ts.map +1 -1
  173. package/build/particles/emitter.d.ts +0 -65
  174. package/build/particles/emitter.d.ts.map +1 -1
  175. package/build/particles/particle.d.ts +0 -81
  176. package/build/particles/particle.d.ts.map +1 -1
  177. package/build/physics/adapter.d.ts +3 -3
  178. package/build/physics/bounds.d.ts +0 -1
  179. package/build/physics/bounds.d.ts.map +1 -1
  180. package/build/physics/broadphase/broadphase.d.ts +0 -7
  181. package/build/physics/broadphase/broadphase.d.ts.map +1 -1
  182. package/build/physics/broadphase/octree.d.ts +0 -91
  183. package/build/physics/broadphase/octree.d.ts.map +1 -1
  184. package/build/physics/broadphase/quadtree.d.ts +0 -47
  185. package/build/physics/broadphase/quadtree.d.ts.map +1 -1
  186. package/build/physics/builtin/body.d.ts +5 -69
  187. package/build/physics/builtin/body.d.ts.map +1 -1
  188. package/build/physics/builtin/detector.d.ts +0 -312
  189. package/build/physics/builtin/detector.d.ts.map +1 -1
  190. package/build/physics/builtin/sat.d.ts +1 -48
  191. package/build/physics/builtin/sat.d.ts.map +1 -1
  192. package/build/physics/builtin/sat3d.d.ts +1 -56
  193. package/build/physics/builtin/sat3d.d.ts.map +1 -1
  194. package/build/physics/collision.d.ts +0 -2
  195. package/build/physics/collision.d.ts.map +1 -1
  196. package/build/physics/response.d.ts +0 -1
  197. package/build/physics/response.d.ts.map +1 -1
  198. package/build/physics/world.d.ts.map +1 -1
  199. package/build/plugin/plugin.d.ts +9 -1
  200. package/build/plugin/plugin.d.ts.map +1 -1
  201. package/build/polyfill/index.d.ts +1 -4
  202. package/build/polyfill/index.d.ts.map +1 -1
  203. package/build/renderable/anchorPoint.d.ts +1 -73
  204. package/build/renderable/anchorPoint.d.ts.map +1 -1
  205. package/build/renderable/animation.d.ts +0 -7
  206. package/build/renderable/animation.d.ts.map +1 -1
  207. package/build/renderable/colorlayer.d.ts +0 -5
  208. package/build/renderable/colorlayer.d.ts.map +1 -1
  209. package/build/renderable/container.d.ts +0 -55
  210. package/build/renderable/container.d.ts.map +1 -1
  211. package/build/renderable/draggable.d.ts +0 -5
  212. package/build/renderable/draggable.d.ts.map +1 -1
  213. package/build/renderable/dragndrop.d.ts +1 -12
  214. package/build/renderable/dragndrop.d.ts.map +1 -1
  215. package/build/renderable/entity/entity.d.ts +0 -8
  216. package/build/renderable/entity/entity.d.ts.map +1 -1
  217. package/build/renderable/frameAnimation.d.ts +0 -41
  218. package/build/renderable/frameAnimation.d.ts.map +1 -1
  219. package/build/renderable/groundshadow.d.ts +1 -91
  220. package/build/renderable/groundshadow.d.ts.map +1 -1
  221. package/build/renderable/imagelayer.d.ts +0 -29
  222. package/build/renderable/imagelayer.d.ts.map +1 -1
  223. package/build/renderable/instanced_mesh.d.ts +26 -104
  224. package/build/renderable/instanced_mesh.d.ts.map +1 -1
  225. package/build/renderable/mesh.d.ts +145 -140
  226. package/build/renderable/mesh.d.ts.map +1 -1
  227. package/build/renderable/nineslicesprite.d.ts +0 -4
  228. package/build/renderable/nineslicesprite.d.ts.map +1 -1
  229. package/build/renderable/renderable.d.ts +17 -54
  230. package/build/renderable/renderable.d.ts.map +1 -1
  231. package/build/renderable/sprite.d.ts +7 -52
  232. package/build/renderable/sprite.d.ts.map +1 -1
  233. package/build/renderable/sprite3d.d.ts +0 -95
  234. package/build/renderable/sprite3d.d.ts.map +1 -1
  235. package/build/renderable/text/bitmaptext.d.ts +0 -14
  236. package/build/renderable/text/bitmaptext.d.ts.map +1 -1
  237. package/build/renderable/text/bitmaptextdata.d.ts +0 -22
  238. package/build/renderable/text/bitmaptextdata.d.ts.map +1 -1
  239. package/build/renderable/text/glyph.d.ts +1 -39
  240. package/build/renderable/text/glyph.d.ts.map +1 -1
  241. package/build/renderable/text/text.d.ts +0 -20
  242. package/build/renderable/text/text.d.ts.map +1 -1
  243. package/build/renderable/text/textstyle.d.ts +1 -5
  244. package/build/renderable/text/textstyle.d.ts.map +1 -1
  245. package/build/renderable/trail.d.ts +0 -29
  246. package/build/renderable/trail.d.ts.map +1 -1
  247. package/build/renderable/trigger.d.ts +0 -6
  248. package/build/renderable/trigger.d.ts.map +1 -1
  249. package/build/renderable/ui/uibaseelement.d.ts +0 -40
  250. package/build/renderable/ui/uibaseelement.d.ts.map +1 -1
  251. package/build/renderable/ui/uispriteelement.d.ts +0 -35
  252. package/build/renderable/ui/uispriteelement.d.ts.map +1 -1
  253. package/build/state/stage.d.ts +4 -68
  254. package/build/state/stage.d.ts.map +1 -1
  255. package/build/state/state.d.ts.map +1 -1
  256. package/build/system/device.d.ts +0 -12
  257. package/build/system/device.d.ts.map +1 -1
  258. package/build/system/dom.d.ts +1 -8
  259. package/build/system/dom.d.ts.map +1 -1
  260. package/build/system/event.d.ts +1 -1
  261. package/build/system/legacy_pool.d.ts +1 -6
  262. package/build/system/legacy_pool.d.ts.map +1 -1
  263. package/build/system/platform.d.ts +21 -2
  264. package/build/system/platform.d.ts.map +1 -1
  265. package/build/system/pool.d.ts +0 -9
  266. package/build/system/pool.d.ts.map +1 -1
  267. package/build/system/save.d.ts.map +1 -1
  268. package/build/system/timer.d.ts +0 -20
  269. package/build/system/timer.d.ts.map +1 -1
  270. package/build/tweens/tween.d.ts +0 -62
  271. package/build/tweens/tween.d.ts.map +1 -1
  272. package/build/utils/array-multimap.d.ts +1 -13
  273. package/build/utils/array-multimap.d.ts.map +1 -1
  274. package/build/utils/decode.d.ts.map +1 -1
  275. package/build/utils/fetchdata.d.ts +2 -0
  276. package/build/utils/fetchdata.d.ts.map +1 -0
  277. package/build/utils/utils.d.ts +0 -13
  278. package/build/utils/utils.d.ts.map +1 -1
  279. package/build/video/blendmodes.d.ts +1 -106
  280. package/build/video/blendmodes.d.ts.map +1 -1
  281. package/build/video/buffer/index.d.ts +1 -39
  282. package/build/video/buffer/index.d.ts.map +1 -1
  283. package/build/video/buffer/vertex.d.ts +1 -82
  284. package/build/video/buffer/vertex.d.ts.map +1 -1
  285. package/build/video/canvas/canvas_renderer.d.ts +7 -25
  286. package/build/video/canvas/canvas_renderer.d.ts.map +1 -1
  287. package/build/video/canvas_factory.d.ts +1 -24
  288. package/build/video/canvas_factory.d.ts.map +1 -1
  289. package/build/video/effects/blendEffect.d.ts +0 -54
  290. package/build/video/effects/blendEffect.d.ts.map +1 -1
  291. package/build/video/effects/blur.d.ts +4 -4
  292. package/build/video/effects/blur.d.ts.map +1 -1
  293. package/build/video/effects/chromaticAberration.d.ts +5 -5
  294. package/build/video/effects/chromaticAberration.d.ts.map +1 -1
  295. package/build/video/effects/colorMatrix.d.ts +5 -15
  296. package/build/video/effects/colorMatrix.d.ts.map +1 -1
  297. package/build/video/effects/desaturate.d.ts +5 -5
  298. package/build/video/effects/desaturate.d.ts.map +1 -1
  299. package/build/video/effects/dissolve.d.ts +4 -4
  300. package/build/video/effects/dissolve.d.ts.map +1 -1
  301. package/build/video/effects/dropShadow.d.ts +5 -5
  302. package/build/video/effects/dropShadow.d.ts.map +1 -1
  303. package/build/video/effects/flash.d.ts +4 -4
  304. package/build/video/effects/flash.d.ts.map +1 -1
  305. package/build/video/effects/glow.d.ts +5 -5
  306. package/build/video/effects/glow.d.ts.map +1 -1
  307. package/build/video/effects/glsl_realization.d.ts +1 -17
  308. package/build/video/effects/glsl_realization.d.ts.map +1 -1
  309. package/build/video/effects/hologram.d.ts +4 -4
  310. package/build/video/effects/hologram.d.ts.map +1 -1
  311. package/build/video/effects/invert.d.ts +5 -5
  312. package/build/video/effects/invert.d.ts.map +1 -1
  313. package/build/video/effects/outline.d.ts +6 -6
  314. package/build/video/effects/outline.d.ts.map +1 -1
  315. package/build/video/effects/pixelate.d.ts +4 -4
  316. package/build/video/effects/pixelate.d.ts.map +1 -1
  317. package/build/video/effects/radialGradient.d.ts +2 -3
  318. package/build/video/effects/radialGradient.d.ts.map +1 -1
  319. package/build/video/effects/scanline.d.ts +6 -6
  320. package/build/video/effects/scanline.d.ts.map +1 -1
  321. package/build/video/effects/sepia.d.ts +5 -5
  322. package/build/video/effects/sepia.d.ts.map +1 -1
  323. package/build/video/effects/shadereffect.d.ts +12 -123
  324. package/build/video/effects/shadereffect.d.ts.map +1 -1
  325. package/build/video/effects/shine.d.ts +3 -3
  326. package/build/video/effects/shine.d.ts.map +1 -1
  327. package/build/video/effects/tintPulse.d.ts +4 -4
  328. package/build/video/effects/tintPulse.d.ts.map +1 -1
  329. package/build/video/effects/vignette.d.ts +6 -6
  330. package/build/video/effects/vignette.d.ts.map +1 -1
  331. package/build/video/effects/wave.d.ts +4 -4
  332. package/build/video/effects/wave.d.ts.map +1 -1
  333. package/build/video/effects/wgsl/layout.d.ts +1 -27
  334. package/build/video/effects/wgsl/layout.d.ts.map +1 -1
  335. package/build/video/effects/wgsl/parse.d.ts +1 -8
  336. package/build/video/effects/wgsl/parse.d.ts.map +1 -1
  337. package/build/video/effects/wgsl/scaffold.d.ts +1 -42
  338. package/build/video/effects/wgsl/scaffold.d.ts.map +1 -1
  339. package/build/video/effects/wgsl_realization.d.ts +1 -82
  340. package/build/video/effects/wgsl_realization.d.ts.map +1 -1
  341. package/build/video/gpu/batcher.d.ts +1 -13
  342. package/build/video/gpu/batcher.d.ts.map +1 -1
  343. package/build/video/gpu/instancerecord.d.ts +1 -163
  344. package/build/video/gpu/instancerecord.d.ts.map +1 -1
  345. package/build/video/gpu/meshchunk.d.ts +1 -48
  346. package/build/video/gpu/meshchunk.d.ts.map +1 -1
  347. package/build/video/gpu/meshvertex.d.ts +1 -53
  348. package/build/video/gpu/meshvertex.d.ts.map +1 -1
  349. package/build/video/gpu/primitives.d.ts +1 -59
  350. package/build/video/gpu/primitives.d.ts.map +1 -1
  351. package/build/video/gpu/quadcorners.d.ts +1 -10
  352. package/build/video/gpu/quadcorners.d.ts.map +1 -1
  353. package/build/video/gpu/textureslots.d.ts +1 -121
  354. package/build/video/gpu/textureslots.d.ts.map +1 -1
  355. package/build/video/gpu/texturestore.d.ts +1 -138
  356. package/build/video/gpu/texturestore.d.ts.map +1 -1
  357. package/build/video/gpu/topology.d.ts.map +1 -1
  358. package/build/video/gpu/vertexformat.d.ts +0 -28
  359. package/build/video/gpu/vertexformat.d.ts.map +1 -1
  360. package/build/video/gradient.d.ts +0 -81
  361. package/build/video/gradient.d.ts.map +1 -1
  362. package/build/video/renderer.d.ts +21 -102
  363. package/build/video/renderer.d.ts.map +1 -1
  364. package/build/video/renderstate.d.ts +0 -51
  365. package/build/video/renderstate.d.ts.map +1 -1
  366. package/build/video/rendertarget/canvasrendertarget.d.ts +0 -10
  367. package/build/video/rendertarget/canvasrendertarget.d.ts.map +1 -1
  368. package/build/video/rendertarget/render_target_pool.d.ts +1 -82
  369. package/build/video/rendertarget/render_target_pool.d.ts.map +1 -1
  370. package/build/video/rendertarget/webglrendertarget.d.ts +1 -64
  371. package/build/video/rendertarget/webglrendertarget.d.ts.map +1 -1
  372. package/build/video/rendertarget/webgpurendertarget.d.ts +0 -8
  373. package/build/video/rendertarget/webgpurendertarget.d.ts.map +1 -1
  374. package/build/video/texture/atlas.d.ts +2 -76
  375. package/build/video/texture/atlas.d.ts.map +1 -1
  376. package/build/video/texture/cache.d.ts +0 -136
  377. package/build/video/texture/cache.d.ts.map +1 -1
  378. package/build/video/texture/frametexture.d.ts +1 -71
  379. package/build/video/texture/frametexture.d.ts.map +1 -1
  380. package/build/video/texture/noise_texture2d.d.ts +0 -43
  381. package/build/video/texture/noise_texture2d.d.ts.map +1 -1
  382. package/build/video/texture/parser/aseprite.d.ts +1 -8
  383. package/build/video/texture/parser/aseprite.d.ts.map +1 -1
  384. package/build/video/texture/parser/spritesheet.d.ts +1 -8
  385. package/build/video/texture/parser/spritesheet.d.ts.map +1 -1
  386. package/build/video/texture/parser/texturepacker.d.ts +1 -8
  387. package/build/video/texture/parser/texturepacker.d.ts.map +1 -1
  388. package/build/video/texture/resource.d.ts +0 -9
  389. package/build/video/texture/resource.d.ts.map +1 -1
  390. package/build/video/texture/texture2d.d.ts +0 -11
  391. package/build/video/texture/texture2d.d.ts.map +1 -1
  392. package/build/video/utils/autodetect.d.ts +1 -5
  393. package/build/video/utils/autodetect.d.ts.map +1 -1
  394. package/build/video/webgl/batchers/batcher.d.ts +0 -55
  395. package/build/video/webgl/batchers/batcher.d.ts.map +1 -1
  396. package/build/video/webgl/batchers/lit_mesh_batcher.d.ts +0 -14
  397. package/build/video/webgl/batchers/lit_mesh_batcher.d.ts.map +1 -1
  398. package/build/video/webgl/batchers/lit_quad_batcher.d.ts +0 -72
  399. package/build/video/webgl/batchers/lit_quad_batcher.d.ts.map +1 -1
  400. package/build/video/webgl/batchers/material_batcher.d.ts +0 -89
  401. package/build/video/webgl/batchers/material_batcher.d.ts.map +1 -1
  402. package/build/video/webgl/batchers/mesh_batcher.d.ts +14 -343
  403. package/build/video/webgl/batchers/mesh_batcher.d.ts.map +1 -1
  404. package/build/video/webgl/batchers/primitive_batcher.d.ts +0 -10
  405. package/build/video/webgl/batchers/primitive_batcher.d.ts.map +1 -1
  406. package/build/video/webgl/batchers/quad_batcher.d.ts +0 -30
  407. package/build/video/webgl/batchers/quad_batcher.d.ts.map +1 -1
  408. package/build/video/webgl/buffer/index.d.ts +1 -36
  409. package/build/video/webgl/buffer/index.d.ts.map +1 -1
  410. package/build/video/webgl/buffer/instance_buffer.d.ts +1 -53
  411. package/build/video/webgl/buffer/instance_buffer.d.ts.map +1 -1
  412. package/build/video/webgl/buffer/retained_geometry.d.ts +1 -81
  413. package/build/video/webgl/buffer/retained_geometry.d.ts.map +1 -1
  414. package/build/video/webgl/buffer/uniformblock.d.ts +1 -80
  415. package/build/video/webgl/buffer/uniformblock.d.ts.map +1 -1
  416. package/build/video/webgl/buffer/vertexstate.d.ts +1 -100
  417. package/build/video/webgl/buffer/vertexstate.d.ts.map +1 -1
  418. package/build/video/webgl/glshader.d.ts +2 -51
  419. package/build/video/webgl/glshader.d.ts.map +1 -1
  420. package/build/video/webgl/lighting/pack3d.d.ts +1 -47
  421. package/build/video/webgl/lighting/pack3d.d.ts.map +1 -1
  422. package/build/video/webgl/lighting/std140.d.ts +1 -109
  423. package/build/video/webgl/lighting/std140.d.ts.map +1 -1
  424. package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts +1 -103
  425. package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
  426. package/build/video/webgl/shaders/multitexture-lit.d.ts +1 -26
  427. package/build/video/webgl/shaders/multitexture-lit.d.ts.map +1 -1
  428. package/build/video/webgl/shaders/multitexture.d.ts +1 -9
  429. package/build/video/webgl/shaders/multitexture.d.ts.map +1 -1
  430. package/build/video/webgl/texture/store.d.ts +1 -50
  431. package/build/video/webgl/texture/store.d.ts.map +1 -1
  432. package/build/video/webgl/utils/attributes.d.ts +1 -11
  433. package/build/video/webgl/utils/attributes.d.ts.map +1 -1
  434. package/build/video/webgl/utils/maxtextures.d.ts +1 -36
  435. package/build/video/webgl/utils/maxtextures.d.ts.map +1 -1
  436. package/build/video/webgl/utils/precision.d.ts +1 -14
  437. package/build/video/webgl/utils/precision.d.ts.map +1 -1
  438. package/build/video/webgl/utils/program.d.ts +1 -5
  439. package/build/video/webgl/utils/program.d.ts.map +1 -1
  440. package/build/video/webgl/utils/samplercache.d.ts +1 -68
  441. package/build/video/webgl/utils/samplercache.d.ts.map +1 -1
  442. package/build/video/webgl/utils/string.d.ts +1 -21
  443. package/build/video/webgl/utils/string.d.ts.map +1 -1
  444. package/build/video/webgl/utils/topology.d.ts +1 -23
  445. package/build/video/webgl/utils/topology.d.ts.map +1 -1
  446. package/build/video/webgl/utils/uniforms.d.ts +1 -25
  447. package/build/video/webgl/utils/uniforms.d.ts.map +1 -1
  448. package/build/video/webgl/utils/vertexformat.d.ts +1 -26
  449. package/build/video/webgl/utils/vertexformat.d.ts.map +1 -1
  450. package/build/video/webgl/webgl_renderer.d.ts +24 -286
  451. package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
  452. package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts +0 -6
  453. package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts.map +1 -1
  454. package/build/video/webgpu/batchers/lit_quad_batcher.d.ts +0 -8
  455. package/build/video/webgpu/batchers/lit_quad_batcher.d.ts.map +1 -1
  456. package/build/video/webgpu/batchers/mesh_batcher.d.ts +1 -230
  457. package/build/video/webgpu/batchers/mesh_batcher.d.ts.map +1 -1
  458. package/build/video/webgpu/batchers/primitive_batcher.d.ts.map +1 -1
  459. package/build/video/webgpu/batchers/quad_batcher.d.ts +0 -82
  460. package/build/video/webgpu/batchers/quad_batcher.d.ts.map +1 -1
  461. package/build/video/webgpu/buffer/arena.d.ts +1 -63
  462. package/build/video/webgpu/buffer/arena.d.ts.map +1 -1
  463. package/build/video/webgpu/buffer/instance_buffer.d.ts +1 -64
  464. package/build/video/webgpu/buffer/instance_buffer.d.ts.map +1 -1
  465. package/build/video/webgpu/buffer/retained_geometry.d.ts +1 -54
  466. package/build/video/webgpu/buffer/retained_geometry.d.ts.map +1 -1
  467. package/build/video/webgpu/buffer/uniformring.d.ts +1 -67
  468. package/build/video/webgpu/buffer/uniformring.d.ts.map +1 -1
  469. package/build/video/webgpu/effect_binding.d.ts +1 -16
  470. package/build/video/webgpu/effect_binding.d.ts.map +1 -1
  471. package/build/video/webgpu/pipeline/bindgroups.d.ts +1 -32
  472. package/build/video/webgpu/pipeline/bindgroups.d.ts.map +1 -1
  473. package/build/video/webgpu/pipeline/cache.d.ts +1 -163
  474. package/build/video/webgpu/pipeline/cache.d.ts.map +1 -1
  475. package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts +1 -87
  476. package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
  477. package/build/video/webgpu/shaders/mesh-instanced.d.ts +1 -43
  478. package/build/video/webgpu/shaders/mesh-instanced.d.ts.map +1 -1
  479. package/build/video/webgpu/texture/compressed.d.ts +1 -32
  480. package/build/video/webgpu/texture/compressed.d.ts.map +1 -1
  481. package/build/video/webgpu/texture/frametexture.d.ts +1 -62
  482. package/build/video/webgpu/texture/frametexture.d.ts.map +1 -1
  483. package/build/video/webgpu/texture/store.d.ts +1 -147
  484. package/build/video/webgpu/texture/store.d.ts.map +1 -1
  485. package/build/video/webgpu/webgpu_renderer.d.ts +2 -89
  486. package/build/video/webgpu/webgpu_renderer.d.ts.map +1 -1
  487. package/package.json +8 -11
  488. package/skills/AGENTS.md +67 -0
  489. package/skills/melonjs/SKILL.md +156 -0
  490. package/skills/melonjs-20-migration/SKILL.md +160 -0
  491. package/skills/melonjs-3d/SKILL.md +525 -0
  492. package/skills/melonjs-3d-assets/SKILL.md +258 -0
  493. package/skills/melonjs-audio/SKILL.md +236 -0
  494. package/skills/melonjs-camera-and-drawing/SKILL.md +175 -0
  495. package/skills/melonjs-deployment/SKILL.md +113 -0
  496. package/skills/melonjs-effects-and-shaders/SKILL.md +178 -0
  497. package/skills/melonjs-events/SKILL.md +159 -0
  498. package/skills/melonjs-getting-started/SKILL.md +183 -0
  499. package/skills/melonjs-input/SKILL.md +166 -0
  500. package/skills/melonjs-lighting/SKILL.md +139 -0
  501. package/skills/melonjs-loading-assets/SKILL.md +186 -0
  502. package/skills/melonjs-particles-and-trails/SKILL.md +136 -0
  503. package/skills/melonjs-performance/SKILL.md +183 -0
  504. package/skills/melonjs-physics/SKILL.md +321 -0
  505. package/skills/melonjs-plugins/SKILL.md +191 -0
  506. package/skills/melonjs-renderables/SKILL.md +214 -0
  507. package/skills/melonjs-renderer-backends/SKILL.md +173 -0
  508. package/skills/melonjs-scenes-and-state/SKILL.md +180 -0
  509. package/skills/melonjs-sprites-and-animation/SKILL.md +173 -0
  510. package/skills/melonjs-tilemaps/SKILL.md +213 -0
  511. package/skills/melonjs-ui-and-text/SKILL.md +65 -0
  512. package/build/audio/backend.d.ts +0 -140
  513. package/build/audio/backend.d.ts.map +0 -1
  514. package/build/loader/parsers/fetchdata.d.ts +0 -32
  515. package/build/loader/parsers/fetchdata.d.ts.map +0 -1
@@ -1,8 +1,6 @@
1
1
  export namespace level {
2
2
  /**
3
3
  * add a level into the game manager (usually called by the preloader)
4
- * @name add
5
- * @memberof level
6
4
  * @public
7
5
  * @param {string} format - level format ("tmx" for Tiled maps, "gltf" / "glb" for 3D scenes)
8
6
  * @param {string} levelId - the level id (or name)
@@ -11,76 +9,58 @@ export namespace level {
11
9
  */
12
10
  function add(format: string, levelId: string, callback?: Function): boolean;
13
11
  /**
14
- * load a level into the game manager<br>
12
+ * load a level into the game manager, and return a promise that settles once
13
+ * it is actually in the world<br>
15
14
  * (will also create all level defined entities, etc..)
16
- * @name load
17
- * @memberof level
18
- * @public
15
+ *
16
+ * `options.onLoaded` still fires, so the two forms mix freely. An unknown
17
+ * `levelId` throws SYNCHRONOUSLY rather than rejecting — that is a typo, not
18
+ * a load failure, and it should not need `await` to surface.
19
+ * @overload
19
20
  * @param {string} levelId - level id
20
- * @param {object} [options] - additional optional parameters
21
- * @param {Container} [options.container=game.world] - container in which to load the specified level
22
- * @param {Function} [options.onLoaded=game.onLevelLoaded] - callback for when the level is fully loaded
23
- * @param {boolean} [options.flatten=game.mergeGroup] - (TMX only) if true, flatten all objects into the given container
24
- * @param {boolean} [options.setViewportBounds=true] - (TMX only) if true, set the viewport bounds to the map size
25
- * @param {number} [options.scale=1] - (glTF/GLB only) pixels per glTF unit applied to the whole scene
26
- * @param {boolean} [options.rightHanded=true] - (glTF/GLB only) convert the right-handed (Y-up) source to the engine's Y-down via a rotation rather than a mirror
27
- * @param {boolean} [options.lights=true] - (glTF/GLB only) add the scene's authored `KHR_lights_punctual` lights (plus a soft ambient fill) as {@link Light3d} world children; each carries its authored name for `getChildByName` lookups
28
- * @param {number} [options.lightIntensityScale] - (glTF/GLB only) multiply each light's authored physical intensity (lux/candela) by this factor instead of normalizing it to 1 — see {@link GLTFScene#addTo}
29
- * @param {boolean} [options.castGroundShadow] - (glTF/GLB only) give this scene's meshes a ground shadow ({@link Mesh#castGroundShadow}). Overrides the application's `castGroundShadow` setting for this scene, in both directions; omit it to inherit. As a scene-wide opt-in it skips nodes with no vertical extent — a scene's ground plane is exactly that, and shadowing it with itself smears a blob across the whole floor
30
- * @param {number} [options.shadowGroundY] - (glTF/GLB only) world Y of the floor those shadows land on ({@link Mesh#shadowGroundY}); omit it and each blob sits at its own object's base at full strength, which is right for a scene whose props already rest on the ground
31
- * @returns {boolean} true if the level was successfully loaded
21
+ * @param {LevelLoadOptions & { async: true }} options - load options, with `async` set
22
+ * @returns {Promise<boolean>} resolves `true` once the level is in the world
32
23
  * @example
33
- * // the game assets to be be preloaded
34
- * // TMX maps
35
- * let resources = [
36
- * {name: "a4_level1", type: "tmx", src: "data/level/a4_level1.tmx"},
37
- * {name: "a4_level2", type: "tmx", src: "data/level/a4_level2.tmx"},
38
- * {name: "a4_level3", type: "tmx", src: "data/level/a4_level3.tmx"},
39
- * // ...
40
- * ];
24
+ * await me.loader.preload(game.assets);
25
+ * await me.level.load("a4_level1", { async: true });
26
+ * // the world is populated here
27
+ * @category Level
28
+ */
29
+ function load(levelId: string, options: LevelLoadOptions & {
30
+ async: true;
31
+ }): Promise<boolean>;
32
+ /**
33
+ * load a level into the game manager<br>
34
+ * (will also create all level defined entities, etc..)
41
35
  *
42
- * // ...
36
+ * While the game loop is running the load is DEFERRED to a timer, so this
37
+ * returns before anything is in the world. Sequence follow-up work from
38
+ * `options.onLoaded`, from an `event.LEVEL_LOADED` listener, or by passing
39
+ * `async: true` and awaiting the promise that overload returns.
43
40
  *
44
- * // load a level into the game world
41
+ * Note that `await me.level.load(id)` without `async: true` does not await
42
+ * the load: the call returns a boolean, and `await true` resolves at once.
43
+ * @overload
44
+ * @param {string} levelId - level id
45
+ * @param {LevelLoadOptions & { async?: false }} [options] - additional optional parameters
46
+ * @returns {boolean} `true`
47
+ * @example
48
+ * // load a level
45
49
  * me.level.load("a4_level1");
46
- * ...
47
- * ...
48
- * // load a level into a specific container
49
- * let levelContainer = new me.Container();
50
- * me.level.load("a4_level2", {container:levelContainer});
51
- * // add a simple transformation
52
- * levelContainer.translate(levelContainer.width / 2, levelContainer.height / 2 );
53
- * levelContainer.rotate(0.05);
54
- * levelContainer.translate(-levelContainer.width / 2, -levelContainer.height / 2 );
55
- * // add it to the game world
56
- * app.world.addChild(levelContainer);
57
50
  *
58
- * // load a glTF/GLB scene (preloaded with type "glb") under a Camera3d:
59
- * // 50 pixels per glTF unit, authored lux/candela intensities kept at
60
- * // a 1/1000 scale instead of being normalized to 1
51
+ * // load into a specific container
52
+ * me.level.load("a4_level2", { container: levelContainer });
53
+ *
54
+ * // a glTF/GLB scene (preloaded with type "glb") under a Camera3d:
55
+ * // 50 pixels per glTF unit, authored intensities kept at a 1/1000 scale
61
56
  * me.level.load("diorama", { scale: 50, lightIntensityScale: 0.001 });
62
- * // …and give every prop in it a ground shadow landing on the floor at y = 0
63
- * // (the scene's own ground plane is skipped — it has no height to cast)
64
- * me.level.load("diorama", { scale: 50, castGroundShadow: true, shadowGroundY: 0 });
65
- * // the authored lights are world children — grab the sun for a day/night cycle
66
- * const sun = app.world.getChildByName("Sun")[0];
67
- */
68
- function load(levelId: string, options?: {
69
- container?: any;
70
- onLoaded?: Function | undefined;
71
- flatten?: boolean | undefined;
72
- setViewportBounds?: boolean | undefined;
73
- scale?: number | undefined;
74
- rightHanded?: boolean | undefined;
75
- lights?: boolean | undefined;
76
- lightIntensityScale?: number | undefined;
77
- castGroundShadow?: boolean | undefined;
78
- shadowGroundY?: number | undefined;
79
- }): boolean;
57
+ * @category Level
58
+ */
59
+ function load(levelId: string, options?: (LevelLoadOptions & {
60
+ async?: false;
61
+ }) | undefined): boolean;
80
62
  /**
81
63
  * return the current level id<br>
82
- * @name getCurrentLevelId
83
- * @memberof level
84
64
  * @public
85
65
  * @returns {string}
86
66
  */
@@ -89,69 +69,171 @@ export namespace level {
89
69
  * return the current level definition.
90
70
  * for a reference to the live instantiated level,
91
71
  * rather use the container in which it was loaded (e.g. app.world)
92
- * @name getCurrentLevel
93
- * @memberof level
94
72
  * @public
95
73
  * @returns {TMXTileMap|GLTFScene} the current level object (a TMXTileMap for Tiled maps, a GLTFScene for glTF/GLB scenes)
96
74
  */
97
75
  function getCurrentLevel(): TMXTileMap | GLTFScene;
98
76
  /**
99
- * reload the current level
100
- * @name reload
101
- * @memberof level
102
- * @public
103
- * @param {object} [options] - additional optional parameters
104
- * @param {Container} [options.container=game.world] - container in which to load the specified level
105
- * @param {Function} [options.onLoaded=game.onLevelLoaded] - callback for when the level is fully loaded
106
- * @param {boolean} [options.flatten=game.mergeGroup] - if true, flatten all objects into the given container
107
- * @returns {object} the current level
108
- */
109
- function reload(options?: {
110
- container?: any;
111
- onLoaded?: Function | undefined;
112
- flatten?: boolean | undefined;
113
- }): object;
114
- /**
115
- * load the next level
116
- * @name next
117
- * @memberof level
118
- * @public
119
- * @param {object} [options] - additional optional parameters
120
- * @param {Container} [options.container=game.world] - container in which to load the specified level
121
- * @param {Function} [options.onLoaded=game.onLevelLoaded] - callback for when the level is fully loaded
122
- * @param {boolean} [options.flatten=game.mergeGroup] - if true, flatten all objects into the given container
123
- * @returns {boolean} true if the next level was successfully loaded
124
- */
125
- function next(options?: {
126
- container?: any;
127
- onLoaded?: Function | undefined;
128
- flatten?: boolean | undefined;
129
- }): boolean;
130
- /**
131
- * load the previous level<br>
132
- * @name previous
133
- * @memberof level
134
- * @public
135
- * @param {object} [options] - additional optional parameters
136
- * @param {Container} [options.container=game.world] - container in which to load the specified level
137
- * @param {Function} [options.onLoaded=game.onLevelLoaded] - callback for when the level is fully loaded
138
- * @param {boolean} [options.flatten=game.mergeGroup] - if true, flatten all objects into the given container
139
- * @returns {boolean} true if the previous level was successfully loaded
140
- */
141
- function previous(options?: {
142
- container?: any;
143
- onLoaded?: Function | undefined;
144
- flatten?: boolean | undefined;
145
- }): boolean;
77
+ * reload the current level, and return a promise that settles once the level is in the world.
78
+ *
79
+ * @overload
80
+ * @param {LevelLoadOptions & { async: true }} options - load options, with `async` set
81
+ * @returns {Promise<boolean>} resolves `true` once the level is back in the world
82
+ * @example
83
+ * await me.level.reload({ async: true });
84
+ * @category Level
85
+ */
86
+ function reload(options: LevelLoadOptions & {
87
+ async: true;
88
+ }): Promise<boolean>;
89
+ /**
90
+ * reload the current level.
91
+ *
92
+ * While the game loop is running the load is deferred to a timer, so this
93
+ * returns before anything is in the world — see {@link level.load}.
94
+ * @overload
95
+ * @param {LevelLoadOptions & { async?: false }} [options] - additional optional parameters
96
+ * @returns {boolean} `true`
97
+ * @category Level
98
+ */
99
+ function reload(options?: (LevelLoadOptions & {
100
+ async?: false;
101
+ }) | undefined): boolean;
102
+ /**
103
+ * load the next level, and return a promise that settles once the level is in the world.
104
+ *
105
+ * With no level to go to this reports `false` WITHOUT loading anything, and
106
+ * the promise form resolves `false` rather than rejecting: running out of
107
+ * levels is an ordinary outcome, not an error.
108
+ *
109
+ * @overload
110
+ * @param {LevelLoadOptions & { async: true }} options - load options, with `async` set
111
+ * @returns {Promise<boolean>} resolves `true`, or `false` if there is no next level
112
+ * @example
113
+ * await me.level.next({ async: true });
114
+ * @category Level
115
+ */
116
+ function next(options: LevelLoadOptions & {
117
+ async: true;
118
+ }): Promise<boolean>;
119
+ /**
120
+ * load the next level.
121
+ *
122
+ * With no level to go to this reports `false` WITHOUT loading anything, and
123
+ * the promise form resolves `false` rather than rejecting: running out of
124
+ * levels is an ordinary outcome, not an error.
125
+ *
126
+ * While the game loop is running the load is deferred to a timer, so this
127
+ * returns before anything is in the world — see {@link level.load}.
128
+ * @overload
129
+ * @param {LevelLoadOptions & { async?: false }} [options] - additional optional parameters
130
+ * @returns {boolean} `true` if the next level was loaded, `false` if there is none
131
+ * @category Level
132
+ */
133
+ function next(options?: (LevelLoadOptions & {
134
+ async?: false;
135
+ }) | undefined): boolean;
136
+ /**
137
+ * load the previous level, and return a promise that settles once the level is in the world.
138
+ *
139
+ * With no level to go to this reports `false` WITHOUT loading anything, and
140
+ * the promise form resolves `false` rather than rejecting: running out of
141
+ * levels is an ordinary outcome, not an error.
142
+ *
143
+ * @overload
144
+ * @param {LevelLoadOptions & { async: true }} options - load options, with `async` set
145
+ * @returns {Promise<boolean>} resolves `true`, or `false` if there is no previous level
146
+ * @example
147
+ * await me.level.previous({ async: true });
148
+ * @category Level
149
+ */
150
+ function previous(options: LevelLoadOptions & {
151
+ async: true;
152
+ }): Promise<boolean>;
153
+ /**
154
+ * load the previous level.
155
+ *
156
+ * With no level to go to this reports `false` WITHOUT loading anything, and
157
+ * the promise form resolves `false` rather than rejecting: running out of
158
+ * levels is an ordinary outcome, not an error.
159
+ *
160
+ * While the game loop is running the load is deferred to a timer, so this
161
+ * returns before anything is in the world — see {@link level.load}.
162
+ * @overload
163
+ * @param {LevelLoadOptions & { async?: false }} [options] - additional optional parameters
164
+ * @returns {boolean} `true` if the previous level was loaded, `false` if there is none
165
+ * @category Level
166
+ */
167
+ function previous(options?: (LevelLoadOptions & {
168
+ async?: false;
169
+ }) | undefined): boolean;
146
170
  /**
147
171
  * return the amount of level preloaded
148
- * @name levelCount
149
- * @memberof level
150
172
  * @public
151
173
  * @returns {number} the amount of level preloaded
152
174
  */
153
175
  function levelCount(): number;
154
176
  }
177
+ /**
178
+ * Options accepted by every level-loading call.
179
+ *
180
+ * `async` is the switch that decides what the call HANDS BACK: leave it out and
181
+ * you get the boolean these calls have always returned, set it and you get a
182
+ * promise that settles once the level is actually in the world. Everything else
183
+ * behaves identically either way, `onLoaded` included.
184
+ *
185
+ * Awaiting a call WITHOUT `async: true` is not an error, but it is not a wait
186
+ * either: the call hands back a boolean, and `await true` resolves immediately.
187
+ * While the loop is running the load is deferred onto a timer, so it has NOT
188
+ * happened by the time such an `await` resumes. Pass the flag when you mean to
189
+ * await.
190
+ */
191
+ export type LevelLoadOptions = {
192
+ /**
193
+ * - container in which to load the specified level
194
+ */
195
+ container?: Container;
196
+ /**
197
+ * - callback for when the level is fully loaded, called in both forms
198
+ */
199
+ onLoaded?: Function;
200
+ /**
201
+ * - return a promise that settles once the level is in the world, instead of a boolean
202
+ */
203
+ async?: boolean;
204
+ /**
205
+ * - (TMX only) if true, flatten all objects into the given container
206
+ */
207
+ flatten?: boolean;
208
+ /**
209
+ * - (TMX only) if true, set the viewport bounds to the map size
210
+ */
211
+ setViewportBounds?: boolean;
212
+ /**
213
+ * - (glTF/GLB only) pixels per glTF unit applied to the whole scene
214
+ */
215
+ scale?: number;
216
+ /**
217
+ * - (glTF/GLB only) convert the right-handed (Y-up) source to the engine's Y-down via a rotation rather than a mirror
218
+ */
219
+ rightHanded?: boolean;
220
+ /**
221
+ * - (glTF/GLB only) add the scene's authored `KHR_lights_punctual` lights (plus a soft ambient fill) as {@link Light3d} world children
222
+ */
223
+ lights?: boolean;
224
+ /**
225
+ * - (glTF/GLB only) multiply each light's authored physical intensity by this factor instead of normalizing it to 1
226
+ */
227
+ lightIntensityScale?: number;
228
+ /**
229
+ * - (glTF/GLB only) give every mesh in the scene a ground shadow; omit to inherit the application's `castGroundShadow` setting (on by default)
230
+ */
231
+ castGroundShadow?: boolean;
232
+ /**
233
+ * - (glTF/GLB only) world Y the ground shadows land on
234
+ */
235
+ shadowGroundY?: number;
236
+ };
155
237
  import TMXTileMap from "./tiled/TMXTileMap.js";
156
238
  import GLTFScene from "./gltf/GLTFScene.js";
157
239
  //# sourceMappingURL=level.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"level.d.ts","sourceRoot":"","sources":["../../src/level/level.js"],"names":[],"mappings":";IA4FC;;;;;;;;;OASG;IACH,qBALW,MAAM,WACN,MAAM,wBAEJ,OAAO,CAkCnB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsDG;IACH,uBAjDW,MAAM,YAEd;QAA4B,SAAS;QACV,QAAQ;QACT,OAAO;QACP,iBAAiB;QAClB,KAAK;QACJ,WAAW;QACX,MAAM;QACP,mBAAmB;QAClB,gBAAgB;QACjB,aAAa;KACtC,GAAU,OAAO,CAoEnB;IAED;;;;;;OAMG;IACH,8BAFa,MAAM,CAIlB;IAED;;;;;;;;OAQG;IACH,4BAFa,UAAU,GAAC,SAAS,CAIhC;IAED;;;;;;;;;;OAUG;IACH,0BALG;QAA4B,SAAS;QACV,QAAQ;QACT,OAAO;KACjC,GAAU,MAAM,CAMlB;IAED;;;;;;;;;;OAUG;IACH,wBALG;QAA4B,SAAS;QACV,QAAQ;QACT,OAAO;KACjC,GAAU,OAAO,CASnB;IAED;;;;;;;;;;OAUG;IACH,4BALG;QAA4B,SAAS;QACV,QAAQ;QACT,OAAO;KACjC,GAAU,OAAO,CASnB;IAED;;;;;;OAMG;IACH,uBAFa,MAAM,CAIlB;;uBApTqB,uBAAuB;sBADxB,qBAAqB"}
1
+ {"version":3,"file":"level.d.ts","sourceRoot":"","sources":["../../src/level/level.js"],"names":[],"mappings":";IAsIC;;;;;;;OAOG;IACH,qBALW,MAAM,WACN,MAAM,wBAEJ,OAAO,CAkCnB;;;;;;;;;;;;;;;;;;;IAUE,uBACQ,MAAM,WACN,gBAAgB,GAAG;QAAE,KAAK,EAAE,IAAI,CAAA;KAAE,GAChC,OAAO,CAAC,OAAO,CAAC,CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBA,uBACQ,MAAM;gBACuB,KAAK;qBAChC,OAAO,CACjB;IA4FH;;;;OAIG;IACH,8BAFa,MAAM,CAIlB;IAED;;;;;;OAMG;IACH,4BAFa,UAAU,GAAC,SAAS,CAIhC;;;;;;;;;;;IAKE,yBACQ,gBAAgB,GAAG;QAAE,KAAK,EAAE,IAAI,CAAA;KAAE,GAChC,OAAO,CAAC,OAAO,CAAC,CAC1B;;;;;;;;;;;IASA;gBACqC,KAAK;qBAChC,OAAO,CACjB;;;;;;;;;;;;;;;IAoBA,uBACQ,gBAAgB,GAAG;QAAE,KAAK,EAAE,IAAI,CAAA;KAAE,GAChC,OAAO,CAAC,OAAO,CAAC,CAC1B;;;;;;;;;;;;;;;IAaA;gBACqC,KAAK;qBAChC,OAAO,CACjB;;;;;;;;;;;;;;;IAsBA,2BACQ,gBAAgB,GAAG;QAAE,KAAK,EAAE,IAAI,CAAA;KAAE,GAChC,OAAO,CAAC,OAAO,CAAC,CAC1B;;;;;;;;;;;;;;;IAaA;gBACqC,KAAK;qBAChC,OAAO,CACjB;IAeH;;;;OAIG;IACH,uBAFa,MAAM,CAIlB;;;;;;;;;;;;;;;;;;;;gBAtUY,SAAS;;;;;;;;YAET,OAAO;;;;cACP,OAAO;;;;wBACP,OAAO;;;;YACP,MAAM;;;;kBACN,OAAO;;;;aACP,OAAO;;;;0BACP,MAAM;;;;uBACN,OAAO;;;;oBACP,MAAM;;uBAtHG,uBAAuB;sBADxB,qBAAqB"}
@@ -1,66 +1,2 @@
1
- /**
2
- * object group definition as defined in Tiled.
3
- * (group definition is translated into the virtual `app.world` using `me.Container`)
4
- * @ignore
5
- */
6
- export default class TMXGroup {
7
- constructor(map: any, data: any, z: any);
8
- /**
9
- * group name
10
- * @type {string}
11
- */
12
- name: string;
13
- /**
14
- * group width
15
- * @type {number}
16
- */
17
- width: number;
18
- /**
19
- * group height
20
- * @type {number}
21
- */
22
- height: number;
23
- /**
24
- * tint color
25
- * @type {string}
26
- */
27
- tintcolor: string;
28
- /**
29
- * the group class
30
- * @type {string}
31
- */
32
- class: string;
33
- /**
34
- * group z order
35
- * @type {number}
36
- */
37
- z: number;
38
- /**
39
- * group objects list definition
40
- * @see {@link TMXObject}
41
- * @type {object[]}
42
- */
43
- objects: object[];
44
- opacity: number;
45
- /**
46
- * group blend mode (Tiled 1.12+)
47
- * @type {string}
48
- */
49
- blendMode: string;
50
- /**
51
- * reset function
52
- * @ignore
53
- */
54
- destroy(): void;
55
- /**
56
- * return the object count
57
- * @ignore
58
- */
59
- getObjectCount(): number;
60
- /**
61
- * returns the object at the specified index
62
- * @ignore
63
- */
64
- getObjectByIndex(idx: any): object;
65
- }
1
+
66
2
  //# sourceMappingURL=TMXGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TMXGroup.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXGroup.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH;IACC,yCAsFC;IArFA;;;OAGG;IACH,MAFU,MAAM,CAEK;IAErB;;;OAGG;IACH,OAFU,MAAM,CAEY;IAE5B;;;OAGG;IACH,QAFU,MAAM,CAEc;IAE9B;;;OAGG;IACH,WAFU,MAAM,CAEe;IAE/B;;;OAGG;IACH,OAFU,MAAM,CAEO;IAEvB;;;OAGG;IACH,GAFU,MAAM,CAEN;IAEV;;;;OAIG;IACH,SAFU,MAAM,EAAE,CAED;IAGjB,gBAA2E;IAE3E;;;OAGG;IACH,WAFU,MAAM,CAE0B;IAqC3C;;;OAGG;IACH,gBAGC;IAED;;;OAGG;IACH,yBAEC;IAED;;;OAGG;IACH,mCAEC;CACD"}
1
+ {"version":3,"file":"TMXGroup.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXGroup.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH;IACC,yCAsFC;IArFA;;;OAGG;IACH,MAFU,MAAM,CAEK;IAErB;;;OAGG;IACH,OAFU,MAAM,CAEY;IAE5B;;;OAGG;IACH,QAFU,MAAM,CAEc;IAE9B;;;OAGG;IACH,WAFU,MAAM,CAEe;IAE/B;;;OAGG;IACH,OAFU,MAAM,CAEO;IAEvB;;;OAGG;IACH,GAFU,MAAM,CAEN;IAEV;;;;OAIG;IACH,SAFU,MAAM,EAAE,CAED;IAGjB,gBAA2E;IAE3E;;;OAGG;IACH,WAFU,MAAM,CAE0B;IAqC3C;;;;OAIG;IACH,gBAGC;IAED;;;;OAIG;IACH,yBAEC;IAED;;;;OAIG;IACH,mCAEC;CACD"}
@@ -75,19 +75,6 @@ export default class TMXLayer extends Renderable {
75
75
  * @type {Uint16Array}
76
76
  */
77
77
  layerData: Uint16Array;
78
- /**
79
- * Lazy view cache of Tile objects, indexed by `y * cols + x` (row-major).
80
- * Allocated lazily on the first `cellAt` / `getTile` call — the renderer
81
- * hot path reads `layerData` directly and never touches this cache, so
82
- * for games that never call `getTile`/`cellAt` from user code, this
83
- * stays `null` for the layer's lifetime. Invalidated entry-by-entry by
84
- * `setTile` and `clearTile`. The raw bytes in `layerData` are the source
85
- * of truth; this exists only to preserve stable Tile identity across
86
- * repeated user-facing reads.
87
- * @type {Array<Tile|null>|null}
88
- * @ignore
89
- */
90
- cachedTile: Array<Tile | null> | null;
91
78
  /**
92
79
  * Monotonically-increasing counter bumped by `setTile` and `clearTile`.
93
80
  * Renderers can compare against a stashed value to detect mutations and
@@ -114,26 +101,6 @@ export default class TMXLayer extends Renderable {
114
101
  onActivateEvent(): void;
115
102
  canvasRenderer: CanvasRenderer | undefined;
116
103
  preRender: boolean | undefined;
117
- /**
118
- * Resolve `this.renderMode` to one of "shader" / "prerender" / "perTile"
119
- * based on eligibility checks and user/world hints. Emits a single
120
- * `console.warn` at activation when a forced mode is ineligible, or
121
- * when an auto-eligible mode falls back due to a layer feature the GPU
122
- * path doesn't support (orientation, collection-of-image tileset, etc.).
123
- * @ignore
124
- */
125
- _resolveRenderMode(): void;
126
- /**
127
- * Check whether this layer is eligible for the WebGL2 shader path.
128
- * @param {object} renderer
129
- * @param {boolean} gpuAllowed - whether `gpuTilemap` is enabled at the world level
130
- * @returns {{ok: boolean, reason?: string}}
131
- * @ignore
132
- */
133
- _checkShaderEligibility(renderer: object, gpuAllowed: boolean): {
134
- ok: boolean;
135
- reason?: string;
136
- };
137
104
  onDeactivateEvent(): void;
138
105
  /**
139
106
  * Set the TMX renderer for this layer object
@@ -177,7 +144,6 @@ export default class TMXLayer extends Renderable {
177
144
  * @returns {Tile} the tile object
178
145
  */
179
146
  setTile(tile: Tile, x: number, y: number): Tile;
180
- _truncationWarned: boolean | undefined;
181
147
  /**
182
148
  * return a new the Tile object corresponding to the given tile id
183
149
  * @param {number} tileId - tileId
@@ -208,16 +174,6 @@ export default class TMXLayer extends Renderable {
208
174
  * });
209
175
  */
210
176
  clearTile(x: number, y: number): void;
211
- /**
212
- * update animations in a tileset layer
213
- * @ignore
214
- */
215
- update(dt: any): boolean;
216
- /**
217
- * draw a tileset layer
218
- * @ignore
219
- */
220
- draw(renderer: any, rect: any): void;
221
177
  }
222
178
  import Renderable from "../../renderable/renderable.js";
223
179
  import Tile from "./TMXTile.js";
@@ -1 +1 @@
1
- {"version":3,"file":"TMXLayer.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXLayer.js"],"names":[],"mappings":"AAmHA;;;;GAIG;AACH;IACC;;;;;;;;OAQG;IACH,iBARW,MAAM,QACN,MAAM,aACN,MAAM,cACN,MAAM,eACN,MAAM,YACN,eAAe,KACf,MAAM,EA4LhB;IArLA,eAA4C;IAC5C,gBAA+C;IAG/C,oBAA8B;IAE9B;;;;OAIG;IACH,GAFU,MAAM,CAEN;IAEV;;;;OAIG;IACH,GAFU,MAAM,CAEN;IAEV;;;OAGG;IACH,UAFU,eAAe,CAED;IAGxB,aAAwE;IAGxE;;;MAGC;IAaD;;;OAGG;IACH,kBAFU,UAAU,EAAE,CAEI;IAE1B;;;OAGG;IACH,YAFU,OAAO,CAEM;IAEvB;;;;;OAKG;IACH,aAHU,MAAM,CAGmC;IAEnD;;;OAGG;IACH,OAFU,MAAM,CAEO;IASvB,UAAqB;IACrB,aAAuB;IACvB,aAAwB;IA8BxB;;;;;;;;;OASG;IACH,WAFU,WAAW,CAEsC;IAE3D;;;;;;;;;;;OAWG;IACH,YAHU,KAAK,CAAC,IAAI,GAAC,IAAI,CAAC,GAAC,IAAI,CAGT;IAEtB;;;;;OAKG;IACH,aAFU,MAAM,CAEI;IAEpB;;;;;;;;;;;;;;OAcG;IACH,YAHU,MAAM,CAGQ;IAwBzB,wBAkCC;IAfC,2CAKE;IAOH,+BAAgD;IAKjD;;;;;;;OAOG;IACH,2BAkEC;IAED;;;;;;OAMG;IACH,kCALW,MAAM,cACN,OAAO,GACL;QAAC,EAAE,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAC,CA+C1C;IAGD,0BAOC;IAED;;;;;;;OAOG;IACH,sBANW,WAAW,QASrB;IAFA,cAAwB;IAIzB;;;OAGG;IACH,eAFa,WAAW,CAIvB;IAED;;;;;OAKG;IACH,aAJW,MAAM,KACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;;;OAUG;IACH,WATW,MAAM,KACN,MAAM,GACJ,IAAI,CAoBhB;IAED;;;;;;OAMG;IACH,cALW,IAAI,KACJ,MAAM,KACN,MAAM,GACJ,IAAI,CA4BhB;IAfC,uCAA6B;IAiB/B;;;;;;OAMG;IACH,oBALW,MAAM,KACN,MAAM,KACN,MAAM,GACJ,IAAI,CAQhB;IAED;;;;;;;;;OASG;IACH,UARW,MAAM,KACN,MAAM,gBACN,MAAM,GACJ,IAAI,CA6ChB;IAED;;;;;;;;;OASG;IACH,aARW,MAAM,KACN,MAAM,QA8BhB;IAED;;;OAGG;IACH,yBAQC;IAED;;;OAGG;IACH,qCAIC;CACD;uBAvsBsB,gCAAgC;iBAStC,cAAc;2BARJ,oCAAoC"}
1
+ {"version":3,"file":"TMXLayer.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXLayer.js"],"names":[],"mappings":"AAuHA;;;;GAIG;AACH;IACC;;;;;;;;OAQG;IACH,iBARW,MAAM,QACN,MAAM,aACN,MAAM,cACN,MAAM,eACN,MAAM,YACN,eAAe,KACf,MAAM,EA6LhB;IAtLA,eAA4C;IAC5C,gBAA+C;IAG/C,oBAA8B;IAE9B;;;;OAIG;IACH,GAFU,MAAM,CAEN;IAEV;;;;OAIG;IACH,GAFU,MAAM,CAEN;IAEV;;;OAGG;IACH,UAFU,eAAe,CAED;IAGxB,aAAwE;IAGxE;;;MAGC;IAaD;;;OAGG;IACH,kBAFU,UAAU,EAAE,CAEI;IAE1B;;;OAGG;IACH,YAFU,OAAO,CAEM;IAEvB;;;;;OAKG;IACH,aAHU,MAAM,CAGmC;IAEnD;;;OAGG;IACH,OAFU,MAAM,CAEO;IASvB,UAAqB;IACrB,aAAuB;IACvB,aAAwB;IA8BxB;;;;;;;;;OASG;IACH,WAFU,WAAW,CAEsC;IAE3D;;;;;;;;;;;;OAYG;IACH,YAJU,KAAK,CAAC,IAAI,GAAC,IAAI,CAAC,GAAC,IAAI,CAIT;IAEtB;;;;;OAKG;IACH,aAFU,MAAM,CAEI;IAEpB;;;;;;;;;;;;;;OAcG;IACH,YAHU,MAAM,CAGQ;IAwBzB,wBAkCC;IAfC,2CAKE;IAOH,+BAAgD;IAKjD;;;;;;;;OAQG;IACH,2BAkEC;IAED;;;;;;;OAOG;IACH,kCANW,MAAM,cACN,OAAO,GACL;QAAC,EAAE,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAC,CAgD1C;IAGD,0BAOC;IAED;;;;;;;OAOG;IACH,sBANW,WAAW,QASrB;IAFA,cAAwB;IAIzB;;;OAGG;IACH,eAFa,WAAW,CAIvB;IAED;;;;;OAKG;IACH,aAJW,MAAM,KACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;;;OAUG;IACH,WATW,MAAM,KACN,MAAM,GACJ,IAAI,CAoBhB;IAED;;;;;;OAMG;IACH,cALW,IAAI,KACJ,MAAM,KACN,MAAM,GACJ,IAAI,CAgChB;IAnBC;;;OAGG;IACH,uCAA6B;IAiB/B;;;;;;OAMG;IACH,oBALW,MAAM,KACN,MAAM,KACN,MAAM,GACJ,IAAI,CAQhB;IAED;;;;;;;;;OASG;IACH,UARW,MAAM,KACN,MAAM,gBACN,MAAM,GACJ,IAAI,CA6ChB;IAED;;;;;;;;;OASG;IACH,aARW,MAAM,KACN,MAAM,QA8BhB;IAED;;;;OAIG;IACH,yBAQC;IAED;;;;OAIG;IACH,qCAIC;CACD;uBAptBsB,gCAAgC;iBAStC,cAAc;2BARJ,oCAAoC"}
@@ -1,138 +1,3 @@
1
- /**
2
- * a TMX Object defintion, as defined in Tiled
3
- * (Object definition is translated into the virtual `app.world` using `me.Renderable`)
4
- * @ignore
5
- */
6
- export default class TMXObject {
7
- constructor(map: any, settings: any, z: any);
8
- /**
9
- * point list in JSON format
10
- * @type {object[]}
11
- */
12
- points: object[];
13
- /**
14
- * object name
15
- * @type {string}
16
- */
17
- name: string;
18
- /**
19
- * object x position
20
- * @type {number}
21
- */
22
- x: number;
23
- /**
24
- * object y position
25
- * @type {number}
26
- */
27
- y: number;
28
- /**
29
- * object z order
30
- * @type {number}
31
- */
32
- z: number;
33
- /**
34
- * object width
35
- * @type {number}
36
- */
37
- width: number;
38
- /**
39
- * object height
40
- * @type {number}
41
- */
42
- height: number;
43
- /**
44
- * object gid value
45
- * when defined the object is a tiled object
46
- * @type {number}
47
- */
48
- gid: number;
49
- /**
50
- * tint color
51
- * @type {string}
52
- */
53
- tintcolor: string;
54
- /**
55
- * object type
56
- * @type {string}
57
- * @deprecated since Tiled 1.9
58
- * @see {@link https://docs.mapeditor.org/en/stable/reference/tmx-changelog/#tiled-1-9}
59
- */
60
- type: string;
61
- /**
62
- * the object class
63
- * @type {string}
64
- */
65
- class: string;
66
- /**
67
- * object text
68
- * @type {object}
69
- * @see {@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#text}
70
- */
71
- text: object;
72
- /**
73
- * The rotation of the object in radians clockwise (defaults to 0)
74
- * @type {number}
75
- */
76
- rotation: number;
77
- /**
78
- * the object opacity (0-1), defaults to 1 (since Tiled 1.12)
79
- * @type {number}
80
- */
81
- opacity: number;
82
- /**
83
- * whether the object is visible, defaults to true
84
- * @type {boolean}
85
- */
86
- visible: boolean;
87
- /**
88
- * object unique identifier per level (Tiled 0.11.x+)
89
- * @type {number}
90
- */
91
- id: number;
92
- /**
93
- * object orientation (orthogonal or isometric)
94
- * @type {string}
95
- */
96
- orientation: string;
97
- /**
98
- * the collision shapes defined for this object
99
- * @type {object[]}
100
- */
101
- shapes: object[];
102
- /**
103
- * the detected shape type
104
- * @type {string}
105
- */
106
- shapeType: string;
107
- /** @type {boolean} */
108
- isEllipse: boolean;
109
- /** @type {boolean} */
110
- isCapsule: boolean;
111
- /** @type {boolean} */
112
- isPoint: boolean;
113
- /** @type {boolean} */
114
- isPolygon: boolean;
115
- /** @type {boolean} */
116
- isPolyLine: boolean;
117
- /**
118
- * set the object image (for Tiled Object)
119
- * @ignore
120
- */
121
- setTile(tilesets: any): void;
122
- framewidth: any;
123
- frameheight: any;
124
- tile: Tile | undefined;
125
- /**
126
- * parses the TMX shape definition and returns a corresponding array of shape objects
127
- * @private
128
- * @returns {Polygon[]|Line[]|Ellipse[]|RoundRect[]} an array of shape objects
129
- */
130
- private parseTMXShapes;
131
- /**
132
- * getObjectPropertyByName
133
- * @ignore
134
- */
135
- getObjectPropertyByName(name: any): any;
136
- }
1
+
137
2
  import Tile from "./TMXTile.js";
138
3
  //# sourceMappingURL=TMXObject.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TMXObject.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXObject.js"],"names":[],"mappings":"AAoCA;;;;GAIG;AACH;IACC,6CAmKC;IAlKA;;;OAGG;IACH,QAFU,MAAM,EAAE,CAEK;IAEvB;;;OAGG;IACH,MAFU,MAAM,CAES;IAEzB;;;OAGG;IACH,GAFU,MAAM,CAEI;IAEpB;;;OAGG;IACH,GAFU,MAAM,CAEI;IAEpB;;;OAGG;IACH,GAFU,MAAM,CAEL;IAEX;;;OAGG;IACH,OAFU,MAAM,CAEiB;IAEjC;;;OAGG;IACH,QAFU,MAAM,CAEmB;IAEnC;;;;OAIG;IACH,KAFU,MAAM,CAEgB;IAEhC;;;OAGG;IACH,WAFU,MAAM,CAEmB;IAEnC;;;;;OAKG;IACH,MAJU,MAAM,CAIS;IAEzB;;;OAGG;IACH,OAFU,MAAM,CAE4B;IAE5C;;;;OAIG;IACH,MAHU,MAAM,CAGK;IAErB;;;OAGG;IACH,UAFU,MAAM,CAEiC;IAEjD;;;OAGG;IACH,SAFU,MAAM,CAEuB;IAEvC;;;OAGG;IACH,SAFU,OAAO,CAE4B;IAE7C;;;OAGG;IACH,IAFU,MAAM,CAEmB;IAEnC;;;OAGG;IACH,aAFU,MAAM,CAEkB;IAElC;;;OAGG;IACH,QAFU,MAAM,EAAE,CAEK;IAEvB;;;OAGG;IACH,WAFU,MAAM,CAEY;IAa5B,sBAAsB;IACtB,WADW,OAAO,CAC2B;IAC7C,sBAAsB;IACtB,WADW,OAAO,CAC2B;IAC7C,sBAAsB;IACtB,SADW,OAAO,CACuB;IACzC,sBAAsB;IACtB,WADW,OAAO,CAC2B;IAC7C,sBAAsB;IACtB,YADW,OAAO,CAC6B;IA0BhD;;;OAGG;IACH,6BASC;IALc,gBAAmC;IAClC,iBAAqC;IAGpD,uBAAuD;IAGxD;;;;OAIG;IACH,uBAuGC;IAED;;;OAGG;IACH,wCAEC;CACD;iBA5UgB,cAAc"}
1
+ {"version":3,"file":"TMXObject.d.ts","sourceRoot":"","sources":["../../../src/level/tiled/TMXObject.js"],"names":[],"mappings":"AAqCA;;;;;GAKG;AACH;IACC,6CAmKC;IAlKA;;;OAGG;IACH,QAFU,MAAM,EAAE,CAEK;IAEvB;;;OAGG;IACH,MAFU,MAAM,CAES;IAEzB;;;OAGG;IACH,GAFU,MAAM,CAEI;IAEpB;;;OAGG;IACH,GAFU,MAAM,CAEI;IAEpB;;;OAGG;IACH,GAFU,MAAM,CAEL;IAEX;;;OAGG;IACH,OAFU,MAAM,CAEiB;IAEjC;;;OAGG;IACH,QAFU,MAAM,CAEmB;IAEnC;;;;OAIG;IACH,KAFU,MAAM,CAEgB;IAEhC;;;OAGG;IACH,WAFU,MAAM,CAEmB;IAEnC;;;;;OAKG;IACH,MAJU,MAAM,CAIS;IAEzB;;;OAGG;IACH,OAFU,MAAM,CAE4B;IAE5C;;;;OAIG;IACH,MAHU,MAAM,CAGK;IAErB;;;OAGG;IACH,UAFU,MAAM,CAEiC;IAEjD;;;OAGG;IACH,SAFU,MAAM,CAEuB;IAEvC;;;OAGG;IACH,SAFU,OAAO,CAE4B;IAE7C;;;OAGG;IACH,IAFU,MAAM,CAEmB;IAEnC;;;OAGG;IACH,aAFU,MAAM,CAEkB;IAElC;;;OAGG;IACH,QAFU,MAAM,EAAE,CAEK;IAEvB;;;OAGG;IACH,WAFU,MAAM,CAEY;IAa5B,sBAAsB;IACtB,WADW,OAAO,CAC2B;IAC7C,sBAAsB;IACtB,WADW,OAAO,CAC2B;IAC7C,sBAAsB;IACtB,SADW,OAAO,CACuB;IACzC,sBAAsB;IACtB,WADW,OAAO,CAC2B;IAC7C,sBAAsB;IACtB,YADW,OAAO,CAC6B;IA0BhD;;;;OAIG;IACH,6BASC;IALc,gBAAmC;IAClC,iBAAqC;IAGpD,uBAAuD;IAGxD;;;;OAIG;IACH,uBAuGC;IAED;;;;OAIG;IACH,wCAEC;CACD;iBAhVgB,cAAc"}