littlejsengine 1.1.6 → 1.1.8

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 (85) hide show
  1. package/docs/Audio.html +2268 -0
  2. package/docs/Color.html +2989 -0
  3. package/docs/Debug.html +2933 -0
  4. package/docs/Draw.html +4092 -0
  5. package/docs/EngineObject.html +4458 -0
  6. package/docs/Input.html +2482 -0
  7. package/docs/Medal.html +1007 -0
  8. package/docs/Medals.html +628 -0
  9. package/docs/Music.html +584 -0
  10. package/docs/Newgrounds.html +1399 -0
  11. package/docs/Particle.html +4535 -0
  12. package/docs/ParticleEmitter.html +7770 -0
  13. package/docs/Random.html +1774 -0
  14. package/docs/Settings.html +2679 -0
  15. package/docs/Sound.html +1249 -0
  16. package/docs/TileCollision.html +1409 -0
  17. package/docs/TileLayer.html +6948 -0
  18. package/docs/TileLayerData.html +1052 -0
  19. package/docs/Timer.html +1183 -0
  20. package/docs/Utilities.html +3281 -0
  21. package/docs/Vector2.html +4207 -0
  22. package/docs/WebGL.html +2327 -0
  23. package/docs/engine.js.html +429 -0
  24. package/docs/engineAudio.js.html +609 -0
  25. package/docs/engineDebug.js.html +725 -0
  26. package/docs/engineDraw.js.html +419 -0
  27. package/docs/engineInput.js.html +401 -0
  28. package/docs/engineMedals.js.html +461 -0
  29. package/docs/engineObject.js.html +518 -0
  30. package/docs/engineParticles.js.html +441 -0
  31. package/docs/engineSettings.js.html +349 -0
  32. package/docs/engineTileLayer.js.html +513 -0
  33. package/docs/engineUtilities.js.html +647 -0
  34. package/docs/engineWebGL.js.html +522 -0
  35. package/docs/fonts/MavenPro-Regular.ttf +0 -0
  36. package/docs/fonts/Montserrat-Regular.ttf +0 -0
  37. package/docs/fonts/Muli-Black.ttf +0 -0
  38. package/docs/fonts/OFL-hind.txt +93 -0
  39. package/docs/fonts/OFL-montserrat.txt +93 -0
  40. package/docs/global.html +1691 -0
  41. package/docs/index.css +6 -0
  42. package/docs/index.html +247 -0
  43. package/docs/scripts/fix-code-block.js +53 -0
  44. package/docs/scripts/fix-navbar.js +25 -0
  45. package/docs/scripts/linenumber.js +25 -0
  46. package/docs/scripts/misc.js +217 -0
  47. package/docs/scripts/resize.js +85 -0
  48. package/docs/scripts/search.js +83 -0
  49. package/docs/scripts/third-party/Apache-License-2.0.txt +202 -0
  50. package/docs/scripts/third-party/fuse.js +9 -0
  51. package/docs/scripts/third-party/lang-css.js +2 -0
  52. package/docs/scripts/third-party/prettify.js +28 -0
  53. package/docs/static/favicon.png +0 -0
  54. package/docs/static/index.css +4 -0
  55. package/docs/styles/clean-jsdoc-theme-base.css +393 -0
  56. package/docs/styles/clean-jsdoc-theme-dark.css +324 -0
  57. package/docs/styles/clean-jsdoc-theme-light.css +319 -0
  58. package/docs/styles/reset.css +346 -0
  59. package/docs/styles/third-party/ionicons.min.css +11 -0
  60. package/docs/styles/third-party/prettify-jsdoc.css +111 -0
  61. package/docs/styles/third-party/prettify-tomorrow.css +5 -0
  62. package/engine/engine.all.js +94 -110
  63. package/engine/engine.all.min.js +1 -1
  64. package/engine/engine.all.release.js +94 -110
  65. package/engine/engine.js +14 -17
  66. package/engine/engineAudio.js +7 -7
  67. package/engine/engineDraw.js +6 -6
  68. package/engine/engineInput.js +7 -7
  69. package/engine/engineMedals.js +3 -3
  70. package/engine/engineObject.js +15 -15
  71. package/engine/engineParticles.js +3 -3
  72. package/engine/engineSettings.js +30 -43
  73. package/engine/engineTileLayer.js +5 -5
  74. package/engine/engineUtilities.js +4 -4
  75. package/examples/breakout/game.js +1 -1
  76. package/examples/breakout/gameObjects.js +1 -1
  77. package/examples/breakout/index.html +3 -3
  78. package/examples/platformer/gameObjects.js +1 -1
  79. package/examples/platformer/gamePlayer.js +1 -1
  80. package/examples/platformer/index.html +6 -6
  81. package/examples/puzzle/game.js +1 -1
  82. package/examples/puzzle/index.html +2 -2
  83. package/examples/stress/index.html +1 -1
  84. package/index.html +13 -13
  85. package/package.json +1 -1
@@ -0,0 +1,2933 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+
8
+ <!-- Adding favicon -->
9
+
10
+ <link rel="icon" href="./static/favicon.png" />
11
+
12
+
13
+ <!-- Adding meta -->
14
+
15
+
16
+ <!-- Adding external script-->
17
+
18
+
19
+ <!-- Adding external style-->
20
+
21
+
22
+ <!-- Adding scripts-->
23
+
24
+
25
+ <!-- Adding style-->
26
+
27
+
28
+ <!-- Adding overlay script-->
29
+
30
+
31
+ <!-- Adding overlay style-->
32
+
33
+
34
+
35
+ <title>
36
+ Debug
37
+ </title>
38
+
39
+ <!--[if lt IE 9]>
40
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
41
+ <![endif]-->
42
+ <link type="text/css" rel="stylesheet" href="styles/third-party/ionicons.min.css">
43
+ <link type="text/css" rel="stylesheet" href="styles/third-party/prettify-tomorrow.css">
44
+ <link type="text/css" rel="stylesheet" href="styles/reset.css">
45
+ <link type="text/css" rel="stylesheet" href="styles/clean-jsdoc-theme-base.css">
46
+ <link type="text/css" rel="stylesheet" href="styles/clean-jsdoc-theme-dark.css">
47
+
48
+ <style>
49
+ .prettyprint code {font-family:monospace}
50
+ </style>
51
+
52
+ <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
53
+ style="display:none">
54
+ <defs>
55
+ <symbol id="copy-icon" viewbox="0 0 488.3 488.3">
56
+ <g>
57
+ <path
58
+ d="M314.25,85.4h-227c-21.3,0-38.6,17.3-38.6,38.6v325.7c0,21.3,17.3,38.6,38.6,38.6h227c21.3,0,38.6-17.3,38.6-38.6V124 C352.75,102.7,335.45,85.4,314.25,85.4z M325.75,449.6c0,6.4-5.2,11.6-11.6,11.6h-227c-6.4,0-11.6-5.2-11.6-11.6V124 c0-6.4,5.2-11.6,11.6-11.6h227c6.4,0,11.6,5.2,11.6,11.6V449.6z" />
59
+ <path
60
+ d="M401.05,0h-227c-21.3,0-38.6,17.3-38.6,38.6c0,7.5,6,13.5,13.5,13.5s13.5-6,13.5-13.5c0-6.4,5.2-11.6,11.6-11.6h227 c6.4,0,11.6,5.2,11.6,11.6v325.7c0,6.4-5.2,11.6-11.6,11.6c-7.5,0-13.5,6-13.5,13.5s6,13.5,13.5,13.5c21.3,0,38.6-17.3,38.6-38.6 V38.6C439.65,17.3,422.35,0,401.05,0z" />
61
+ </g>
62
+ </symbol>
63
+ <symbol id='search-icon' viewBox="0 0 512 512">
64
+ <g>
65
+ <g>
66
+ <path
67
+ d="M225.474,0C101.151,0,0,101.151,0,225.474c0,124.33,101.151,225.474,225.474,225.474 c124.33,0,225.474-101.144,225.474-225.474C450.948,101.151,349.804,0,225.474,0z M225.474,409.323 c-101.373,0-183.848-82.475-183.848-183.848S124.101,41.626,225.474,41.626s183.848,82.475,183.848,183.848 S326.847,409.323,225.474,409.323z" />
68
+ </g>
69
+ </g>
70
+ <g>
71
+ <g>
72
+ <path
73
+ d="M505.902,476.472L386.574,357.144c-8.131-8.131-21.299-8.131-29.43,0c-8.131,8.124-8.131,21.306,0,29.43l119.328,119.328 c4.065,4.065,9.387,6.098,14.715,6.098c5.321,0,10.649-2.033,14.715-6.098C514.033,497.778,514.033,484.596,505.902,476.472z" />
74
+ </g>
75
+ </g>
76
+ </symbol>
77
+ <symbol id="down-icon" viewBox="0 0 16 16">
78
+ <path
79
+ fill-rule="evenodd"
80
+ clip-rule="evenodd"
81
+ d="M12.7803 6.21967C13.0732 6.51256 13.0732 6.98744 12.7803 7.28033L8.53033 11.5303C8.23744 11.8232 7.76256 11.8232 7.46967 11.5303L3.21967 7.28033C2.92678 6.98744 2.92678 6.51256 3.21967 6.21967C3.51256 5.92678 3.98744 5.92678 4.28033 6.21967L8 9.93934L11.7197 6.21967C12.0126 5.92678 12.4874 5.92678 12.7803 6.21967Z"
82
+ >
83
+ </path>
84
+ </symbol>
85
+ </defs>
86
+ </svg>
87
+ </head>
88
+
89
+ <body>
90
+
91
+ <nav class="navbar" id="navbar">
92
+ <div class="navbar-heading" id="navbar-heading"><a href="index.html"><h2 class="navbar-heading-text">LittleJS - The Tiny JavaScript Game Engine That Can!</h2></a></div><div class="search-box" id="search-box"><div class="search-box-input-container"><input class="search-box-input" type="text" placeholder="Search..." id="search-box-input" /><svg class="search-icon" alt="search-icon"><use xlink:href="#search-icon"></use></svg></div><div class="search-item-container" id="search-item-container"><ul class="search-item-ul" id="search-item-ul"></ul></div></div><div class="sidebar-main-content" id="sidebar-main-content"><div class="accordion collapsed" id="3026681" > <h3 class="accordion-heading">Classes<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=864267><div class="accordion-heading child"><a href="Color.html">Color</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Color.html#add">add</a></li><li data-type='method'><a href="Color.html#clamp">clamp</a></li><li data-type='method'><a href="Color.html#copy">copy</a></li><li data-type='method'><a href="Color.html#divide">divide</a></li><li data-type='method'><a href="Color.html#lerp">lerp</a></li><li data-type='method'><a href="Color.html#multiply">multiply</a></li><li data-type='method'><a href="Color.html#mutate">mutate</a></li><li data-type='method'><a href="Color.html#rgba">rgba</a></li><li data-type='method'><a href="Color.html#rgbaInt">rgbaInt</a></li><li data-type='method'><a href="Color.html#scale">scale</a></li><li data-type='method'><a href="Color.html#setHSLA">setHSLA</a></li><li data-type='method'><a href="Color.html#subtract">subtract</a></li></ul></li><li class="accordion collapsed child" id=3569399><div class="accordion-heading child"><a href="EngineObject.html">EngineObject</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="EngineObject.html#addChild">addChild</a></li><li data-type='method'><a href="EngineObject.html#applyAcceleration">applyAcceleration</a></li><li data-type='method'><a href="EngineObject.html#applyForce">applyForce</a></li><li data-type='method'><a href="EngineObject.html#collideWithObject">collideWithObject</a></li><li data-type='method'><a href="EngineObject.html#collideWithTile">collideWithTile</a></li><li data-type='method'><a href="EngineObject.html#collideWithTileRaycast">collideWithTileRaycast</a></li><li data-type='method'><a href="EngineObject.html#destroy">destroy</a></li><li data-type='method'><a href="EngineObject.html#getAliveTime">getAliveTime</a></li><li data-type='method'><a href="EngineObject.html#getMirrorSign">getMirrorSign</a></li><li data-type='method'><a href="EngineObject.html#removeChild">removeChild</a></li><li data-type='method'><a href="EngineObject.html#render">render</a></li><li data-type='method'><a href="EngineObject.html#setCollision">setCollision</a></li><li data-type='method'><a href="EngineObject.html#update">update</a></li></ul></li><li class="accordion collapsed child" id=2970668><div class="accordion-heading child"><a href="Medal.html">Medal</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Medal.html#render">render</a></li><li data-type='method'><a href="Medal.html#renderIcon">renderIcon</a></li><li data-type='method'><a href="Medal.html#unlock">unlock</a></li></ul></li><li class="accordion collapsed child" id=2533015><div class="accordion-heading child"><a href="Music.html">Music</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Music.html#play">play</a></li></ul></li><li class="accordion collapsed child" id=5490011><div class="accordion-heading child"><a href="Newgrounds.html">Newgrounds</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Newgrounds.html#call">call</a></li><li data-type='method'><a href="Newgrounds.html#getScores">getScores</a></li><li data-type='method'><a href="Newgrounds.html#logView">logView</a></li><li data-type='method'><a href="Newgrounds.html#postScore">postScore</a></li><li data-type='method'><a href="Newgrounds.html#unlockMedal">unlockMedal</a></li></ul></li><li class="accordion collapsed child" id=5370538><div class="accordion-heading child"><a href="Particle.html">Particle</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Particle.html#addChild">addChild</a></li><li data-type='method'><a href="Particle.html#applyAcceleration">applyAcceleration</a></li><li data-type='method'><a href="Particle.html#applyForce">applyForce</a></li><li data-type='method'><a href="Particle.html#collideWithObject">collideWithObject</a></li><li data-type='method'><a href="Particle.html#collideWithTile">collideWithTile</a></li><li data-type='method'><a href="Particle.html#collideWithTileRaycast">collideWithTileRaycast</a></li><li data-type='method'><a href="Particle.html#destroy">destroy</a></li><li data-type='method'><a href="Particle.html#getAliveTime">getAliveTime</a></li><li data-type='method'><a href="Particle.html#getMirrorSign">getMirrorSign</a></li><li data-type='method'><a href="Particle.html#removeChild">removeChild</a></li><li data-type='method'><a href="Particle.html#render">render</a></li><li data-type='method'><a href="Particle.html#setCollision">setCollision</a></li><li data-type='method'><a href="Particle.html#update">update</a></li></ul></li><li class="accordion collapsed child" id=4983401><div class="accordion-heading child"><a href="ParticleEmitter.html">ParticleEmitter</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="ParticleEmitter.html#addChild">addChild</a></li><li data-type='method'><a href="ParticleEmitter.html#applyAcceleration">applyAcceleration</a></li><li data-type='method'><a href="ParticleEmitter.html#applyForce">applyForce</a></li><li data-type='method'><a href="ParticleEmitter.html#collideWithObject">collideWithObject</a></li><li data-type='method'><a href="ParticleEmitter.html#collideWithTile">collideWithTile</a></li><li data-type='method'><a href="ParticleEmitter.html#collideWithTileRaycast">collideWithTileRaycast</a></li><li data-type='method'><a href="ParticleEmitter.html#destroy">destroy</a></li><li data-type='method'><a href="ParticleEmitter.html#emitParticle">emitParticle</a></li><li data-type='method'><a href="ParticleEmitter.html#getAliveTime">getAliveTime</a></li><li data-type='method'><a href="ParticleEmitter.html#getMirrorSign">getMirrorSign</a></li><li data-type='method'><a href="ParticleEmitter.html#removeChild">removeChild</a></li><li data-type='method'><a href="ParticleEmitter.html#render">render</a></li><li data-type='method'><a href="ParticleEmitter.html#setCollision">setCollision</a></li><li data-type='method'><a href="ParticleEmitter.html#update">update</a></li></ul></li><li class="accordion collapsed child" id=4102019><div class="accordion-heading child"><a href="Sound.html">Sound</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Sound.html#play">play</a></li><li data-type='method'><a href="Sound.html#playNote">playNote</a></li></ul></li><li class="accordion collapsed child" id=3455641><div class="accordion-heading child"><a href="TileLayer.html">TileLayer</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="TileLayer.html#addChild">addChild</a></li><li data-type='method'><a href="TileLayer.html#applyAcceleration">applyAcceleration</a></li><li data-type='method'><a href="TileLayer.html#applyForce">applyForce</a></li><li data-type='method'><a href="TileLayer.html#collideWithObject">collideWithObject</a></li><li data-type='method'><a href="TileLayer.html#collideWithTile">collideWithTile</a></li><li data-type='method'><a href="TileLayer.html#collideWithTileRaycast">collideWithTileRaycast</a></li><li data-type='method'><a href="TileLayer.html#destroy">destroy</a></li><li data-type='method'><a href="TileLayer.html#drawAllTileData">drawAllTileData</a></li><li data-type='method'><a href="TileLayer.html#drawCanvas2D">drawCanvas2D</a></li><li data-type='method'><a href="TileLayer.html#drawRect">drawRect</a></li><li data-type='method'><a href="TileLayer.html#drawTile">drawTile</a></li><li data-type='method'><a href="TileLayer.html#drawTileData">drawTileData</a></li><li data-type='method'><a href="TileLayer.html#getAliveTime">getAliveTime</a></li><li data-type='method'><a href="TileLayer.html#getData">getData</a></li><li data-type='method'><a href="TileLayer.html#getMirrorSign">getMirrorSign</a></li><li data-type='method'><a href="TileLayer.html#redraw">redraw</a></li><li data-type='method'><a href="TileLayer.html#redrawEnd">redrawEnd</a></li><li data-type='method'><a href="TileLayer.html#redrawStart">redrawStart</a></li><li data-type='method'><a href="TileLayer.html#removeChild">removeChild</a></li><li data-type='method'><a href="TileLayer.html#render">render</a></li><li data-type='method'><a href="TileLayer.html#setCollision">setCollision</a></li><li data-type='method'><a href="TileLayer.html#setData">setData</a></li><li data-type='method'><a href="TileLayer.html#update">update</a></li></ul></li><li class="accordion collapsed child" id=1570904><div class="accordion-heading child"><a href="TileLayerData.html">TileLayerData</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="TileLayerData.html#clear">clear</a></li></ul></li><li class="accordion collapsed child" id=3515045><div class="accordion-heading child"><a href="Timer.html">Timer</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Timer.html#active">active</a></li><li data-type='method'><a href="Timer.html#elapsed">elapsed</a></li><li data-type='method'><a href="Timer.html#get">get</a></li><li data-type='method'><a href="Timer.html#getPercent">getPercent</a></li><li data-type='method'><a href="Timer.html#isSet">isSet</a></li><li data-type='method'><a href="Timer.html#set">set</a></li><li data-type='method'><a href="Timer.html#unset">unset</a></li></ul></li><li class="accordion collapsed child" id=7852068><div class="accordion-heading child"><a href="Vector2.html">Vector2</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Vector2.html#add">add</a></li><li data-type='method'><a href="Vector2.html#angle">angle</a></li><li data-type='method'><a href="Vector2.html#area">area</a></li><li data-type='method'><a href="Vector2.html#arrayCheck">arrayCheck</a></li><li data-type='method'><a href="Vector2.html#clampLength">clampLength</a></li><li data-type='method'><a href="Vector2.html#copy">copy</a></li><li data-type='method'><a href="Vector2.html#cross">cross</a></li><li data-type='method'><a href="Vector2.html#direction">direction</a></li><li data-type='method'><a href="Vector2.html#distance">distance</a></li><li data-type='method'><a href="Vector2.html#distanceSquared">distanceSquared</a></li><li data-type='method'><a href="Vector2.html#divide">divide</a></li><li data-type='method'><a href="Vector2.html#dot">dot</a></li><li data-type='method'><a href="Vector2.html#flip">flip</a></li><li data-type='method'><a href="Vector2.html#floor">floor</a></li><li data-type='method'><a href="Vector2.html#invert">invert</a></li><li data-type='method'><a href="Vector2.html#length">length</a></li><li data-type='method'><a href="Vector2.html#lengthSquared">lengthSquared</a></li><li data-type='method'><a href="Vector2.html#lerp">lerp</a></li><li data-type='method'><a href="Vector2.html#multiply">multiply</a></li><li data-type='method'><a href="Vector2.html#normalize">normalize</a></li><li data-type='method'><a href="Vector2.html#rotate">rotate</a></li><li data-type='method'><a href="Vector2.html#scale">scale</a></li><li data-type='method'><a href="Vector2.html#setAngle">setAngle</a></li><li data-type='method'><a href="Vector2.html#subtract">subtract</a></li></ul></li></ul> </div><div class="accordion collapsed" id="813939" > <h3 class="accordion-heading">Namespaces<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=2717358><div class="accordion-heading child"><a href="Audio.html">Audio</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Audio.html#.getNoteFrequency">getNoteFrequency</a></li><li data-type='method'><a href="Audio.html#.playAudioFile">playAudioFile</a></li><li data-type='method'><a href="Audio.html#.playSamples">playSamples</a></li><li data-type='method'><a href="Audio.html#.speak">speak</a></li><li data-type='method'><a href="Audio.html#.stopSpeech">stopSpeech</a></li><li data-type='method'><a href="Audio.html#.zzfx">zzfx</a></li><li data-type='method'><a href="Audio.html#.zzfxG">zzfxG</a></li><li data-type='method'><a href="Audio.html#.zzfxM">zzfxM</a></li></ul></li><li class="accordion collapsed child" id=8015982><div class="accordion-heading child"><a href="Debug.html">Debug</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Debug.html#.debugAABB">debugAABB</a></li><li data-type='method'><a href="Debug.html#.debugCircle">debugCircle</a></li><li data-type='method'><a href="Debug.html#.debugClear">debugClear</a></li><li data-type='method'><a href="Debug.html#.debugLine">debugLine</a></li><li data-type='method'><a href="Debug.html#.debugPoint">debugPoint</a></li><li data-type='method'><a href="Debug.html#.debugRect">debugRect</a></li><li data-type='method'><a href="Debug.html#.debugSaveCanvas">debugSaveCanvas</a></li><li data-type='method'><a href="Debug.html#.debugText">debugText</a></li></ul></li><li class="accordion collapsed child" id=3886530><div class="accordion-heading child"><a href="Draw.html">Draw</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Draw.html#.drawCanvas2D">drawCanvas2D</a></li><li data-type='method'><a href="Draw.html#.drawLine">drawLine</a></li><li data-type='method'><a href="Draw.html#.drawRect">drawRect</a></li><li data-type='method'><a href="Draw.html#.drawRectScreenSpace">drawRectScreenSpace</a></li><li data-type='method'><a href="Draw.html#.drawText">drawText</a></li><li data-type='method'><a href="Draw.html#.drawTile">drawTile</a></li><li data-type='method'><a href="Draw.html#.drawTileScreenSpace">drawTileScreenSpace</a></li><li data-type='method'><a href="Draw.html#.isFullscreen">isFullscreen</a></li><li data-type='method'><a href="Draw.html#.screenToWorld">screenToWorld</a></li><li data-type='method'><a href="Draw.html#.setBlendMode">setBlendMode</a></li><li data-type='method'><a href="Draw.html#.toggleFullscreen">toggleFullscreen</a></li><li data-type='method'><a href="Draw.html#.worldToScreen">worldToScreen</a></li></ul></li><li class="accordion collapsed child" id=2344392><div class="accordion-heading child"><a href="Input.html">Input</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Input.html#.clearInput">clearInput</a></li><li data-type='method'><a href="Input.html#.gamepadIsDown">gamepadIsDown</a></li><li data-type='method'><a href="Input.html#.gamepadStick">gamepadStick</a></li><li data-type='method'><a href="Input.html#.gamepadWasPressed">gamepadWasPressed</a></li><li data-type='method'><a href="Input.html#.gamepadWasReleased">gamepadWasReleased</a></li><li data-type='method'><a href="Input.html#.keyIsDown">keyIsDown</a></li><li data-type='method'><a href="Input.html#.keyWasPressed">keyWasPressed</a></li><li data-type='method'><a href="Input.html#.keyWasReleased">keyWasReleased</a></li></ul></li><li class="accordion collapsed child" id=4725200><div class="accordion-heading child"><a href="Medals.html">Medals</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Medals.html#.medalsInit">medalsInit</a></li></ul></li><li class="accordion collapsed child" id=7676165><div class="accordion-heading child"><a href="Random.html">Random</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Random.html#.rand">rand</a></li><li data-type='method'><a href="Random.html#.randColor">randColor</a></li><li data-type='method'><a href="Random.html#.randInCircle">randInCircle</a></li><li data-type='method'><a href="Random.html#.randInt">randInt</a></li><li data-type='method'><a href="Random.html#.randSeeded">randSeeded</a></li><li data-type='method'><a href="Random.html#.randSign">randSign</a></li><li data-type='method'><a href="Random.html#.randVector">randVector</a></li></ul></li><li class="accordion-list" id=""><a href="Settings.html">Settings</a></li><li class="accordion collapsed child" id=2840044><div class="accordion-heading child"><a href="TileCollision.html">TileCollision</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="TileCollision.html#.getTileCollisionData">getTileCollisionData</a></li><li data-type='method'><a href="TileCollision.html#.initTileCollision">initTileCollision</a></li><li data-type='method'><a href="TileCollision.html#.setTileCollisionData">setTileCollisionData</a></li><li data-type='method'><a href="TileCollision.html#.tileCollisionRaycast">tileCollisionRaycast</a></li><li data-type='method'><a href="TileCollision.html#.tileCollisionTest">tileCollisionTest</a></li></ul></li><li class="accordion collapsed child" id=6238309><div class="accordion-heading child"><a href="Utilities.html">Utilities</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Utilities.html#.abs">abs</a></li><li data-type='method'><a href="Utilities.html#.clamp">clamp</a></li><li data-type='method'><a href="Utilities.html#.formatTime">formatTime</a></li><li data-type='method'><a href="Utilities.html#.isOverlapping">isOverlapping</a></li><li data-type='method'><a href="Utilities.html#.lerp">lerp</a></li><li data-type='method'><a href="Utilities.html#.max">max</a></li><li data-type='method'><a href="Utilities.html#.min">min</a></li><li data-type='method'><a href="Utilities.html#.mod">mod</a></li><li data-type='method'><a href="Utilities.html#.nearestPowerOfTwo">nearestPowerOfTwo</a></li><li data-type='method'><a href="Utilities.html#.percent">percent</a></li><li data-type='method'><a href="Utilities.html#.sign">sign</a></li><li data-type='method'><a href="Utilities.html#.smoothStep">smoothStep</a></li><li data-type='method'><a href="Utilities.html#.vec2">vec2</a></li><li data-type='method'><a href="Utilities.html#.wave">wave</a></li></ul></li><li class="accordion collapsed child" id=6305592><div class="accordion-heading child"><a href="WebGL.html">WebGL</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="WebGL.html#.glCompileShader">glCompileShader</a></li><li data-type='method'><a href="WebGL.html#.glCopyToContext">glCopyToContext</a></li><li data-type='method'><a href="WebGL.html#.glCreateBuffer">glCreateBuffer</a></li><li data-type='method'><a href="WebGL.html#.glCreateProgram">glCreateProgram</a></li><li data-type='method'><a href="WebGL.html#.glCreateTexture">glCreateTexture</a></li><li data-type='method'><a href="WebGL.html#.glDraw">glDraw</a></li><li data-type='method'><a href="WebGL.html#.glFlush">glFlush</a></li><li data-type='method'><a href="WebGL.html#.glSetBlendMode">glSetBlendMode</a></li><li data-type='method'><a href="WebGL.html#.glSetTexture">glSetTexture</a></li></ul></li></ul> </div><div class="accordion collapsed" id="9475387" > <h3 class="accordion-heading">Global<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion-list" id=""><a href="global.html#engineCollideObjects">engineCollideObjects</a></li><li class="accordion-list" id=""><a href="global.html#engineInit">engineInit</a></li><li class="accordion-list" id=""><a href="global.html#engineName">engineName</a></li><li class="accordion-list" id=""><a href="global.html#engineObjects">engineObjects</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsCallback">engineObjectsCallback</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsDestroy">engineObjectsDestroy</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsUpdate">engineObjectsUpdate</a></li><li class="accordion-list" id=""><a href="global.html#engineVersion">engineVersion</a></li><li class="accordion-list" id=""><a href="global.html#FPS">FPS</a></li><li class="accordion-list" id=""><a href="global.html#frame">frame</a></li><li class="accordion-list" id=""><a href="global.html#paused">paused</a></li><li class="accordion-list" id=""><a href="global.html#time">time</a></li><li class="accordion-list" id=""><a href="global.html#timeDelta">timeDelta</a></li><li class="accordion-list" id=""><a href="global.html#timeReal">timeReal</a></li></ul> </div></div>
93
+
94
+
95
+ </nav>
96
+ <div class="navbar-ham" id="navbar-ham">
97
+ <div>
98
+ <div class="first"></div>
99
+ <div class="second"></div>
100
+ <div class="third"></div>
101
+ </div>
102
+ </div>
103
+
104
+ <div id="main" class="main-content">
105
+
106
+ <h1 id='page-title' class="page-title">
107
+ Debug
108
+ </h1>
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ <section>
117
+
118
+
119
+ <header>
120
+
121
+
122
+ <h2>
123
+
124
+ Debug
125
+
126
+ </h2>
127
+
128
+
129
+
130
+ </header>
131
+
132
+
133
+ <article>
134
+ <div class="container-overview">
135
+
136
+
137
+ <div class="description">LittleJS Debug System
138
  <br> - Debug overlay with mouse pick
1
139
  <br> - Debug primitive rendering
2
140
  <br> - Save screenshots to disk</div>
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+ <dl class="details">
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+ <div class="details-item-container">
176
+ <dt class="tag-source">Source:</dt>
177
+ <dd class="tag-source"><ul class="dummy"><li>
178
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line1">line 1</a>
179
+ </li></ul></dd>
180
+ </div>
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+ </dl>
189
+
190
+
191
+
192
+
193
+
194
+
195
+ </div>
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+ <h3 class="subsection-title">Members</h3>
209
+
210
+
211
+
212
+ <h4 class="name" id=".ASSERT">
213
+ <a href="#.ASSERT">#</a>
214
+ <span class="type-signature">(static, constant) </span>ASSERT<span class="type-signature"></span>
215
+ </h4>
216
+
217
+
218
+
219
+
220
+ <div class="description">
221
+ Asserts if the experssion is false, does not do anything in release builds
222
+ </div>
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+ <dl class="details">
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+ <div class="details-item-container">
260
+ <dt class="tag-source">Source:</dt>
261
+ <dd class="tag-source"><ul class="dummy"><li>
262
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line47">line 47</a>
263
+ </li></ul></dd>
264
+ </div>
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+ </dl>
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+ <h4 class="name" id=".debug">
284
+ <a href="#.debug">#</a>
285
+ <span class="type-signature">(static, constant) </span>debug<span class="type-signature"></span>
286
+ </h4>
287
+
288
+
289
+
290
+
291
+ <div class="description">
292
+ True if debug is enabled
293
+ </div>
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+ <dl class="details">
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+ <div class="details-item-container">
329
+ <dt class="tag-default">Default Value:</dt>
330
+ <dd class="tag-default"><ul class="dummy">
331
+ <li >1</li>
332
+ </ul></dd>
333
+ </div>
334
+
335
+
336
+
337
+ <div class="details-item-container">
338
+ <dt class="tag-source">Source:</dt>
339
+ <dd class="tag-source"><ul class="dummy"><li>
340
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line14">line 14</a>
341
+ </li></ul></dd>
342
+ </div>
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+ </dl>
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+ <h4 class="name" id=".debugPointSize">
362
+ <a href="#.debugPointSize">#</a>
363
+ <span class="type-signature">(static, constant) </span>debugPointSize<span class="type-signature"></span>
364
+ </h4>
365
+
366
+
367
+
368
+
369
+ <div class="description">
370
+ Size to render debug points by default
371
+ </div>
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+ <dl class="details">
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+ <div class="details-item-container">
407
+ <dt class="tag-default">Default Value:</dt>
408
+ <dd class="tag-default"><ul class="dummy">
409
+ <li >0.5</li>
410
+ </ul></dd>
411
+ </div>
412
+
413
+
414
+
415
+ <div class="details-item-container">
416
+ <dt class="tag-source">Source:</dt>
417
+ <dd class="tag-source"><ul class="dummy"><li>
418
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line24">line 24</a>
419
+ </li></ul></dd>
420
+ </div>
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+ </dl>
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+ <h4 class="name" id=".enableAsserts">
440
+ <a href="#.enableAsserts">#</a>
441
+ <span class="type-signature">(static, constant) </span>enableAsserts<span class="type-signature"></span>
442
+ </h4>
443
+
444
+
445
+
446
+
447
+ <div class="description">
448
+ True if asserts are enaled
449
+ </div>
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+ <dl class="details">
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+ <div class="details-item-container">
485
+ <dt class="tag-default">Default Value:</dt>
486
+ <dd class="tag-default"><ul class="dummy">
487
+ <li >1</li>
488
+ </ul></dd>
489
+ </div>
490
+
491
+
492
+
493
+ <div class="details-item-container">
494
+ <dt class="tag-source">Source:</dt>
495
+ <dd class="tag-source"><ul class="dummy"><li>
496
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line19">line 19</a>
497
+ </li></ul></dd>
498
+ </div>
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+ </dl>
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+ <h4 class="name" id=".godMode">
518
+ <a href="#.godMode">#</a>
519
+ <span class="type-signature">(static) </span>godMode<span class="type-signature"></span>
520
+ </h4>
521
+
522
+
523
+
524
+
525
+ <div class="description">
526
+ True if god mode is enabled, handle this however you want
527
+ </div>
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+
537
+ <dl class="details">
538
+
539
+
540
+
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+ <div class="details-item-container">
565
+ <dt class="tag-source">Source:</dt>
566
+ <dd class="tag-source"><ul class="dummy"><li>
567
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line34">line 34</a>
568
+ </li></ul></dd>
569
+ </div>
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+ </dl>
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+
588
+ <h4 class="name" id=".showWatermark">
589
+ <a href="#.showWatermark">#</a>
590
+ <span class="type-signature">(static) </span>showWatermark<span class="type-signature"></span>
591
+ </h4>
592
+
593
+
594
+
595
+
596
+ <div class="description">
597
+ True if watermark with FPS should be down
598
+ </div>
599
+
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+
608
+ <dl class="details">
609
+
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+ <div class="details-item-container">
634
+ <dt class="tag-default">Default Value:</dt>
635
+ <dd class="tag-default"><ul class="dummy">
636
+ <li >1</li>
637
+ </ul></dd>
638
+ </div>
639
+
640
+
641
+
642
+ <div class="details-item-container">
643
+ <dt class="tag-source">Source:</dt>
644
+ <dd class="tag-source"><ul class="dummy"><li>
645
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line29">line 29</a>
646
+ </li></ul></dd>
647
+ </div>
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+ </dl>
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+ <h3 class="subsection-title">Methods</h3>
669
+
670
+
671
+
672
+
673
+
674
+
675
+ <h4 class="name" id=".debugAABB">
676
+ <a href="#.debugAABB">#</a>
677
+ <span class="type-signature">(static) </span>debugAABB<span class="signature">(posA, sizeA, posB, sizeB, color<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
678
+ </h4>
679
+
680
+
681
+
682
+
683
+
684
+ <div class="description">
685
+ Draw a debug axis aligned bounding box in world space
686
+ </div>
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
697
+ <strong>Parameters:</strong>
698
+
699
+
700
+ <table class="params">
701
+ <thead>
702
+ <tr>
703
+
704
+ <th>Name</th>
705
+
706
+
707
+ <th>Type</th>
708
+
709
+
710
+ <th>Attributes</th>
711
+
712
+
713
+
714
+ <th>Default</th>
715
+
716
+
717
+ <th class="last">Description</th>
718
+ </tr>
719
+ </thead>
720
+
721
+ <tbody>
722
+
723
+
724
+ <tr>
725
+
726
+ <td class="name"><code>posA</code></td>
727
+
728
+
729
+ <td class="type">
730
+
731
+
732
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
733
+
734
+
735
+
736
+ </td>
737
+
738
+
739
+ <td class="attributes">
740
+
741
+
742
+
743
+
744
+
745
+ </td>
746
+
747
+
748
+
749
+ <td class="default">
750
+
751
+ </td>
752
+
753
+
754
+ <td class="description last"></td>
755
+ </tr>
756
+
757
+
758
+
759
+ <tr>
760
+
761
+ <td class="name"><code>sizeA</code></td>
762
+
763
+
764
+ <td class="type">
765
+
766
+
767
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
768
+
769
+
770
+
771
+ </td>
772
+
773
+
774
+ <td class="attributes">
775
+
776
+
777
+
778
+
779
+
780
+ </td>
781
+
782
+
783
+
784
+ <td class="default">
785
+
786
+ </td>
787
+
788
+
789
+ <td class="description last"></td>
790
+ </tr>
791
+
792
+
793
+
794
+ <tr>
795
+
796
+ <td class="name"><code>posB</code></td>
797
+
798
+
799
+ <td class="type">
800
+
801
+
802
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
803
+
804
+
805
+
806
+ </td>
807
+
808
+
809
+ <td class="attributes">
810
+
811
+
812
+
813
+
814
+
815
+ </td>
816
+
817
+
818
+
819
+ <td class="default">
820
+
821
+ </td>
822
+
823
+
824
+ <td class="description last"></td>
825
+ </tr>
826
+
827
+
828
+
829
+ <tr>
830
+
831
+ <td class="name"><code>sizeB</code></td>
832
+
833
+
834
+ <td class="type">
835
+
836
+
837
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
838
+
839
+
840
+
841
+ </td>
842
+
843
+
844
+ <td class="attributes">
845
+
846
+
847
+
848
+
849
+
850
+ </td>
851
+
852
+
853
+
854
+ <td class="default">
855
+
856
+ </td>
857
+
858
+
859
+ <td class="description last"></td>
860
+ </tr>
861
+
862
+
863
+
864
+ <tr>
865
+
866
+ <td class="name"><code>color</code></td>
867
+
868
+
869
+ <td class="type">
870
+
871
+
872
+ <span class="param-type">String</span>
873
+
874
+
875
+
876
+ </td>
877
+
878
+
879
+ <td class="attributes">
880
+
881
+ &lt;optional><br>
882
+
883
+
884
+
885
+
886
+
887
+ </td>
888
+
889
+
890
+
891
+ <td class="default">
892
+
893
+ '#fff'
894
+
895
+ </td>
896
+
897
+
898
+ <td class="description last"></td>
899
+ </tr>
900
+
901
+
902
+ </tbody>
903
+ </table>
904
+
905
+ </div>
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+ <dl class="details">
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+ <div class="details-item-container">
941
+ <dt class="tag-source">Source:</dt>
942
+ <dd class="tag-source"><ul class="dummy"><li>
943
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line105">line 105</a>
944
+ </li></ul></dd>
945
+ </div>
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+ </dl>
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+
965
+
966
+
967
+
968
+
969
+
970
+
971
+
972
+
973
+
974
+
975
+
976
+
977
+ <h4 class="name" id=".debugCircle">
978
+ <a href="#.debugCircle">#</a>
979
+ <span class="type-signature">(static) </span>debugCircle<span class="signature">(pos, radius<span class="signature-attributes">opt</span>, color<span class="signature-attributes">opt</span>, time<span class="signature-attributes">opt</span>, fill<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
980
+ </h4>
981
+
982
+
983
+
984
+
985
+
986
+ <div class="description">
987
+ Draw a debug circle in world space
988
+ </div>
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
999
+ <strong>Parameters:</strong>
1000
+
1001
+
1002
+ <table class="params">
1003
+ <thead>
1004
+ <tr>
1005
+
1006
+ <th>Name</th>
1007
+
1008
+
1009
+ <th>Type</th>
1010
+
1011
+
1012
+ <th>Attributes</th>
1013
+
1014
+
1015
+
1016
+ <th>Default</th>
1017
+
1018
+
1019
+ <th class="last">Description</th>
1020
+ </tr>
1021
+ </thead>
1022
+
1023
+ <tbody>
1024
+
1025
+
1026
+ <tr>
1027
+
1028
+ <td class="name"><code>pos</code></td>
1029
+
1030
+
1031
+ <td class="type">
1032
+
1033
+
1034
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1035
+
1036
+
1037
+
1038
+ </td>
1039
+
1040
+
1041
+ <td class="attributes">
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+ </td>
1048
+
1049
+
1050
+
1051
+ <td class="default">
1052
+
1053
+ </td>
1054
+
1055
+
1056
+ <td class="description last"></td>
1057
+ </tr>
1058
+
1059
+
1060
+
1061
+ <tr>
1062
+
1063
+ <td class="name"><code>radius</code></td>
1064
+
1065
+
1066
+ <td class="type">
1067
+
1068
+
1069
+ <span class="param-type">Number</span>
1070
+
1071
+
1072
+
1073
+ </td>
1074
+
1075
+
1076
+ <td class="attributes">
1077
+
1078
+ &lt;optional><br>
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+ </td>
1085
+
1086
+
1087
+
1088
+ <td class="default">
1089
+
1090
+ 0
1091
+
1092
+ </td>
1093
+
1094
+
1095
+ <td class="description last"></td>
1096
+ </tr>
1097
+
1098
+
1099
+
1100
+ <tr>
1101
+
1102
+ <td class="name"><code>color</code></td>
1103
+
1104
+
1105
+ <td class="type">
1106
+
1107
+
1108
+ <span class="param-type">String</span>
1109
+
1110
+
1111
+
1112
+ </td>
1113
+
1114
+
1115
+ <td class="attributes">
1116
+
1117
+ &lt;optional><br>
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+ </td>
1124
+
1125
+
1126
+
1127
+ <td class="default">
1128
+
1129
+ '#fff'
1130
+
1131
+ </td>
1132
+
1133
+
1134
+ <td class="description last"></td>
1135
+ </tr>
1136
+
1137
+
1138
+
1139
+ <tr>
1140
+
1141
+ <td class="name"><code>time</code></td>
1142
+
1143
+
1144
+ <td class="type">
1145
+
1146
+
1147
+ <span class="param-type">Number</span>
1148
+
1149
+
1150
+
1151
+ </td>
1152
+
1153
+
1154
+ <td class="attributes">
1155
+
1156
+ &lt;optional><br>
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+ </td>
1163
+
1164
+
1165
+
1166
+ <td class="default">
1167
+
1168
+ 0
1169
+
1170
+ </td>
1171
+
1172
+
1173
+ <td class="description last"></td>
1174
+ </tr>
1175
+
1176
+
1177
+
1178
+ <tr>
1179
+
1180
+ <td class="name"><code>fill</code></td>
1181
+
1182
+
1183
+ <td class="type">
1184
+
1185
+
1186
+ <span class="param-type">Boolean</span>
1187
+
1188
+
1189
+
1190
+ </td>
1191
+
1192
+
1193
+ <td class="attributes">
1194
+
1195
+ &lt;optional><br>
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+ </td>
1202
+
1203
+
1204
+
1205
+ <td class="default">
1206
+
1207
+ 0
1208
+
1209
+ </td>
1210
+
1211
+
1212
+ <td class="description last"></td>
1213
+ </tr>
1214
+
1215
+
1216
+ </tbody>
1217
+ </table>
1218
+
1219
+ </div>
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+ <dl class="details">
1228
+
1229
+
1230
+
1231
+
1232
+
1233
+
1234
+
1235
+
1236
+
1237
+
1238
+
1239
+
1240
+
1241
+
1242
+
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+
1252
+
1253
+
1254
+ <div class="details-item-container">
1255
+ <dt class="tag-source">Source:</dt>
1256
+ <dd class="tag-source"><ul class="dummy"><li>
1257
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line70">line 70</a>
1258
+ </li></ul></dd>
1259
+ </div>
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+
1267
+ </dl>
1268
+
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+
1291
+ <h4 class="name" id=".debugClear">
1292
+ <a href="#.debugClear">#</a>
1293
+ <span class="type-signature">(static) </span>debugClear<span class="signature">()</span><span class="type-signature"></span>
1294
+ </h4>
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+ <div class="description">
1301
+ Clear all debug primitives in the list
1302
+ </div>
1303
+
1304
+
1305
+
1306
+
1307
+
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+
1314
+
1315
+
1316
+
1317
+
1318
+ <dl class="details">
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+ <div class="details-item-container">
1346
+ <dt class="tag-source">Source:</dt>
1347
+ <dd class="tag-source"><ul class="dummy"><li>
1348
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line129">line 129</a>
1349
+ </li></ul></dd>
1350
+ </div>
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+
1357
+
1358
+ </dl>
1359
+
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+ <h4 class="name" id=".debugLine">
1383
+ <a href="#.debugLine">#</a>
1384
+ <span class="type-signature">(static) </span>debugLine<span class="signature">(posA, posB, color<span class="signature-attributes">opt</span>, thickness<span class="signature-attributes">opt</span>, time<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
1385
+ </h4>
1386
+
1387
+
1388
+
1389
+
1390
+
1391
+ <div class="description">
1392
+ Draw a debug line in world space
1393
+ </div>
1394
+
1395
+
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1404
+ <strong>Parameters:</strong>
1405
+
1406
+
1407
+ <table class="params">
1408
+ <thead>
1409
+ <tr>
1410
+
1411
+ <th>Name</th>
1412
+
1413
+
1414
+ <th>Type</th>
1415
+
1416
+
1417
+ <th>Attributes</th>
1418
+
1419
+
1420
+
1421
+ <th>Default</th>
1422
+
1423
+
1424
+ <th class="last">Description</th>
1425
+ </tr>
1426
+ </thead>
1427
+
1428
+ <tbody>
1429
+
1430
+
1431
+ <tr>
1432
+
1433
+ <td class="name"><code>posA</code></td>
1434
+
1435
+
1436
+ <td class="type">
1437
+
1438
+
1439
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1440
+
1441
+
1442
+
1443
+ </td>
1444
+
1445
+
1446
+ <td class="attributes">
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+ </td>
1453
+
1454
+
1455
+
1456
+ <td class="default">
1457
+
1458
+ </td>
1459
+
1460
+
1461
+ <td class="description last"></td>
1462
+ </tr>
1463
+
1464
+
1465
+
1466
+ <tr>
1467
+
1468
+ <td class="name"><code>posB</code></td>
1469
+
1470
+
1471
+ <td class="type">
1472
+
1473
+
1474
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1475
+
1476
+
1477
+
1478
+ </td>
1479
+
1480
+
1481
+ <td class="attributes">
1482
+
1483
+
1484
+
1485
+
1486
+
1487
+ </td>
1488
+
1489
+
1490
+
1491
+ <td class="default">
1492
+
1493
+ </td>
1494
+
1495
+
1496
+ <td class="description last"></td>
1497
+ </tr>
1498
+
1499
+
1500
+
1501
+ <tr>
1502
+
1503
+ <td class="name"><code>color</code></td>
1504
+
1505
+
1506
+ <td class="type">
1507
+
1508
+
1509
+ <span class="param-type">String</span>
1510
+
1511
+
1512
+
1513
+ </td>
1514
+
1515
+
1516
+ <td class="attributes">
1517
+
1518
+ &lt;optional><br>
1519
+
1520
+
1521
+
1522
+
1523
+
1524
+ </td>
1525
+
1526
+
1527
+
1528
+ <td class="default">
1529
+
1530
+ '#fff'
1531
+
1532
+ </td>
1533
+
1534
+
1535
+ <td class="description last"></td>
1536
+ </tr>
1537
+
1538
+
1539
+
1540
+ <tr>
1541
+
1542
+ <td class="name"><code>thickness</code></td>
1543
+
1544
+
1545
+ <td class="type">
1546
+
1547
+
1548
+ <span class="param-type">Number</span>
1549
+
1550
+
1551
+
1552
+ </td>
1553
+
1554
+
1555
+ <td class="attributes">
1556
+
1557
+ &lt;optional><br>
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+ </td>
1564
+
1565
+
1566
+
1567
+ <td class="default">
1568
+
1569
+ .1
1570
+
1571
+ </td>
1572
+
1573
+
1574
+ <td class="description last"></td>
1575
+ </tr>
1576
+
1577
+
1578
+
1579
+ <tr>
1580
+
1581
+ <td class="name"><code>time</code></td>
1582
+
1583
+
1584
+ <td class="type">
1585
+
1586
+
1587
+ <span class="param-type">Number</span>
1588
+
1589
+
1590
+
1591
+ </td>
1592
+
1593
+
1594
+ <td class="attributes">
1595
+
1596
+ &lt;optional><br>
1597
+
1598
+
1599
+
1600
+
1601
+
1602
+ </td>
1603
+
1604
+
1605
+
1606
+ <td class="default">
1607
+
1608
+ 0
1609
+
1610
+ </td>
1611
+
1612
+
1613
+ <td class="description last"></td>
1614
+ </tr>
1615
+
1616
+
1617
+ </tbody>
1618
+ </table>
1619
+
1620
+ </div>
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+ <dl class="details">
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+
1635
+
1636
+
1637
+
1638
+
1639
+
1640
+
1641
+
1642
+
1643
+
1644
+
1645
+
1646
+
1647
+
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+
1654
+
1655
+ <div class="details-item-container">
1656
+ <dt class="tag-source">Source:</dt>
1657
+ <dd class="tag-source"><ul class="dummy"><li>
1658
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line91">line 91</a>
1659
+ </li></ul></dd>
1660
+ </div>
1661
+
1662
+
1663
+
1664
+
1665
+
1666
+
1667
+
1668
+ </dl>
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+
1677
+
1678
+
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+
1685
+
1686
+
1687
+
1688
+
1689
+
1690
+
1691
+
1692
+ <h4 class="name" id=".debugPoint">
1693
+ <a href="#.debugPoint">#</a>
1694
+ <span class="type-signature">(static) </span>debugPoint<span class="signature">(pos, color<span class="signature-attributes">opt</span>, time<span class="signature-attributes">opt</span>, angle<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
1695
+ </h4>
1696
+
1697
+
1698
+
1699
+
1700
+
1701
+ <div class="description">
1702
+ Draw a debug point in world space
1703
+ </div>
1704
+
1705
+
1706
+
1707
+
1708
+
1709
+
1710
+
1711
+
1712
+
1713
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1714
+ <strong>Parameters:</strong>
1715
+
1716
+
1717
+ <table class="params">
1718
+ <thead>
1719
+ <tr>
1720
+
1721
+ <th>Name</th>
1722
+
1723
+
1724
+ <th>Type</th>
1725
+
1726
+
1727
+ <th>Attributes</th>
1728
+
1729
+
1730
+
1731
+ <th>Default</th>
1732
+
1733
+
1734
+ <th class="last">Description</th>
1735
+ </tr>
1736
+ </thead>
1737
+
1738
+ <tbody>
1739
+
1740
+
1741
+ <tr>
1742
+
1743
+ <td class="name"><code>pos</code></td>
1744
+
1745
+
1746
+ <td class="type">
1747
+
1748
+
1749
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1750
+
1751
+
1752
+
1753
+ </td>
1754
+
1755
+
1756
+ <td class="attributes">
1757
+
1758
+
1759
+
1760
+
1761
+
1762
+ </td>
1763
+
1764
+
1765
+
1766
+ <td class="default">
1767
+
1768
+ </td>
1769
+
1770
+
1771
+ <td class="description last"></td>
1772
+ </tr>
1773
+
1774
+
1775
+
1776
+ <tr>
1777
+
1778
+ <td class="name"><code>color</code></td>
1779
+
1780
+
1781
+ <td class="type">
1782
+
1783
+
1784
+ <span class="param-type">String</span>
1785
+
1786
+
1787
+
1788
+ </td>
1789
+
1790
+
1791
+ <td class="attributes">
1792
+
1793
+ &lt;optional><br>
1794
+
1795
+
1796
+
1797
+
1798
+
1799
+ </td>
1800
+
1801
+
1802
+
1803
+ <td class="default">
1804
+
1805
+ '#fff'
1806
+
1807
+ </td>
1808
+
1809
+
1810
+ <td class="description last"></td>
1811
+ </tr>
1812
+
1813
+
1814
+
1815
+ <tr>
1816
+
1817
+ <td class="name"><code>time</code></td>
1818
+
1819
+
1820
+ <td class="type">
1821
+
1822
+
1823
+ <span class="param-type">Number</span>
1824
+
1825
+
1826
+
1827
+ </td>
1828
+
1829
+
1830
+ <td class="attributes">
1831
+
1832
+ &lt;optional><br>
1833
+
1834
+
1835
+
1836
+
1837
+
1838
+ </td>
1839
+
1840
+
1841
+
1842
+ <td class="default">
1843
+
1844
+ 0
1845
+
1846
+ </td>
1847
+
1848
+
1849
+ <td class="description last"></td>
1850
+ </tr>
1851
+
1852
+
1853
+
1854
+ <tr>
1855
+
1856
+ <td class="name"><code>angle</code></td>
1857
+
1858
+
1859
+ <td class="type">
1860
+
1861
+
1862
+ <span class="param-type">Number</span>
1863
+
1864
+
1865
+
1866
+ </td>
1867
+
1868
+
1869
+ <td class="attributes">
1870
+
1871
+ &lt;optional><br>
1872
+
1873
+
1874
+
1875
+
1876
+
1877
+ </td>
1878
+
1879
+
1880
+
1881
+ <td class="default">
1882
+
1883
+ 0
1884
+
1885
+ </td>
1886
+
1887
+
1888
+ <td class="description last"></td>
1889
+ </tr>
1890
+
1891
+
1892
+ </tbody>
1893
+ </table>
1894
+
1895
+ </div>
1896
+
1897
+
1898
+
1899
+
1900
+
1901
+
1902
+
1903
+ <dl class="details">
1904
+
1905
+
1906
+
1907
+
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+
1914
+
1915
+
1916
+
1917
+
1918
+
1919
+
1920
+
1921
+
1922
+
1923
+
1924
+
1925
+
1926
+
1927
+
1928
+
1929
+
1930
+ <div class="details-item-container">
1931
+ <dt class="tag-source">Source:</dt>
1932
+ <dd class="tag-source"><ul class="dummy"><li>
1933
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line82">line 82</a>
1934
+ </li></ul></dd>
1935
+ </div>
1936
+
1937
+
1938
+
1939
+
1940
+
1941
+
1942
+
1943
+ </dl>
1944
+
1945
+
1946
+
1947
+
1948
+
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+
1957
+
1958
+
1959
+
1960
+
1961
+
1962
+
1963
+
1964
+
1965
+
1966
+
1967
+ <h4 class="name" id=".debugRect">
1968
+ <a href="#.debugRect">#</a>
1969
+ <span class="type-signature">(static) </span>debugRect<span class="signature">(pos, size<span class="signature-attributes">opt</span>, color<span class="signature-attributes">opt</span>, time<span class="signature-attributes">opt</span>, angle<span class="signature-attributes">opt</span>, fill<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
1970
+ </h4>
1971
+
1972
+
1973
+
1974
+
1975
+
1976
+ <div class="description">
1977
+ Draw a debug rectangle in world space
1978
+ </div>
1979
+
1980
+
1981
+
1982
+
1983
+
1984
+
1985
+
1986
+
1987
+
1988
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1989
+ <strong>Parameters:</strong>
1990
+
1991
+
1992
+ <table class="params">
1993
+ <thead>
1994
+ <tr>
1995
+
1996
+ <th>Name</th>
1997
+
1998
+
1999
+ <th>Type</th>
2000
+
2001
+
2002
+ <th>Attributes</th>
2003
+
2004
+
2005
+
2006
+ <th>Default</th>
2007
+
2008
+
2009
+ <th class="last">Description</th>
2010
+ </tr>
2011
+ </thead>
2012
+
2013
+ <tbody>
2014
+
2015
+
2016
+ <tr>
2017
+
2018
+ <td class="name"><code>pos</code></td>
2019
+
2020
+
2021
+ <td class="type">
2022
+
2023
+
2024
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2025
+
2026
+
2027
+
2028
+ </td>
2029
+
2030
+
2031
+ <td class="attributes">
2032
+
2033
+
2034
+
2035
+
2036
+
2037
+ </td>
2038
+
2039
+
2040
+
2041
+ <td class="default">
2042
+
2043
+ </td>
2044
+
2045
+
2046
+ <td class="description last"></td>
2047
+ </tr>
2048
+
2049
+
2050
+
2051
+ <tr>
2052
+
2053
+ <td class="name"><code>size</code></td>
2054
+
2055
+
2056
+ <td class="type">
2057
+
2058
+
2059
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2060
+
2061
+
2062
+
2063
+ </td>
2064
+
2065
+
2066
+ <td class="attributes">
2067
+
2068
+ &lt;optional><br>
2069
+
2070
+
2071
+
2072
+
2073
+
2074
+ </td>
2075
+
2076
+
2077
+
2078
+ <td class="default">
2079
+
2080
+ new Vector2()
2081
+
2082
+ </td>
2083
+
2084
+
2085
+ <td class="description last"></td>
2086
+ </tr>
2087
+
2088
+
2089
+
2090
+ <tr>
2091
+
2092
+ <td class="name"><code>color</code></td>
2093
+
2094
+
2095
+ <td class="type">
2096
+
2097
+
2098
+ <span class="param-type">String</span>
2099
+
2100
+
2101
+
2102
+ </td>
2103
+
2104
+
2105
+ <td class="attributes">
2106
+
2107
+ &lt;optional><br>
2108
+
2109
+
2110
+
2111
+
2112
+
2113
+ </td>
2114
+
2115
+
2116
+
2117
+ <td class="default">
2118
+
2119
+ '#fff'
2120
+
2121
+ </td>
2122
+
2123
+
2124
+ <td class="description last"></td>
2125
+ </tr>
2126
+
2127
+
2128
+
2129
+ <tr>
2130
+
2131
+ <td class="name"><code>time</code></td>
2132
+
2133
+
2134
+ <td class="type">
2135
+
2136
+
2137
+ <span class="param-type">Number</span>
2138
+
2139
+
2140
+
2141
+ </td>
2142
+
2143
+
2144
+ <td class="attributes">
2145
+
2146
+ &lt;optional><br>
2147
+
2148
+
2149
+
2150
+
2151
+
2152
+ </td>
2153
+
2154
+
2155
+
2156
+ <td class="default">
2157
+
2158
+ 0
2159
+
2160
+ </td>
2161
+
2162
+
2163
+ <td class="description last"></td>
2164
+ </tr>
2165
+
2166
+
2167
+
2168
+ <tr>
2169
+
2170
+ <td class="name"><code>angle</code></td>
2171
+
2172
+
2173
+ <td class="type">
2174
+
2175
+
2176
+ <span class="param-type">Number</span>
2177
+
2178
+
2179
+
2180
+ </td>
2181
+
2182
+
2183
+ <td class="attributes">
2184
+
2185
+ &lt;optional><br>
2186
+
2187
+
2188
+
2189
+
2190
+
2191
+ </td>
2192
+
2193
+
2194
+
2195
+ <td class="default">
2196
+
2197
+ 0
2198
+
2199
+ </td>
2200
+
2201
+
2202
+ <td class="description last"></td>
2203
+ </tr>
2204
+
2205
+
2206
+
2207
+ <tr>
2208
+
2209
+ <td class="name"><code>fill</code></td>
2210
+
2211
+
2212
+ <td class="type">
2213
+
2214
+
2215
+ <span class="param-type">Boolean</span>
2216
+
2217
+
2218
+
2219
+ </td>
2220
+
2221
+
2222
+ <td class="attributes">
2223
+
2224
+ &lt;optional><br>
2225
+
2226
+
2227
+
2228
+
2229
+
2230
+ </td>
2231
+
2232
+
2233
+
2234
+ <td class="default">
2235
+
2236
+ 0
2237
+
2238
+ </td>
2239
+
2240
+
2241
+ <td class="description last"></td>
2242
+ </tr>
2243
+
2244
+
2245
+ </tbody>
2246
+ </table>
2247
+
2248
+ </div>
2249
+
2250
+
2251
+
2252
+
2253
+
2254
+
2255
+
2256
+ <dl class="details">
2257
+
2258
+
2259
+
2260
+
2261
+
2262
+
2263
+
2264
+
2265
+
2266
+
2267
+
2268
+
2269
+
2270
+
2271
+
2272
+
2273
+
2274
+
2275
+
2276
+
2277
+
2278
+
2279
+
2280
+
2281
+
2282
+
2283
+ <div class="details-item-container">
2284
+ <dt class="tag-source">Source:</dt>
2285
+ <dd class="tag-source"><ul class="dummy"><li>
2286
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line57">line 57</a>
2287
+ </li></ul></dd>
2288
+ </div>
2289
+
2290
+
2291
+
2292
+
2293
+
2294
+
2295
+
2296
+ </dl>
2297
+
2298
+
2299
+
2300
+
2301
+
2302
+
2303
+
2304
+
2305
+
2306
+
2307
+
2308
+
2309
+
2310
+
2311
+
2312
+
2313
+
2314
+
2315
+
2316
+
2317
+
2318
+
2319
+
2320
+ <h4 class="name" id=".debugSaveCanvas">
2321
+ <a href="#.debugSaveCanvas">#</a>
2322
+ <span class="type-signature">(static) </span>debugSaveCanvas<span class="signature">(canvas, filename<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
2323
+ </h4>
2324
+
2325
+
2326
+
2327
+
2328
+
2329
+ <div class="description">
2330
+ Save a canvas to disk
2331
+ </div>
2332
+
2333
+
2334
+
2335
+
2336
+
2337
+
2338
+
2339
+
2340
+
2341
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2342
+ <strong>Parameters:</strong>
2343
+
2344
+
2345
+ <table class="params">
2346
+ <thead>
2347
+ <tr>
2348
+
2349
+ <th>Name</th>
2350
+
2351
+
2352
+ <th>Type</th>
2353
+
2354
+
2355
+ <th>Attributes</th>
2356
+
2357
+
2358
+
2359
+
2360
+ <th class="last">Description</th>
2361
+ </tr>
2362
+ </thead>
2363
+
2364
+ <tbody>
2365
+
2366
+
2367
+ <tr>
2368
+
2369
+ <td class="name"><code>canvas</code></td>
2370
+
2371
+
2372
+ <td class="type">
2373
+
2374
+
2375
+ <span class="param-type">HTMLCanvasElement</span>
2376
+
2377
+
2378
+
2379
+ </td>
2380
+
2381
+
2382
+ <td class="attributes">
2383
+
2384
+
2385
+
2386
+
2387
+
2388
+ </td>
2389
+
2390
+
2391
+
2392
+
2393
+ <td class="description last"></td>
2394
+ </tr>
2395
+
2396
+
2397
+
2398
+ <tr>
2399
+
2400
+ <td class="name"><code>filename</code></td>
2401
+
2402
+
2403
+ <td class="type">
2404
+
2405
+
2406
+ <span class="param-type">String</span>
2407
+
2408
+
2409
+
2410
+ </td>
2411
+
2412
+
2413
+ <td class="attributes">
2414
+
2415
+ &lt;optional><br>
2416
+
2417
+
2418
+
2419
+
2420
+
2421
+ </td>
2422
+
2423
+
2424
+
2425
+
2426
+ <td class="description last"></td>
2427
+ </tr>
2428
+
2429
+
2430
+ </tbody>
2431
+ </table>
2432
+
2433
+ </div>
2434
+
2435
+
2436
+
2437
+
2438
+
2439
+
2440
+
2441
+ <dl class="details">
2442
+
2443
+
2444
+
2445
+
2446
+
2447
+
2448
+
2449
+
2450
+
2451
+
2452
+
2453
+
2454
+
2455
+
2456
+
2457
+
2458
+
2459
+
2460
+
2461
+
2462
+
2463
+
2464
+
2465
+
2466
+
2467
+
2468
+ <div class="details-item-container">
2469
+ <dt class="tag-source">Source:</dt>
2470
+ <dd class="tag-source"><ul class="dummy"><li>
2471
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line135">line 135</a>
2472
+ </li></ul></dd>
2473
+ </div>
2474
+
2475
+
2476
+
2477
+
2478
+
2479
+
2480
+
2481
+ </dl>
2482
+
2483
+
2484
+
2485
+
2486
+
2487
+
2488
+
2489
+
2490
+
2491
+
2492
+
2493
+
2494
+
2495
+
2496
+
2497
+
2498
+
2499
+
2500
+
2501
+
2502
+
2503
+
2504
+
2505
+ <h4 class="name" id=".debugText">
2506
+ <a href="#.debugText">#</a>
2507
+ <span class="type-signature">(static) </span>debugText<span class="signature">(text, pos, size<span class="signature-attributes">opt</span>, color<span class="signature-attributes">opt</span>, time<span class="signature-attributes">opt</span>, angle<span class="signature-attributes">opt</span>, font<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
2508
+ </h4>
2509
+
2510
+
2511
+
2512
+
2513
+
2514
+ <div class="description">
2515
+ Draw a debug axis aligned bounding box in world space
2516
+ </div>
2517
+
2518
+
2519
+
2520
+
2521
+
2522
+
2523
+
2524
+
2525
+
2526
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2527
+ <strong>Parameters:</strong>
2528
+
2529
+
2530
+ <table class="params">
2531
+ <thead>
2532
+ <tr>
2533
+
2534
+ <th>Name</th>
2535
+
2536
+
2537
+ <th>Type</th>
2538
+
2539
+
2540
+ <th>Attributes</th>
2541
+
2542
+
2543
+
2544
+ <th>Default</th>
2545
+
2546
+
2547
+ <th class="last">Description</th>
2548
+ </tr>
2549
+ </thead>
2550
+
2551
+ <tbody>
2552
+
2553
+
2554
+ <tr>
2555
+
2556
+ <td class="name"><code>text</code></td>
2557
+
2558
+
2559
+ <td class="type">
2560
+
2561
+
2562
+ <span class="param-type">String</span>
2563
+
2564
+
2565
+
2566
+ </td>
2567
+
2568
+
2569
+ <td class="attributes">
2570
+
2571
+
2572
+
2573
+
2574
+
2575
+ </td>
2576
+
2577
+
2578
+
2579
+ <td class="default">
2580
+
2581
+ </td>
2582
+
2583
+
2584
+ <td class="description last"></td>
2585
+ </tr>
2586
+
2587
+
2588
+
2589
+ <tr>
2590
+
2591
+ <td class="name"><code>pos</code></td>
2592
+
2593
+
2594
+ <td class="type">
2595
+
2596
+
2597
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2598
+
2599
+
2600
+
2601
+ </td>
2602
+
2603
+
2604
+ <td class="attributes">
2605
+
2606
+
2607
+
2608
+
2609
+
2610
+ </td>
2611
+
2612
+
2613
+
2614
+ <td class="default">
2615
+
2616
+ </td>
2617
+
2618
+
2619
+ <td class="description last"></td>
2620
+ </tr>
2621
+
2622
+
2623
+
2624
+ <tr>
2625
+
2626
+ <td class="name"><code>size</code></td>
2627
+
2628
+
2629
+ <td class="type">
2630
+
2631
+
2632
+ <span class="param-type">Number</span>
2633
+
2634
+
2635
+
2636
+ </td>
2637
+
2638
+
2639
+ <td class="attributes">
2640
+
2641
+ &lt;optional><br>
2642
+
2643
+
2644
+
2645
+
2646
+
2647
+ </td>
2648
+
2649
+
2650
+
2651
+ <td class="default">
2652
+
2653
+ 1
2654
+
2655
+ </td>
2656
+
2657
+
2658
+ <td class="description last"></td>
2659
+ </tr>
2660
+
2661
+
2662
+
2663
+ <tr>
2664
+
2665
+ <td class="name"><code>color</code></td>
2666
+
2667
+
2668
+ <td class="type">
2669
+
2670
+
2671
+ <span class="param-type">String</span>
2672
+
2673
+
2674
+
2675
+ </td>
2676
+
2677
+
2678
+ <td class="attributes">
2679
+
2680
+ &lt;optional><br>
2681
+
2682
+
2683
+
2684
+
2685
+
2686
+ </td>
2687
+
2688
+
2689
+
2690
+ <td class="default">
2691
+
2692
+ '#fff'
2693
+
2694
+ </td>
2695
+
2696
+
2697
+ <td class="description last"></td>
2698
+ </tr>
2699
+
2700
+
2701
+
2702
+ <tr>
2703
+
2704
+ <td class="name"><code>time</code></td>
2705
+
2706
+
2707
+ <td class="type">
2708
+
2709
+
2710
+ <span class="param-type">Number</span>
2711
+
2712
+
2713
+
2714
+ </td>
2715
+
2716
+
2717
+ <td class="attributes">
2718
+
2719
+ &lt;optional><br>
2720
+
2721
+
2722
+
2723
+
2724
+
2725
+ </td>
2726
+
2727
+
2728
+
2729
+ <td class="default">
2730
+
2731
+ 0
2732
+
2733
+ </td>
2734
+
2735
+
2736
+ <td class="description last"></td>
2737
+ </tr>
2738
+
2739
+
2740
+
2741
+ <tr>
2742
+
2743
+ <td class="name"><code>angle</code></td>
2744
+
2745
+
2746
+ <td class="type">
2747
+
2748
+
2749
+ <span class="param-type">Number</span>
2750
+
2751
+
2752
+
2753
+ </td>
2754
+
2755
+
2756
+ <td class="attributes">
2757
+
2758
+ &lt;optional><br>
2759
+
2760
+
2761
+
2762
+
2763
+
2764
+ </td>
2765
+
2766
+
2767
+
2768
+ <td class="default">
2769
+
2770
+ 0
2771
+
2772
+ </td>
2773
+
2774
+
2775
+ <td class="description last"></td>
2776
+ </tr>
2777
+
2778
+
2779
+
2780
+ <tr>
2781
+
2782
+ <td class="name"><code>font</code></td>
2783
+
2784
+
2785
+ <td class="type">
2786
+
2787
+
2788
+ <span class="param-type">String</span>
2789
+
2790
+
2791
+
2792
+ </td>
2793
+
2794
+
2795
+ <td class="attributes">
2796
+
2797
+ &lt;optional><br>
2798
+
2799
+
2800
+
2801
+
2802
+
2803
+ </td>
2804
+
2805
+
2806
+
2807
+ <td class="default">
2808
+
2809
+ 'monospace'
2810
+
2811
+ </td>
2812
+
2813
+
2814
+ <td class="description last"></td>
2815
+ </tr>
2816
+
2817
+
2818
+ </tbody>
2819
+ </table>
2820
+
2821
+ </div>
2822
+
2823
+
2824
+
2825
+
2826
+
2827
+
2828
+
2829
+ <dl class="details">
2830
+
2831
+
2832
+
2833
+
2834
+
2835
+
2836
+
2837
+
2838
+
2839
+
2840
+
2841
+
2842
+
2843
+
2844
+
2845
+
2846
+
2847
+
2848
+
2849
+
2850
+
2851
+
2852
+
2853
+
2854
+
2855
+
2856
+ <div class="details-item-container">
2857
+ <dt class="tag-source">Source:</dt>
2858
+ <dd class="tag-source"><ul class="dummy"><li>
2859
+ <a href="engineDebug.js.html">engineDebug.js</a>, <a href="engineDebug.js.html#line121">line 121</a>
2860
+ </li></ul></dd>
2861
+ </div>
2862
+
2863
+
2864
+
2865
+
2866
+
2867
+
2868
+
2869
+ </dl>
2870
+
2871
+
2872
+
2873
+
2874
+
2875
+
2876
+
2877
+
2878
+
2879
+
2880
+
2881
+
2882
+
2883
+
2884
+
2885
+
2886
+
2887
+
2888
+
2889
+
2890
+
2891
+
2892
+
2893
+
2894
+ </article>
2895
+
2896
+ </section>
2897
+
2898
+
2899
+
2900
+
2901
+ </div>
2902
+
2903
+ <footer class="footer" id="footer">
2904
+ <a href=https://github.com/KilledByAPixel/LittleJS>LittleJS - MIT License - Copyright 2021 Frank Force</a>
2905
+ </footer>
2906
+
2907
+ <script src="scripts/third-party/prettify.js"></script>
2908
+ <script src="scripts/third-party/lang-css.js"></script>
2909
+ <script type="text/javascript" src="scripts/misc.js"></script>
2910
+
2911
+ <script>prettyPrint();</script>
2912
+ <script src="scripts/linenumber.js"></script>
2913
+ <script src="scripts/fix-code-block.js"></script>
2914
+ <script src="scripts/fix-navbar.js"></script>
2915
+
2916
+ <script src="scripts/search.js"></script>
2917
+ <script src="scripts/third-party/fuse.js"></script>
2918
+ <script>
2919
+ var list = [{"title":"Color","link":"<a href=\"Color.html\">Color</a>"},{"title":"Color#add","link":"<a href=\"Color.html#add\">Color &rtrif; add</a>"},{"title":"Color#clamp","link":"<a href=\"Color.html#clamp\">Color &rtrif; clamp</a>"},{"title":"Color#copy","link":"<a href=\"Color.html#copy\">Color &rtrif; copy</a>"},{"title":"Color#divide","link":"<a href=\"Color.html#divide\">Color &rtrif; divide</a>"},{"title":"Color#lerp","link":"<a href=\"Color.html#lerp\">Color &rtrif; lerp</a>"},{"title":"Color#multiply","link":"<a href=\"Color.html#multiply\">Color &rtrif; multiply</a>"},{"title":"Color#mutate","link":"<a href=\"Color.html#mutate\">Color &rtrif; mutate</a>"},{"title":"Color#rgba","link":"<a href=\"Color.html#rgba\">Color &rtrif; rgba</a>"},{"title":"Color#rgbaInt","link":"<a href=\"Color.html#rgbaInt\">Color &rtrif; rgbaInt</a>"},{"title":"Color#scale","link":"<a href=\"Color.html#scale\">Color &rtrif; scale</a>"},{"title":"Color#setHSLA","link":"<a href=\"Color.html#setHSLA\">Color &rtrif; setHSLA</a>"},{"title":"Color#subtract","link":"<a href=\"Color.html#subtract\">Color &rtrif; subtract</a>"},{"title":"EngineObject","link":"<a href=\"EngineObject.html\">EngineObject</a>"},{"title":"EngineObject#addChild","link":"<a href=\"EngineObject.html#addChild\">EngineObject &rtrif; addChild</a>"},{"title":"EngineObject#applyAcceleration","link":"<a href=\"EngineObject.html#applyAcceleration\">EngineObject &rtrif; applyAcceleration</a>"},{"title":"EngineObject#applyForce","link":"<a href=\"EngineObject.html#applyForce\">EngineObject &rtrif; applyForce</a>"},{"title":"EngineObject#collideWithObject","link":"<a href=\"EngineObject.html#collideWithObject\">EngineObject &rtrif; collideWithObject</a>"},{"title":"EngineObject#collideWithTile","link":"<a href=\"EngineObject.html#collideWithTile\">EngineObject &rtrif; collideWithTile</a>"},{"title":"EngineObject#collideWithTileRaycast","link":"<a href=\"EngineObject.html#collideWithTileRaycast\">EngineObject &rtrif; collideWithTileRaycast</a>"},{"title":"EngineObject#destroy","link":"<a href=\"EngineObject.html#destroy\">EngineObject &rtrif; destroy</a>"},{"title":"EngineObject#getAliveTime","link":"<a href=\"EngineObject.html#getAliveTime\">EngineObject &rtrif; getAliveTime</a>"},{"title":"EngineObject#getMirrorSign","link":"<a href=\"EngineObject.html#getMirrorSign\">EngineObject &rtrif; getMirrorSign</a>"},{"title":"EngineObject#removeChild","link":"<a href=\"EngineObject.html#removeChild\">EngineObject &rtrif; removeChild</a>"},{"title":"EngineObject#render","link":"<a href=\"EngineObject.html#render\">EngineObject &rtrif; render</a>"},{"title":"EngineObject#setCollision","link":"<a href=\"EngineObject.html#setCollision\">EngineObject &rtrif; setCollision</a>"},{"title":"EngineObject#update","link":"<a href=\"EngineObject.html#update\">EngineObject &rtrif; update</a>"},{"title":"Medal","link":"<a href=\"Medal.html\">Medal</a>"},{"title":"Medal#render","link":"<a href=\"Medal.html#render\">Medal &rtrif; render</a>"},{"title":"Medal#renderIcon","link":"<a href=\"Medal.html#renderIcon\">Medal &rtrif; renderIcon</a>"},{"title":"Medal#unlock","link":"<a href=\"Medal.html#unlock\">Medal &rtrif; unlock</a>"},{"title":"Music","link":"<a href=\"Music.html\">Music</a>"},{"title":"Music#play","link":"<a href=\"Music.html#play\">Music &rtrif; play</a>"},{"title":"Newgrounds","link":"<a href=\"Newgrounds.html\">Newgrounds</a>"},{"title":"Newgrounds#call","link":"<a href=\"Newgrounds.html#call\">Newgrounds &rtrif; call</a>"},{"title":"Newgrounds#getScores","link":"<a href=\"Newgrounds.html#getScores\">Newgrounds &rtrif; getScores</a>"},{"title":"Newgrounds#logView","link":"<a href=\"Newgrounds.html#logView\">Newgrounds &rtrif; logView</a>"},{"title":"Newgrounds#postScore","link":"<a href=\"Newgrounds.html#postScore\">Newgrounds &rtrif; postScore</a>"},{"title":"Newgrounds#unlockMedal","link":"<a href=\"Newgrounds.html#unlockMedal\">Newgrounds &rtrif; unlockMedal</a>"},{"title":"Particle","link":"<a href=\"Particle.html\">Particle</a>"},{"title":"Particle#addChild","link":"<a href=\"Particle.html#addChild\">Particle &rtrif; addChild</a>"},{"title":"Particle#applyAcceleration","link":"<a href=\"Particle.html#applyAcceleration\">Particle &rtrif; applyAcceleration</a>"},{"title":"Particle#applyForce","link":"<a href=\"Particle.html#applyForce\">Particle &rtrif; applyForce</a>"},{"title":"Particle#collideWithObject","link":"<a href=\"Particle.html#collideWithObject\">Particle &rtrif; collideWithObject</a>"},{"title":"Particle#collideWithTile","link":"<a href=\"Particle.html#collideWithTile\">Particle &rtrif; collideWithTile</a>"},{"title":"Particle#collideWithTileRaycast","link":"<a href=\"Particle.html#collideWithTileRaycast\">Particle &rtrif; collideWithTileRaycast</a>"},{"title":"Particle#destroy","link":"<a href=\"Particle.html#destroy\">Particle &rtrif; destroy</a>"},{"title":"Particle#getAliveTime","link":"<a href=\"Particle.html#getAliveTime\">Particle &rtrif; getAliveTime</a>"},{"title":"Particle#getMirrorSign","link":"<a href=\"Particle.html#getMirrorSign\">Particle &rtrif; getMirrorSign</a>"},{"title":"Particle#removeChild","link":"<a href=\"Particle.html#removeChild\">Particle &rtrif; removeChild</a>"},{"title":"Particle#render","link":"<a href=\"Particle.html#render\">Particle &rtrif; render</a>"},{"title":"Particle#setCollision","link":"<a href=\"Particle.html#setCollision\">Particle &rtrif; setCollision</a>"},{"title":"Particle#update","link":"<a href=\"Particle.html#update\">Particle &rtrif; update</a>"},{"title":"ParticleEmitter","link":"<a href=\"ParticleEmitter.html\">ParticleEmitter</a>"},{"title":"ParticleEmitter#addChild","link":"<a href=\"ParticleEmitter.html#addChild\">ParticleEmitter &rtrif; addChild</a>"},{"title":"ParticleEmitter#applyAcceleration","link":"<a href=\"ParticleEmitter.html#applyAcceleration\">ParticleEmitter &rtrif; applyAcceleration</a>"},{"title":"ParticleEmitter#applyForce","link":"<a href=\"ParticleEmitter.html#applyForce\">ParticleEmitter &rtrif; applyForce</a>"},{"title":"ParticleEmitter#collideWithObject","link":"<a href=\"ParticleEmitter.html#collideWithObject\">ParticleEmitter &rtrif; collideWithObject</a>"},{"title":"ParticleEmitter#collideWithTile","link":"<a href=\"ParticleEmitter.html#collideWithTile\">ParticleEmitter &rtrif; collideWithTile</a>"},{"title":"ParticleEmitter#collideWithTileRaycast","link":"<a href=\"ParticleEmitter.html#collideWithTileRaycast\">ParticleEmitter &rtrif; collideWithTileRaycast</a>"},{"title":"ParticleEmitter#destroy","link":"<a href=\"ParticleEmitter.html#destroy\">ParticleEmitter &rtrif; destroy</a>"},{"title":"ParticleEmitter#emitParticle","link":"<a href=\"ParticleEmitter.html#emitParticle\">ParticleEmitter &rtrif; emitParticle</a>"},{"title":"ParticleEmitter#getAliveTime","link":"<a href=\"ParticleEmitter.html#getAliveTime\">ParticleEmitter &rtrif; getAliveTime</a>"},{"title":"ParticleEmitter#getMirrorSign","link":"<a href=\"ParticleEmitter.html#getMirrorSign\">ParticleEmitter &rtrif; getMirrorSign</a>"},{"title":"ParticleEmitter#removeChild","link":"<a href=\"ParticleEmitter.html#removeChild\">ParticleEmitter &rtrif; removeChild</a>"},{"title":"ParticleEmitter#render","link":"<a href=\"ParticleEmitter.html#render\">ParticleEmitter &rtrif; render</a>"},{"title":"ParticleEmitter#setCollision","link":"<a href=\"ParticleEmitter.html#setCollision\">ParticleEmitter &rtrif; setCollision</a>"},{"title":"ParticleEmitter#update","link":"<a href=\"ParticleEmitter.html#update\">ParticleEmitter &rtrif; update</a>"},{"title":"Sound","link":"<a href=\"Sound.html\">Sound</a>"},{"title":"Sound#play","link":"<a href=\"Sound.html#play\">Sound &rtrif; play</a>"},{"title":"Sound#playNote","link":"<a href=\"Sound.html#playNote\">Sound &rtrif; playNote</a>"},{"title":"TileLayer","link":"<a href=\"TileLayer.html\">TileLayer</a>"},{"title":"TileLayer#addChild","link":"<a href=\"TileLayer.html#addChild\">TileLayer &rtrif; addChild</a>"},{"title":"TileLayer#applyAcceleration","link":"<a href=\"TileLayer.html#applyAcceleration\">TileLayer &rtrif; applyAcceleration</a>"},{"title":"TileLayer#applyForce","link":"<a href=\"TileLayer.html#applyForce\">TileLayer &rtrif; applyForce</a>"},{"title":"TileLayer#collideWithObject","link":"<a href=\"TileLayer.html#collideWithObject\">TileLayer &rtrif; collideWithObject</a>"},{"title":"TileLayer#collideWithTile","link":"<a href=\"TileLayer.html#collideWithTile\">TileLayer &rtrif; collideWithTile</a>"},{"title":"TileLayer#collideWithTileRaycast","link":"<a href=\"TileLayer.html#collideWithTileRaycast\">TileLayer &rtrif; collideWithTileRaycast</a>"},{"title":"TileLayer#destroy","link":"<a href=\"TileLayer.html#destroy\">TileLayer &rtrif; destroy</a>"},{"title":"TileLayer#drawAllTileData","link":"<a href=\"TileLayer.html#drawAllTileData\">TileLayer &rtrif; drawAllTileData</a>"},{"title":"TileLayer#drawCanvas2D","link":"<a href=\"TileLayer.html#drawCanvas2D\">TileLayer &rtrif; drawCanvas2D</a>"},{"title":"TileLayer#drawRect","link":"<a href=\"TileLayer.html#drawRect\">TileLayer &rtrif; drawRect</a>"},{"title":"TileLayer#drawTile","link":"<a href=\"TileLayer.html#drawTile\">TileLayer &rtrif; drawTile</a>"},{"title":"TileLayer#drawTileData","link":"<a href=\"TileLayer.html#drawTileData\">TileLayer &rtrif; drawTileData</a>"},{"title":"TileLayer#getAliveTime","link":"<a href=\"TileLayer.html#getAliveTime\">TileLayer &rtrif; getAliveTime</a>"},{"title":"TileLayer#getData","link":"<a href=\"TileLayer.html#getData\">TileLayer &rtrif; getData</a>"},{"title":"TileLayer#getMirrorSign","link":"<a href=\"TileLayer.html#getMirrorSign\">TileLayer &rtrif; getMirrorSign</a>"},{"title":"TileLayer#redraw","link":"<a href=\"TileLayer.html#redraw\">TileLayer &rtrif; redraw</a>"},{"title":"TileLayer#redrawEnd","link":"<a href=\"TileLayer.html#redrawEnd\">TileLayer &rtrif; redrawEnd</a>"},{"title":"TileLayer#redrawStart","link":"<a href=\"TileLayer.html#redrawStart\">TileLayer &rtrif; redrawStart</a>"},{"title":"TileLayer#removeChild","link":"<a href=\"TileLayer.html#removeChild\">TileLayer &rtrif; removeChild</a>"},{"title":"TileLayer#render","link":"<a href=\"TileLayer.html#render\">TileLayer &rtrif; render</a>"},{"title":"TileLayer#setCollision","link":"<a href=\"TileLayer.html#setCollision\">TileLayer &rtrif; setCollision</a>"},{"title":"TileLayer#setData","link":"<a href=\"TileLayer.html#setData\">TileLayer &rtrif; setData</a>"},{"title":"TileLayer#update","link":"<a href=\"TileLayer.html#update\">TileLayer &rtrif; update</a>"},{"title":"TileLayerData","link":"<a href=\"TileLayerData.html\">TileLayerData</a>"},{"title":"TileLayerData#clear","link":"<a href=\"TileLayerData.html#clear\">TileLayerData &rtrif; clear</a>"},{"title":"Timer","link":"<a href=\"Timer.html\">Timer</a>"},{"title":"Timer#active","link":"<a href=\"Timer.html#active\">Timer &rtrif; active</a>"},{"title":"Timer#elapsed","link":"<a href=\"Timer.html#elapsed\">Timer &rtrif; elapsed</a>"},{"title":"Timer#get","link":"<a href=\"Timer.html#get\">Timer &rtrif; get</a>"},{"title":"Timer#getPercent","link":"<a href=\"Timer.html#getPercent\">Timer &rtrif; getPercent</a>"},{"title":"Timer#isSet","link":"<a href=\"Timer.html#isSet\">Timer &rtrif; isSet</a>"},{"title":"Timer#set","link":"<a href=\"Timer.html#set\">Timer &rtrif; set</a>"},{"title":"Timer#unset","link":"<a href=\"Timer.html#unset\">Timer &rtrif; unset</a>"},{"title":"Vector2","link":"<a href=\"Vector2.html\">Vector2</a>"},{"title":"Vector2#add","link":"<a href=\"Vector2.html#add\">Vector2 &rtrif; add</a>"},{"title":"Vector2#angle","link":"<a href=\"Vector2.html#angle\">Vector2 &rtrif; angle</a>"},{"title":"Vector2#area","link":"<a href=\"Vector2.html#area\">Vector2 &rtrif; area</a>"},{"title":"Vector2#arrayCheck","link":"<a href=\"Vector2.html#arrayCheck\">Vector2 &rtrif; arrayCheck</a>"},{"title":"Vector2#clampLength","link":"<a href=\"Vector2.html#clampLength\">Vector2 &rtrif; clampLength</a>"},{"title":"Vector2#copy","link":"<a href=\"Vector2.html#copy\">Vector2 &rtrif; copy</a>"},{"title":"Vector2#cross","link":"<a href=\"Vector2.html#cross\">Vector2 &rtrif; cross</a>"},{"title":"Vector2#direction","link":"<a href=\"Vector2.html#direction\">Vector2 &rtrif; direction</a>"},{"title":"Vector2#distance","link":"<a href=\"Vector2.html#distance\">Vector2 &rtrif; distance</a>"},{"title":"Vector2#distanceSquared","link":"<a href=\"Vector2.html#distanceSquared\">Vector2 &rtrif; distanceSquared</a>"},{"title":"Vector2#divide","link":"<a href=\"Vector2.html#divide\">Vector2 &rtrif; divide</a>"},{"title":"Vector2#dot","link":"<a href=\"Vector2.html#dot\">Vector2 &rtrif; dot</a>"},{"title":"Vector2#flip","link":"<a href=\"Vector2.html#flip\">Vector2 &rtrif; flip</a>"},{"title":"Vector2#floor","link":"<a href=\"Vector2.html#floor\">Vector2 &rtrif; floor</a>"},{"title":"Vector2#invert","link":"<a href=\"Vector2.html#invert\">Vector2 &rtrif; invert</a>"},{"title":"Vector2#length","link":"<a href=\"Vector2.html#length\">Vector2 &rtrif; length</a>"},{"title":"Vector2#lengthSquared","link":"<a href=\"Vector2.html#lengthSquared\">Vector2 &rtrif; lengthSquared</a>"},{"title":"Vector2#lerp","link":"<a href=\"Vector2.html#lerp\">Vector2 &rtrif; lerp</a>"},{"title":"Vector2#multiply","link":"<a href=\"Vector2.html#multiply\">Vector2 &rtrif; multiply</a>"},{"title":"Vector2#normalize","link":"<a href=\"Vector2.html#normalize\">Vector2 &rtrif; normalize</a>"},{"title":"Vector2#rotate","link":"<a href=\"Vector2.html#rotate\">Vector2 &rtrif; rotate</a>"},{"title":"Vector2#scale","link":"<a href=\"Vector2.html#scale\">Vector2 &rtrif; scale</a>"},{"title":"Vector2#setAngle","link":"<a href=\"Vector2.html#setAngle\">Vector2 &rtrif; setAngle</a>"},{"title":"Vector2#subtract","link":"<a href=\"Vector2.html#subtract\">Vector2 &rtrif; subtract</a>"},{"title":"Audio","link":"<a href=\"Audio.html\">Audio</a>"},{"title":"Audio.getNoteFrequency","link":"<a href=\"Audio.html#.getNoteFrequency\">Audio.getNoteFrequency &rtrif; undefined</a>"},{"title":"Audio.playAudioFile","link":"<a href=\"Audio.html#.playAudioFile\">Audio.playAudioFile &rtrif; undefined</a>"},{"title":"Audio.playSamples","link":"<a href=\"Audio.html#.playSamples\">Audio.playSamples &rtrif; undefined</a>"},{"title":"Audio.speak","link":"<a href=\"Audio.html#.speak\">Audio.speak &rtrif; undefined</a>"},{"title":"Audio.stopSpeech","link":"<a href=\"Audio.html#.stopSpeech\">Audio.stopSpeech &rtrif; undefined</a>"},{"title":"Audio.zzfx","link":"<a href=\"Audio.html#.zzfx\">Audio.zzfx &rtrif; undefined</a>"},{"title":"Audio.zzfxG","link":"<a href=\"Audio.html#.zzfxG\">Audio.zzfxG &rtrif; undefined</a>"},{"title":"Audio.zzfxM","link":"<a href=\"Audio.html#.zzfxM\">Audio.zzfxM &rtrif; undefined</a>"},{"title":"Debug","link":"<a href=\"Debug.html\">Debug</a>"},{"title":"Debug.debugAABB","link":"<a href=\"Debug.html#.debugAABB\">Debug.debugAABB &rtrif; undefined</a>"},{"title":"Debug.debugCircle","link":"<a href=\"Debug.html#.debugCircle\">Debug.debugCircle &rtrif; undefined</a>"},{"title":"Debug.debugClear","link":"<a href=\"Debug.html#.debugClear\">Debug.debugClear &rtrif; undefined</a>"},{"title":"Debug.debugLine","link":"<a href=\"Debug.html#.debugLine\">Debug.debugLine &rtrif; undefined</a>"},{"title":"Debug.debugPoint","link":"<a href=\"Debug.html#.debugPoint\">Debug.debugPoint &rtrif; undefined</a>"},{"title":"Debug.debugRect","link":"<a href=\"Debug.html#.debugRect\">Debug.debugRect &rtrif; undefined</a>"},{"title":"Debug.debugSaveCanvas","link":"<a href=\"Debug.html#.debugSaveCanvas\">Debug.debugSaveCanvas &rtrif; undefined</a>"},{"title":"Debug.debugText","link":"<a href=\"Debug.html#.debugText\">Debug.debugText &rtrif; undefined</a>"},{"title":"Draw","link":"<a href=\"Draw.html\">Draw</a>"},{"title":"Draw.drawCanvas2D","link":"<a href=\"Draw.html#.drawCanvas2D\">Draw.drawCanvas2D &rtrif; undefined</a>"},{"title":"Draw.drawLine","link":"<a href=\"Draw.html#.drawLine\">Draw.drawLine &rtrif; undefined</a>"},{"title":"Draw.drawRect","link":"<a href=\"Draw.html#.drawRect\">Draw.drawRect &rtrif; undefined</a>"},{"title":"Draw.drawRectScreenSpace","link":"<a href=\"Draw.html#.drawRectScreenSpace\">Draw.drawRectScreenSpace &rtrif; undefined</a>"},{"title":"Draw.drawText","link":"<a href=\"Draw.html#.drawText\">Draw.drawText &rtrif; undefined</a>"},{"title":"Draw.drawTile","link":"<a href=\"Draw.html#.drawTile\">Draw.drawTile &rtrif; undefined</a>"},{"title":"Draw.drawTileScreenSpace","link":"<a href=\"Draw.html#.drawTileScreenSpace\">Draw.drawTileScreenSpace &rtrif; undefined</a>"},{"title":"Draw.isFullscreen","link":"<a href=\"Draw.html#.isFullscreen\">Draw.isFullscreen &rtrif; undefined</a>"},{"title":"Draw.screenToWorld","link":"<a href=\"Draw.html#.screenToWorld\">Draw.screenToWorld &rtrif; undefined</a>"},{"title":"Draw.setBlendMode","link":"<a href=\"Draw.html#.setBlendMode\">Draw.setBlendMode &rtrif; undefined</a>"},{"title":"Draw.toggleFullscreen","link":"<a href=\"Draw.html#.toggleFullscreen\">Draw.toggleFullscreen &rtrif; undefined</a>"},{"title":"Draw.worldToScreen","link":"<a href=\"Draw.html#.worldToScreen\">Draw.worldToScreen &rtrif; undefined</a>"},{"title":"Input","link":"<a href=\"Input.html\">Input</a>"},{"title":"Input.clearInput","link":"<a href=\"Input.html#.clearInput\">Input.clearInput &rtrif; undefined</a>"},{"title":"Input.gamepadIsDown","link":"<a href=\"Input.html#.gamepadIsDown\">Input.gamepadIsDown &rtrif; undefined</a>"},{"title":"Input.gamepadStick","link":"<a href=\"Input.html#.gamepadStick\">Input.gamepadStick &rtrif; undefined</a>"},{"title":"Input.gamepadWasPressed","link":"<a href=\"Input.html#.gamepadWasPressed\">Input.gamepadWasPressed &rtrif; undefined</a>"},{"title":"Input.gamepadWasReleased","link":"<a href=\"Input.html#.gamepadWasReleased\">Input.gamepadWasReleased &rtrif; undefined</a>"},{"title":"Input.keyIsDown","link":"<a href=\"Input.html#.keyIsDown\">Input.keyIsDown &rtrif; undefined</a>"},{"title":"Input.keyWasPressed","link":"<a href=\"Input.html#.keyWasPressed\">Input.keyWasPressed &rtrif; undefined</a>"},{"title":"Input.keyWasReleased","link":"<a href=\"Input.html#.keyWasReleased\">Input.keyWasReleased &rtrif; undefined</a>"},{"title":"Medals","link":"<a href=\"Medals.html\">Medals</a>"},{"title":"Medals.medalsInit","link":"<a href=\"Medals.html#.medalsInit\">Medals.medalsInit &rtrif; undefined</a>"},{"title":"Random","link":"<a href=\"Random.html\">Random</a>"},{"title":"Random.rand","link":"<a href=\"Random.html#.rand\">Random.rand &rtrif; undefined</a>"},{"title":"Random.randColor","link":"<a href=\"Random.html#.randColor\">Random.randColor &rtrif; undefined</a>"},{"title":"Random.randInCircle","link":"<a href=\"Random.html#.randInCircle\">Random.randInCircle &rtrif; undefined</a>"},{"title":"Random.randInt","link":"<a href=\"Random.html#.randInt\">Random.randInt &rtrif; undefined</a>"},{"title":"Random.randSeeded","link":"<a href=\"Random.html#.randSeeded\">Random.randSeeded &rtrif; undefined</a>"},{"title":"Random.randSign","link":"<a href=\"Random.html#.randSign\">Random.randSign &rtrif; undefined</a>"},{"title":"Random.randVector","link":"<a href=\"Random.html#.randVector\">Random.randVector &rtrif; undefined</a>"},{"title":"Settings","link":"<a href=\"Settings.html\">Settings</a>"},{"title":"TileCollision","link":"<a href=\"TileCollision.html\">TileCollision</a>"},{"title":"TileCollision.getTileCollisionData","link":"<a href=\"TileCollision.html#.getTileCollisionData\">TileCollision.getTileCollisionData &rtrif; undefined</a>"},{"title":"TileCollision.initTileCollision","link":"<a href=\"TileCollision.html#.initTileCollision\">TileCollision.initTileCollision &rtrif; undefined</a>"},{"title":"TileCollision.setTileCollisionData","link":"<a href=\"TileCollision.html#.setTileCollisionData\">TileCollision.setTileCollisionData &rtrif; undefined</a>"},{"title":"TileCollision.tileCollisionRaycast","link":"<a href=\"TileCollision.html#.tileCollisionRaycast\">TileCollision.tileCollisionRaycast &rtrif; undefined</a>"},{"title":"TileCollision.tileCollisionTest","link":"<a href=\"TileCollision.html#.tileCollisionTest\">TileCollision.tileCollisionTest &rtrif; undefined</a>"},{"title":"Utilities","link":"<a href=\"Utilities.html\">Utilities</a>"},{"title":"Utilities.abs","link":"<a href=\"Utilities.html#.abs\">Utilities.abs &rtrif; undefined</a>"},{"title":"Utilities.clamp","link":"<a href=\"Utilities.html#.clamp\">Utilities.clamp &rtrif; undefined</a>"},{"title":"Utilities.formatTime","link":"<a href=\"Utilities.html#.formatTime\">Utilities.formatTime &rtrif; undefined</a>"},{"title":"Utilities.isOverlapping","link":"<a href=\"Utilities.html#.isOverlapping\">Utilities.isOverlapping &rtrif; undefined</a>"},{"title":"Utilities.lerp","link":"<a href=\"Utilities.html#.lerp\">Utilities.lerp &rtrif; undefined</a>"},{"title":"Utilities.max","link":"<a href=\"Utilities.html#.max\">Utilities.max &rtrif; undefined</a>"},{"title":"Utilities.min","link":"<a href=\"Utilities.html#.min\">Utilities.min &rtrif; undefined</a>"},{"title":"Utilities.mod","link":"<a href=\"Utilities.html#.mod\">Utilities.mod &rtrif; undefined</a>"},{"title":"Utilities.nearestPowerOfTwo","link":"<a href=\"Utilities.html#.nearestPowerOfTwo\">Utilities.nearestPowerOfTwo &rtrif; undefined</a>"},{"title":"Utilities.percent","link":"<a href=\"Utilities.html#.percent\">Utilities.percent &rtrif; undefined</a>"},{"title":"Utilities.sign","link":"<a href=\"Utilities.html#.sign\">Utilities.sign &rtrif; undefined</a>"},{"title":"Utilities.smoothStep","link":"<a href=\"Utilities.html#.smoothStep\">Utilities.smoothStep &rtrif; undefined</a>"},{"title":"Utilities.vec2","link":"<a href=\"Utilities.html#.vec2\">Utilities.vec2 &rtrif; undefined</a>"},{"title":"Utilities.wave","link":"<a href=\"Utilities.html#.wave\">Utilities.wave &rtrif; undefined</a>"},{"title":"WebGL","link":"<a href=\"WebGL.html\">WebGL</a>"},{"title":"WebGL.glCompileShader","link":"<a href=\"WebGL.html#.glCompileShader\">WebGL.glCompileShader &rtrif; undefined</a>"},{"title":"WebGL.glCopyToContext","link":"<a href=\"WebGL.html#.glCopyToContext\">WebGL.glCopyToContext &rtrif; undefined</a>"},{"title":"WebGL.glCreateBuffer","link":"<a href=\"WebGL.html#.glCreateBuffer\">WebGL.glCreateBuffer &rtrif; undefined</a>"},{"title":"WebGL.glCreateProgram","link":"<a href=\"WebGL.html#.glCreateProgram\">WebGL.glCreateProgram &rtrif; undefined</a>"},{"title":"WebGL.glCreateTexture","link":"<a href=\"WebGL.html#.glCreateTexture\">WebGL.glCreateTexture &rtrif; undefined</a>"},{"title":"WebGL.glDraw","link":"<a href=\"WebGL.html#.glDraw\">WebGL.glDraw &rtrif; undefined</a>"},{"title":"WebGL.glFlush","link":"<a href=\"WebGL.html#.glFlush\">WebGL.glFlush &rtrif; undefined</a>"},{"title":"WebGL.glSetBlendMode","link":"<a href=\"WebGL.html#.glSetBlendMode\">WebGL.glSetBlendMode &rtrif; undefined</a>"},{"title":"WebGL.glSetTexture","link":"<a href=\"WebGL.html#.glSetTexture\">WebGL.glSetTexture &rtrif; undefined</a>"},{"title":"engineCollideObjects","link":"<a href=\"global.html#engineCollideObjects\">engineCollideObjects</a>"},{"title":"engineInit","link":"<a href=\"global.html#engineInit\">engineInit</a>"},{"title":"engineName","link":"<a href=\"global.html#engineName\">engineName</a>"},{"title":"engineObjects","link":"<a href=\"global.html#engineObjects\">engineObjects</a>"},{"title":"engineObjectsCallback","link":"<a href=\"global.html#engineObjectsCallback\">engineObjectsCallback</a>"},{"title":"engineObjectsDestroy","link":"<a href=\"global.html#engineObjectsDestroy\">engineObjectsDestroy</a>"},{"title":"engineObjectsUpdate","link":"<a href=\"global.html#engineObjectsUpdate\">engineObjectsUpdate</a>"},{"title":"engineVersion","link":"<a href=\"global.html#engineVersion\">engineVersion</a>"},{"title":"FPS","link":"<a href=\"global.html#FPS\">FPS</a>"},{"title":"frame","link":"<a href=\"global.html#frame\">frame</a>"},{"title":"paused","link":"<a href=\"global.html#paused\">paused</a>"},{"title":"time","link":"<a href=\"global.html#time\">time</a>"},{"title":"timeDelta","link":"<a href=\"global.html#timeDelta\">timeDelta</a>"},{"title":"timeReal","link":"<a href=\"global.html#timeReal\">timeReal</a>"}];
2920
+ var options =
2921
+ setupSearch(list, options)
2922
+ </script>
2923
+
2924
+
2925
+
2926
+
2927
+
2928
+
2929
+
2930
+
2931
+
2932
+
2933
+
2934
+ </body>
2935
+
2936
+ </html>