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,4458 @@
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
+ EngineObject
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
+ EngineObject
108
+ </h1>
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ <section>
117
+
118
+
119
+ <header>
120
+
121
+
122
+ <h2>
123
+
124
+ EngineObject
125
+
126
+ </h2>
127
+
128
+
129
+ <div class="class-description">LittleJS Object Base Object Class
130
+
131
+
132
+ </header>
133
+
134
+
135
+ <article>
136
+ <div class="container-overview">
137
+
138
+
139
+
140
+
141
+ <h2>Constructor</h2>
142
+
143
+
144
+ <h4 class="name" id="EngineObject">
145
+ <a href="#EngineObject">#</a>
146
+ <span class="type-signature"></span>new EngineObject<span class="signature">(position<span class="signature-attributes">opt</span>, size<span class="signature-attributes">opt</span>, tileIndex<span class="signature-attributes">opt</span>, tileSize<span class="signature-attributes">opt</span>, angle<span class="signature-attributes">opt</span>, color<span class="signature-attributes">opt</span>, renderOrder<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
147
+ </h4>
148
+
149
+
150
+
151
+
152
+
153
+ <div class="description">
154
+ Create an engine object and adds it to the list of objects
155
+ </div>
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
166
+ <strong>Parameters:</strong>
167
+
168
+
169
+ <table class="params">
170
+ <thead>
171
+ <tr>
172
+
173
+ <th>Name</th>
174
+
175
+
176
+ <th>Type</th>
177
+
178
+
179
+ <th>Attributes</th>
180
+
181
+
182
+
183
+ <th>Default</th>
184
+
185
+
186
+ <th class="last">Description</th>
187
+ </tr>
188
+ </thead>
189
+
190
+ <tbody>
191
+
192
+
193
+ <tr>
194
+
195
+ <td class="name"><code>position</code></td>
196
+
197
+
198
+ <td class="type">
199
+
200
+
201
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
202
+
203
+
204
+
205
+ </td>
206
+
207
+
208
+ <td class="attributes">
209
+
210
+ &lt;optional><br>
211
+
212
+
213
+
214
+
215
+
216
+ </td>
217
+
218
+
219
+
220
+ <td class="default">
221
+
222
+ new Vector2(0,0)
223
+
224
+ </td>
225
+
226
+
227
+ <td class="description last">World space position of the object</td>
228
+ </tr>
229
+
230
+
231
+
232
+ <tr>
233
+
234
+ <td class="name"><code>size</code></td>
235
+
236
+
237
+ <td class="type">
238
+
239
+
240
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
241
+
242
+
243
+
244
+ </td>
245
+
246
+
247
+ <td class="attributes">
248
+
249
+ &lt;optional><br>
250
+
251
+
252
+
253
+
254
+
255
+ </td>
256
+
257
+
258
+
259
+ <td class="default">
260
+
261
+ objectDefaultSize
262
+
263
+ </td>
264
+
265
+
266
+ <td class="description last">World space size of the object</td>
267
+ </tr>
268
+
269
+
270
+
271
+ <tr>
272
+
273
+ <td class="name"><code>tileIndex</code></td>
274
+
275
+
276
+ <td class="type">
277
+
278
+
279
+ <span class="param-type">Number</span>
280
+
281
+
282
+
283
+ </td>
284
+
285
+
286
+ <td class="attributes">
287
+
288
+ &lt;optional><br>
289
+
290
+
291
+
292
+
293
+
294
+ </td>
295
+
296
+
297
+
298
+ <td class="default">
299
+
300
+ -1
301
+
302
+ </td>
303
+
304
+
305
+ <td class="description last">Tile to use to render object, untextured if -1</td>
306
+ </tr>
307
+
308
+
309
+
310
+ <tr>
311
+
312
+ <td class="name"><code>tileSize</code></td>
313
+
314
+
315
+ <td class="type">
316
+
317
+
318
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
319
+
320
+
321
+
322
+ </td>
323
+
324
+
325
+ <td class="attributes">
326
+
327
+ &lt;optional><br>
328
+
329
+
330
+
331
+
332
+
333
+ </td>
334
+
335
+
336
+
337
+ <td class="default">
338
+
339
+ tileSizeDefault
340
+
341
+ </td>
342
+
343
+
344
+ <td class="description last">Size of tile in source pixels</td>
345
+ </tr>
346
+
347
+
348
+
349
+ <tr>
350
+
351
+ <td class="name"><code>angle</code></td>
352
+
353
+
354
+ <td class="type">
355
+
356
+
357
+ <span class="param-type">Number</span>
358
+
359
+
360
+
361
+ </td>
362
+
363
+
364
+ <td class="attributes">
365
+
366
+ &lt;optional><br>
367
+
368
+
369
+
370
+
371
+
372
+ </td>
373
+
374
+
375
+
376
+ <td class="default">
377
+
378
+ 0
379
+
380
+ </td>
381
+
382
+
383
+ <td class="description last">Angle to rotate the object</td>
384
+ </tr>
385
+
386
+
387
+
388
+ <tr>
389
+
390
+ <td class="name"><code>color</code></td>
391
+
392
+
393
+ <td class="type">
394
+
395
+
396
+ <span class="param-type"><a href="Color.html">Color</a></span>
397
+
398
+
399
+
400
+ </td>
401
+
402
+
403
+ <td class="attributes">
404
+
405
+ &lt;optional><br>
406
+
407
+
408
+
409
+
410
+
411
+ </td>
412
+
413
+
414
+
415
+ <td class="default">
416
+
417
+ </td>
418
+
419
+
420
+ <td class="description last">Color to apply to tile when rendered</td>
421
+ </tr>
422
+
423
+
424
+
425
+ <tr>
426
+
427
+ <td class="name"><code>renderOrder</code></td>
428
+
429
+
430
+ <td class="type">
431
+
432
+
433
+ <span class="param-type">Number</span>
434
+
435
+
436
+
437
+ </td>
438
+
439
+
440
+ <td class="attributes">
441
+
442
+ &lt;optional><br>
443
+
444
+
445
+
446
+
447
+
448
+ </td>
449
+
450
+
451
+
452
+ <td class="default">
453
+
454
+ 0
455
+
456
+ </td>
457
+
458
+
459
+ <td class="description last">Objects sorted by renderOrder before being rendered</td>
460
+ </tr>
461
+
462
+
463
+ </tbody>
464
+ </table>
465
+
466
+ </div>
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+ <dl class="details">
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+ <div class="details-item-container">
502
+ <dt class="tag-source">Source:</dt>
503
+ <dd class="tag-source"><ul class="dummy"><li>
504
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line24">line 24</a>
505
+ </li></ul></dd>
506
+ </div>
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+ </dl>
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
533
+ <strong>Example</strong>
534
+
535
+ <div class="rel">
536
+ <pre class="prettyprint"><code>// create an engine object, normally you would first extend the class with your own
537
+
538
+
539
+ </div>
540
+
541
+ </div>
542
+
543
+
544
+
545
+ </div>
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+ <h3 class="subsection-title">Members</h3>
559
+
560
+
561
+
562
+ <h4 class="name" id="additiveColor">
563
+ <a href="#additiveColor">#</a>
564
+ <span class="type-signature"></span>additiveColor<span class="type-signature"></span>
565
+ </h4>
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+ <h5 class="subsection-title">Properties</h5>
578
+
579
+
580
+ <div class="allow-overflow">
581
+ <table class="props">
582
+ <thead>
583
+ <tr>
584
+
585
+
586
+ <th>Type</th>
587
+
588
+
589
+
590
+
591
+
592
+ <th class="last">Description</th>
593
+ </tr>
594
+ </thead>
595
+
596
+ <tbody>
597
+
598
+
599
+ <tr>
600
+
601
+
602
+ <td class="type">
603
+
604
+
605
+ <span class="param-type"><a href="Color.html">Color</a></span>
606
+
607
+
608
+
609
+ </td>
610
+
611
+
612
+
613
+
614
+
615
+ <td class="description last">Additive color to apply when rendered</td>
616
+ </tr>
617
+
618
+
619
+ </tbody>
620
+ </table>
621
+ </div>
622
+
623
+
624
+
625
+
626
+
627
+ <dl class="details">
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+ <div class="details-item-container">
655
+ <dt class="tag-source">Source:</dt>
656
+ <dd class="tag-source"><ul class="dummy"><li>
657
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line55">line 55</a>
658
+ </li></ul></dd>
659
+ </div>
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+ </dl>
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+ <h4 class="name" id="angle">
679
+ <a href="#angle">#</a>
680
+ <span class="type-signature"></span>angle<span class="type-signature"></span>
681
+ </h4>
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+ <h5 class="subsection-title">Properties</h5>
694
+
695
+
696
+ <div class="allow-overflow">
697
+ <table class="props">
698
+ <thead>
699
+ <tr>
700
+
701
+
702
+ <th>Type</th>
703
+
704
+
705
+
706
+
707
+
708
+ <th class="last">Description</th>
709
+ </tr>
710
+ </thead>
711
+
712
+ <tbody>
713
+
714
+
715
+ <tr>
716
+
717
+
718
+ <td class="type">
719
+
720
+
721
+ <span class="param-type">Number</span>
722
+
723
+
724
+
725
+ </td>
726
+
727
+
728
+
729
+
730
+
731
+ <td class="description last">Angle to rotate the object</td>
732
+ </tr>
733
+
734
+
735
+ </tbody>
736
+ </table>
737
+ </div>
738
+
739
+
740
+
741
+
742
+
743
+ <dl class="details">
744
+
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+ <div class="details-item-container">
771
+ <dt class="tag-source">Source:</dt>
772
+ <dd class="tag-source"><ul class="dummy"><li>
773
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line51">line 51</a>
774
+ </li></ul></dd>
775
+ </div>
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+ </dl>
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+ <h4 class="name" id="angleDamping">
795
+ <a href="#angleDamping">#</a>
796
+ <span class="type-signature"></span>angleDamping<span class="type-signature"></span>
797
+ </h4>
798
+
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+ <h5 class="subsection-title">Properties</h5>
810
+
811
+
812
+ <div class="allow-overflow">
813
+ <table class="props">
814
+ <thead>
815
+ <tr>
816
+
817
+ <th>Name</th>
818
+
819
+
820
+ <th>Type</th>
821
+
822
+
823
+ <th>Attributes</th>
824
+
825
+
826
+
827
+ <th>Default</th>
828
+
829
+
830
+ <th class="last">Description</th>
831
+ </tr>
832
+ </thead>
833
+
834
+ <tbody>
835
+
836
+
837
+ <tr>
838
+
839
+ <td class="name"><code>angleDamping</code></td>
840
+
841
+
842
+ <td class="type">
843
+
844
+
845
+ <span class="param-type">Number</span>
846
+
847
+
848
+
849
+ </td>
850
+
851
+
852
+ <td class="attributes">
853
+
854
+ &lt;optional><br>
855
+
856
+
857
+
858
+ </td>
859
+
860
+
861
+
862
+ <td class="default">
863
+
864
+ objectDefaultAngleDamping
865
+
866
+ </td>
867
+
868
+
869
+ <td class="description last">How much to slow down rotation each frame (0-1)</td>
870
+ </tr>
871
+
872
+
873
+ </tbody>
874
+ </table>
875
+ </div>
876
+
877
+
878
+
879
+
880
+
881
+ <dl class="details">
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+
891
+
892
+
893
+
894
+
895
+
896
+
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+
907
+
908
+ <div class="details-item-container">
909
+ <dt class="tag-source">Source:</dt>
910
+ <dd class="tag-source"><ul class="dummy"><li>
911
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line63">line 63</a>
912
+ </li></ul></dd>
913
+ </div>
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+ </dl>
922
+
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+ <h4 class="name" id="color">
933
+ <a href="#color">#</a>
934
+ <span class="type-signature"></span>color<span class="type-signature"></span>
935
+ </h4>
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+ <h5 class="subsection-title">Properties</h5>
948
+
949
+
950
+ <div class="allow-overflow">
951
+ <table class="props">
952
+ <thead>
953
+ <tr>
954
+
955
+
956
+ <th>Type</th>
957
+
958
+
959
+
960
+
961
+
962
+ <th class="last">Description</th>
963
+ </tr>
964
+ </thead>
965
+
966
+ <tbody>
967
+
968
+
969
+ <tr>
970
+
971
+
972
+ <td class="type">
973
+
974
+
975
+ <span class="param-type"><a href="Color.html">Color</a></span>
976
+
977
+
978
+
979
+ </td>
980
+
981
+
982
+
983
+
984
+
985
+ <td class="description last">Color to apply when rendered</td>
986
+ </tr>
987
+
988
+
989
+ </tbody>
990
+ </table>
991
+ </div>
992
+
993
+
994
+
995
+
996
+
997
+ <dl class="details">
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+ <div class="details-item-container">
1025
+ <dt class="tag-source">Source:</dt>
1026
+ <dd class="tag-source"><ul class="dummy"><li>
1027
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line53">line 53</a>
1028
+ </li></ul></dd>
1029
+ </div>
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+ </dl>
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+ <h4 class="name" id="damping">
1049
+ <a href="#damping">#</a>
1050
+ <span class="type-signature"></span>damping<span class="type-signature"></span>
1051
+ </h4>
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+ <h5 class="subsection-title">Properties</h5>
1064
+
1065
+
1066
+ <div class="allow-overflow">
1067
+ <table class="props">
1068
+ <thead>
1069
+ <tr>
1070
+
1071
+ <th>Name</th>
1072
+
1073
+
1074
+ <th>Type</th>
1075
+
1076
+
1077
+ <th>Attributes</th>
1078
+
1079
+
1080
+
1081
+ <th>Default</th>
1082
+
1083
+
1084
+ <th class="last">Description</th>
1085
+ </tr>
1086
+ </thead>
1087
+
1088
+ <tbody>
1089
+
1090
+
1091
+ <tr>
1092
+
1093
+ <td class="name"><code>damping</code></td>
1094
+
1095
+
1096
+ <td class="type">
1097
+
1098
+
1099
+ <span class="param-type">Number</span>
1100
+
1101
+
1102
+
1103
+ </td>
1104
+
1105
+
1106
+ <td class="attributes">
1107
+
1108
+ &lt;optional><br>
1109
+
1110
+
1111
+
1112
+ </td>
1113
+
1114
+
1115
+
1116
+ <td class="default">
1117
+
1118
+ objectDefaultDamping
1119
+
1120
+ </td>
1121
+
1122
+
1123
+ <td class="description last">How much to slow down velocity each frame (0-1)</td>
1124
+ </tr>
1125
+
1126
+
1127
+ </tbody>
1128
+ </table>
1129
+ </div>
1130
+
1131
+
1132
+
1133
+
1134
+
1135
+ <dl class="details">
1136
+
1137
+
1138
+
1139
+
1140
+
1141
+
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+ <div class="details-item-container">
1163
+ <dt class="tag-source">Source:</dt>
1164
+ <dd class="tag-source"><ul class="dummy"><li>
1165
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line61">line 61</a>
1166
+ </li></ul></dd>
1167
+ </div>
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+
1175
+ </dl>
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+ <h4 class="name" id="drawSize">
1187
+ <a href="#drawSize">#</a>
1188
+ <span class="type-signature"></span>drawSize<span class="type-signature"></span>
1189
+ </h4>
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+ <h5 class="subsection-title">Properties</h5>
1202
+
1203
+
1204
+ <div class="allow-overflow">
1205
+ <table class="props">
1206
+ <thead>
1207
+ <tr>
1208
+
1209
+
1210
+ <th>Type</th>
1211
+
1212
+
1213
+
1214
+
1215
+
1216
+ <th class="last">Description</th>
1217
+ </tr>
1218
+ </thead>
1219
+
1220
+ <tbody>
1221
+
1222
+
1223
+ <tr>
1224
+
1225
+
1226
+ <td class="type">
1227
+
1228
+
1229
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1230
+
1231
+
1232
+
1233
+ </td>
1234
+
1235
+
1236
+
1237
+
1238
+
1239
+ <td class="description last">Size of object used for drawing, uses size if not set</td>
1240
+ </tr>
1241
+
1242
+
1243
+ </tbody>
1244
+ </table>
1245
+ </div>
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+ <dl class="details">
1252
+
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+
1267
+
1268
+
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+ <div class="details-item-container">
1279
+ <dt class="tag-source">Source:</dt>
1280
+ <dd class="tag-source"><ul class="dummy"><li>
1281
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line45">line 45</a>
1282
+ </li></ul></dd>
1283
+ </div>
1284
+
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+
1291
+ </dl>
1292
+
1293
+
1294
+
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+ <h4 class="name" id="elasticity">
1303
+ <a href="#elasticity">#</a>
1304
+ <span class="type-signature"></span>elasticity<span class="type-signature"></span>
1305
+ </h4>
1306
+
1307
+
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+
1314
+
1315
+
1316
+
1317
+ <h5 class="subsection-title">Properties</h5>
1318
+
1319
+
1320
+ <div class="allow-overflow">
1321
+ <table class="props">
1322
+ <thead>
1323
+ <tr>
1324
+
1325
+ <th>Name</th>
1326
+
1327
+
1328
+ <th>Type</th>
1329
+
1330
+
1331
+ <th>Attributes</th>
1332
+
1333
+
1334
+
1335
+ <th>Default</th>
1336
+
1337
+
1338
+ <th class="last">Description</th>
1339
+ </tr>
1340
+ </thead>
1341
+
1342
+ <tbody>
1343
+
1344
+
1345
+ <tr>
1346
+
1347
+ <td class="name"><code>elasticity</code></td>
1348
+
1349
+
1350
+ <td class="type">
1351
+
1352
+
1353
+ <span class="param-type">Number</span>
1354
+
1355
+
1356
+
1357
+ </td>
1358
+
1359
+
1360
+ <td class="attributes">
1361
+
1362
+ &lt;optional><br>
1363
+
1364
+
1365
+
1366
+ </td>
1367
+
1368
+
1369
+
1370
+ <td class="default">
1371
+
1372
+ objectDefaultElasticity
1373
+
1374
+ </td>
1375
+
1376
+
1377
+ <td class="description last">How bouncy the object is when colliding (0-1)</td>
1378
+ </tr>
1379
+
1380
+
1381
+ </tbody>
1382
+ </table>
1383
+ </div>
1384
+
1385
+
1386
+
1387
+
1388
+
1389
+ <dl class="details">
1390
+
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+ <div class="details-item-container">
1417
+ <dt class="tag-source">Source:</dt>
1418
+ <dd class="tag-source"><ul class="dummy"><li>
1419
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line65">line 65</a>
1420
+ </li></ul></dd>
1421
+ </div>
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+
1428
+
1429
+ </dl>
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+ <h4 class="name" id="friction">
1441
+ <a href="#friction">#</a>
1442
+ <span class="type-signature"></span>friction<span class="type-signature"></span>
1443
+ </h4>
1444
+
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+ <h5 class="subsection-title">Properties</h5>
1456
+
1457
+
1458
+ <div class="allow-overflow">
1459
+ <table class="props">
1460
+ <thead>
1461
+ <tr>
1462
+
1463
+ <th>Name</th>
1464
+
1465
+
1466
+ <th>Type</th>
1467
+
1468
+
1469
+ <th>Attributes</th>
1470
+
1471
+
1472
+
1473
+ <th>Default</th>
1474
+
1475
+
1476
+ <th class="last">Description</th>
1477
+ </tr>
1478
+ </thead>
1479
+
1480
+ <tbody>
1481
+
1482
+
1483
+ <tr>
1484
+
1485
+ <td class="name"><code>friction</code></td>
1486
+
1487
+
1488
+ <td class="type">
1489
+
1490
+
1491
+ <span class="param-type">Number</span>
1492
+
1493
+
1494
+
1495
+ </td>
1496
+
1497
+
1498
+ <td class="attributes">
1499
+
1500
+ &lt;optional><br>
1501
+
1502
+
1503
+
1504
+ </td>
1505
+
1506
+
1507
+
1508
+ <td class="default">
1509
+
1510
+ objectDefaultFriction
1511
+
1512
+ </td>
1513
+
1514
+
1515
+ <td class="description last">How much friction to apply when sliding (0-1)</td>
1516
+ </tr>
1517
+
1518
+
1519
+ </tbody>
1520
+ </table>
1521
+ </div>
1522
+
1523
+
1524
+
1525
+
1526
+
1527
+ <dl class="details">
1528
+
1529
+
1530
+
1531
+
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+
1539
+
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+ <div class="details-item-container">
1555
+ <dt class="tag-source">Source:</dt>
1556
+ <dd class="tag-source"><ul class="dummy"><li>
1557
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line67">line 67</a>
1558
+ </li></ul></dd>
1559
+ </div>
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+ </dl>
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+
1578
+ <h4 class="name" id="gravityScale">
1579
+ <a href="#gravityScale">#</a>
1580
+ <span class="type-signature"></span>gravityScale<span class="type-signature"></span>
1581
+ </h4>
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+
1593
+ <h5 class="subsection-title">Properties</h5>
1594
+
1595
+
1596
+ <div class="allow-overflow">
1597
+ <table class="props">
1598
+ <thead>
1599
+ <tr>
1600
+
1601
+ <th>Name</th>
1602
+
1603
+
1604
+ <th>Type</th>
1605
+
1606
+
1607
+ <th>Attributes</th>
1608
+
1609
+
1610
+
1611
+ <th>Default</th>
1612
+
1613
+
1614
+ <th class="last">Description</th>
1615
+ </tr>
1616
+ </thead>
1617
+
1618
+ <tbody>
1619
+
1620
+
1621
+ <tr>
1622
+
1623
+ <td class="name"><code>gravityScale</code></td>
1624
+
1625
+
1626
+ <td class="type">
1627
+
1628
+
1629
+ <span class="param-type">Number</span>
1630
+
1631
+
1632
+
1633
+ </td>
1634
+
1635
+
1636
+ <td class="attributes">
1637
+
1638
+ &lt;optional><br>
1639
+
1640
+
1641
+
1642
+ </td>
1643
+
1644
+
1645
+
1646
+ <td class="default">
1647
+
1648
+ 1
1649
+
1650
+ </td>
1651
+
1652
+
1653
+ <td class="description last">How much to scale gravity by for this object</td>
1654
+ </tr>
1655
+
1656
+
1657
+ </tbody>
1658
+ </table>
1659
+ </div>
1660
+
1661
+
1662
+
1663
+
1664
+
1665
+ <dl class="details">
1666
+
1667
+
1668
+
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+
1677
+
1678
+
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+
1685
+
1686
+
1687
+
1688
+
1689
+
1690
+
1691
+
1692
+ <div class="details-item-container">
1693
+ <dt class="tag-source">Source:</dt>
1694
+ <dd class="tag-source"><ul class="dummy"><li>
1695
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line69">line 69</a>
1696
+ </li></ul></dd>
1697
+ </div>
1698
+
1699
+
1700
+
1701
+
1702
+
1703
+
1704
+
1705
+ </dl>
1706
+
1707
+
1708
+
1709
+
1710
+
1711
+
1712
+
1713
+
1714
+
1715
+
1716
+ <h4 class="name" id="mass">
1717
+ <a href="#mass">#</a>
1718
+ <span class="type-signature"></span>mass<span class="type-signature"></span>
1719
+ </h4>
1720
+
1721
+
1722
+
1723
+
1724
+
1725
+
1726
+
1727
+
1728
+
1729
+
1730
+
1731
+ <h5 class="subsection-title">Properties</h5>
1732
+
1733
+
1734
+ <div class="allow-overflow">
1735
+ <table class="props">
1736
+ <thead>
1737
+ <tr>
1738
+
1739
+ <th>Name</th>
1740
+
1741
+
1742
+ <th>Type</th>
1743
+
1744
+
1745
+ <th>Attributes</th>
1746
+
1747
+
1748
+
1749
+ <th>Default</th>
1750
+
1751
+
1752
+ <th class="last">Description</th>
1753
+ </tr>
1754
+ </thead>
1755
+
1756
+ <tbody>
1757
+
1758
+
1759
+ <tr>
1760
+
1761
+ <td class="name"><code>mass</code></td>
1762
+
1763
+
1764
+ <td class="type">
1765
+
1766
+
1767
+ <span class="param-type">Number</span>
1768
+
1769
+
1770
+
1771
+ </td>
1772
+
1773
+
1774
+ <td class="attributes">
1775
+
1776
+ &lt;optional><br>
1777
+
1778
+
1779
+
1780
+ </td>
1781
+
1782
+
1783
+
1784
+ <td class="default">
1785
+
1786
+ objectDefaultMass
1787
+
1788
+ </td>
1789
+
1790
+
1791
+ <td class="description last">How heavy the object is</td>
1792
+ </tr>
1793
+
1794
+
1795
+ </tbody>
1796
+ </table>
1797
+ </div>
1798
+
1799
+
1800
+
1801
+
1802
+
1803
+ <dl class="details">
1804
+
1805
+
1806
+
1807
+
1808
+
1809
+
1810
+
1811
+
1812
+
1813
+
1814
+
1815
+
1816
+
1817
+
1818
+
1819
+
1820
+
1821
+
1822
+
1823
+
1824
+
1825
+
1826
+
1827
+
1828
+
1829
+
1830
+ <div class="details-item-container">
1831
+ <dt class="tag-source">Source:</dt>
1832
+ <dd class="tag-source"><ul class="dummy"><li>
1833
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line59">line 59</a>
1834
+ </li></ul></dd>
1835
+ </div>
1836
+
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+
1843
+ </dl>
1844
+
1845
+
1846
+
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+
1853
+
1854
+ <h4 class="name" id="pos">
1855
+ <a href="#pos">#</a>
1856
+ <span class="type-signature"></span>pos<span class="type-signature"></span>
1857
+ </h4>
1858
+
1859
+
1860
+
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+
1867
+
1868
+
1869
+ <h5 class="subsection-title">Properties</h5>
1870
+
1871
+
1872
+ <div class="allow-overflow">
1873
+ <table class="props">
1874
+ <thead>
1875
+ <tr>
1876
+
1877
+
1878
+ <th>Type</th>
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+ <th class="last">Description</th>
1885
+ </tr>
1886
+ </thead>
1887
+
1888
+ <tbody>
1889
+
1890
+
1891
+ <tr>
1892
+
1893
+
1894
+ <td class="type">
1895
+
1896
+
1897
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1898
+
1899
+
1900
+
1901
+ </td>
1902
+
1903
+
1904
+
1905
+
1906
+
1907
+ <td class="description last">World space position of the object</td>
1908
+ </tr>
1909
+
1910
+
1911
+ </tbody>
1912
+ </table>
1913
+ </div>
1914
+
1915
+
1916
+
1917
+
1918
+
1919
+ <dl class="details">
1920
+
1921
+
1922
+
1923
+
1924
+
1925
+
1926
+
1927
+
1928
+
1929
+
1930
+
1931
+
1932
+
1933
+
1934
+
1935
+
1936
+
1937
+
1938
+
1939
+
1940
+
1941
+
1942
+
1943
+
1944
+
1945
+
1946
+ <div class="details-item-container">
1947
+ <dt class="tag-source">Source:</dt>
1948
+ <dd class="tag-source"><ul class="dummy"><li>
1949
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line41">line 41</a>
1950
+ </li></ul></dd>
1951
+ </div>
1952
+
1953
+
1954
+
1955
+
1956
+
1957
+
1958
+
1959
+ </dl>
1960
+
1961
+
1962
+
1963
+
1964
+
1965
+
1966
+
1967
+
1968
+
1969
+
1970
+ <h4 class="name" id="renderOrder">
1971
+ <a href="#renderOrder">#</a>
1972
+ <span class="type-signature"></span>renderOrder<span class="type-signature"></span>
1973
+ </h4>
1974
+
1975
+
1976
+
1977
+
1978
+
1979
+
1980
+
1981
+
1982
+
1983
+
1984
+
1985
+ <h5 class="subsection-title">Properties</h5>
1986
+
1987
+
1988
+ <div class="allow-overflow">
1989
+ <table class="props">
1990
+ <thead>
1991
+ <tr>
1992
+
1993
+ <th>Name</th>
1994
+
1995
+
1996
+ <th>Type</th>
1997
+
1998
+
1999
+ <th>Attributes</th>
2000
+
2001
+
2002
+
2003
+ <th>Default</th>
2004
+
2005
+
2006
+ <th class="last">Description</th>
2007
+ </tr>
2008
+ </thead>
2009
+
2010
+ <tbody>
2011
+
2012
+
2013
+ <tr>
2014
+
2015
+ <td class="name"><code>renderOrder</code></td>
2016
+
2017
+
2018
+ <td class="type">
2019
+
2020
+
2021
+ <span class="param-type">Number</span>
2022
+
2023
+
2024
+
2025
+ </td>
2026
+
2027
+
2028
+ <td class="attributes">
2029
+
2030
+ &lt;optional><br>
2031
+
2032
+
2033
+
2034
+ </td>
2035
+
2036
+
2037
+
2038
+ <td class="default">
2039
+
2040
+ 0
2041
+
2042
+ </td>
2043
+
2044
+
2045
+ <td class="description last">Objects are sorted by render order</td>
2046
+ </tr>
2047
+
2048
+
2049
+ </tbody>
2050
+ </table>
2051
+ </div>
2052
+
2053
+
2054
+
2055
+
2056
+
2057
+ <dl class="details">
2058
+
2059
+
2060
+
2061
+
2062
+
2063
+
2064
+
2065
+
2066
+
2067
+
2068
+
2069
+
2070
+
2071
+
2072
+
2073
+
2074
+
2075
+
2076
+
2077
+
2078
+
2079
+
2080
+
2081
+
2082
+
2083
+
2084
+ <div class="details-item-container">
2085
+ <dt class="tag-source">Source:</dt>
2086
+ <dd class="tag-source"><ul class="dummy"><li>
2087
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line71">line 71</a>
2088
+ </li></ul></dd>
2089
+ </div>
2090
+
2091
+
2092
+
2093
+
2094
+
2095
+
2096
+
2097
+ </dl>
2098
+
2099
+
2100
+
2101
+
2102
+
2103
+
2104
+
2105
+
2106
+
2107
+
2108
+ <h4 class="name" id="size">
2109
+ <a href="#size">#</a>
2110
+ <span class="type-signature"></span>size<span class="type-signature"></span>
2111
+ </h4>
2112
+
2113
+
2114
+
2115
+
2116
+
2117
+
2118
+
2119
+
2120
+
2121
+
2122
+
2123
+ <h5 class="subsection-title">Properties</h5>
2124
+
2125
+
2126
+ <div class="allow-overflow">
2127
+ <table class="props">
2128
+ <thead>
2129
+ <tr>
2130
+
2131
+
2132
+ <th>Type</th>
2133
+
2134
+
2135
+
2136
+
2137
+
2138
+ <th class="last">Description</th>
2139
+ </tr>
2140
+ </thead>
2141
+
2142
+ <tbody>
2143
+
2144
+
2145
+ <tr>
2146
+
2147
+
2148
+ <td class="type">
2149
+
2150
+
2151
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2152
+
2153
+
2154
+
2155
+ </td>
2156
+
2157
+
2158
+
2159
+
2160
+
2161
+ <td class="description last">World space width and height of the object</td>
2162
+ </tr>
2163
+
2164
+
2165
+ </tbody>
2166
+ </table>
2167
+ </div>
2168
+
2169
+
2170
+
2171
+
2172
+
2173
+ <dl class="details">
2174
+
2175
+
2176
+
2177
+
2178
+
2179
+
2180
+
2181
+
2182
+
2183
+
2184
+
2185
+
2186
+
2187
+
2188
+
2189
+
2190
+
2191
+
2192
+
2193
+
2194
+
2195
+
2196
+
2197
+
2198
+
2199
+
2200
+ <div class="details-item-container">
2201
+ <dt class="tag-source">Source:</dt>
2202
+ <dd class="tag-source"><ul class="dummy"><li>
2203
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line43">line 43</a>
2204
+ </li></ul></dd>
2205
+ </div>
2206
+
2207
+
2208
+
2209
+
2210
+
2211
+
2212
+
2213
+ </dl>
2214
+
2215
+
2216
+
2217
+
2218
+
2219
+
2220
+
2221
+
2222
+
2223
+
2224
+ <h4 class="name" id="tileIndex">
2225
+ <a href="#tileIndex">#</a>
2226
+ <span class="type-signature"></span>tileIndex<span class="type-signature"></span>
2227
+ </h4>
2228
+
2229
+
2230
+
2231
+
2232
+
2233
+
2234
+
2235
+
2236
+
2237
+
2238
+
2239
+ <h5 class="subsection-title">Properties</h5>
2240
+
2241
+
2242
+ <div class="allow-overflow">
2243
+ <table class="props">
2244
+ <thead>
2245
+ <tr>
2246
+
2247
+
2248
+ <th>Type</th>
2249
+
2250
+
2251
+
2252
+
2253
+
2254
+ <th class="last">Description</th>
2255
+ </tr>
2256
+ </thead>
2257
+
2258
+ <tbody>
2259
+
2260
+
2261
+ <tr>
2262
+
2263
+
2264
+ <td class="type">
2265
+
2266
+
2267
+ <span class="param-type">Number</span>
2268
+
2269
+
2270
+
2271
+ </td>
2272
+
2273
+
2274
+
2275
+
2276
+
2277
+ <td class="description last">Tile to use to render object, untextured if -1</td>
2278
+ </tr>
2279
+
2280
+
2281
+ </tbody>
2282
+ </table>
2283
+ </div>
2284
+
2285
+
2286
+
2287
+
2288
+
2289
+ <dl class="details">
2290
+
2291
+
2292
+
2293
+
2294
+
2295
+
2296
+
2297
+
2298
+
2299
+
2300
+
2301
+
2302
+
2303
+
2304
+
2305
+
2306
+
2307
+
2308
+
2309
+
2310
+
2311
+
2312
+
2313
+
2314
+
2315
+
2316
+ <div class="details-item-container">
2317
+ <dt class="tag-source">Source:</dt>
2318
+ <dd class="tag-source"><ul class="dummy"><li>
2319
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line47">line 47</a>
2320
+ </li></ul></dd>
2321
+ </div>
2322
+
2323
+
2324
+
2325
+
2326
+
2327
+
2328
+
2329
+ </dl>
2330
+
2331
+
2332
+
2333
+
2334
+
2335
+
2336
+
2337
+
2338
+
2339
+
2340
+ <h4 class="name" id="tileSize">
2341
+ <a href="#tileSize">#</a>
2342
+ <span class="type-signature"></span>tileSize<span class="type-signature"></span>
2343
+ </h4>
2344
+
2345
+
2346
+
2347
+
2348
+
2349
+
2350
+
2351
+
2352
+
2353
+
2354
+
2355
+ <h5 class="subsection-title">Properties</h5>
2356
+
2357
+
2358
+ <div class="allow-overflow">
2359
+ <table class="props">
2360
+ <thead>
2361
+ <tr>
2362
+
2363
+
2364
+ <th>Type</th>
2365
+
2366
+
2367
+
2368
+
2369
+
2370
+ <th class="last">Description</th>
2371
+ </tr>
2372
+ </thead>
2373
+
2374
+ <tbody>
2375
+
2376
+
2377
+ <tr>
2378
+
2379
+
2380
+ <td class="type">
2381
+
2382
+
2383
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2384
+
2385
+
2386
+
2387
+ </td>
2388
+
2389
+
2390
+
2391
+
2392
+
2393
+ <td class="description last">Size of tile in source pixels</td>
2394
+ </tr>
2395
+
2396
+
2397
+ </tbody>
2398
+ </table>
2399
+ </div>
2400
+
2401
+
2402
+
2403
+
2404
+
2405
+ <dl class="details">
2406
+
2407
+
2408
+
2409
+
2410
+
2411
+
2412
+
2413
+
2414
+
2415
+
2416
+
2417
+
2418
+
2419
+
2420
+
2421
+
2422
+
2423
+
2424
+
2425
+
2426
+
2427
+
2428
+
2429
+
2430
+
2431
+
2432
+ <div class="details-item-container">
2433
+ <dt class="tag-source">Source:</dt>
2434
+ <dd class="tag-source"><ul class="dummy"><li>
2435
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line49">line 49</a>
2436
+ </li></ul></dd>
2437
+ </div>
2438
+
2439
+
2440
+
2441
+
2442
+
2443
+
2444
+
2445
+ </dl>
2446
+
2447
+
2448
+
2449
+
2450
+
2451
+
2452
+
2453
+
2454
+
2455
+
2456
+
2457
+
2458
+ <h3 class="subsection-title">Methods</h3>
2459
+
2460
+
2461
+
2462
+
2463
+
2464
+
2465
+ <h4 class="name" id="addChild">
2466
+ <a href="#addChild">#</a>
2467
+ <span class="type-signature"></span>addChild<span class="signature">(child, localPos<span class="signature-attributes">opt</span>, localAngle<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
2468
+ </h4>
2469
+
2470
+
2471
+
2472
+
2473
+
2474
+ <div class="description">
2475
+ Attaches a child to this with a given local transform
2476
+ </div>
2477
+
2478
+
2479
+
2480
+
2481
+
2482
+
2483
+
2484
+
2485
+
2486
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2487
+ <strong>Parameters:</strong>
2488
+
2489
+
2490
+ <table class="params">
2491
+ <thead>
2492
+ <tr>
2493
+
2494
+ <th>Name</th>
2495
+
2496
+
2497
+ <th>Type</th>
2498
+
2499
+
2500
+ <th>Attributes</th>
2501
+
2502
+
2503
+
2504
+ <th>Default</th>
2505
+
2506
+
2507
+ <th class="last">Description</th>
2508
+ </tr>
2509
+ </thead>
2510
+
2511
+ <tbody>
2512
+
2513
+
2514
+ <tr>
2515
+
2516
+ <td class="name"><code>child</code></td>
2517
+
2518
+
2519
+ <td class="type">
2520
+
2521
+
2522
+ <span class="param-type"><a href="EngineObject.html">EngineObject</a></span>
2523
+
2524
+
2525
+
2526
+ </td>
2527
+
2528
+
2529
+ <td class="attributes">
2530
+
2531
+
2532
+
2533
+
2534
+
2535
+ </td>
2536
+
2537
+
2538
+
2539
+ <td class="default">
2540
+
2541
+ </td>
2542
+
2543
+
2544
+ <td class="description last"></td>
2545
+ </tr>
2546
+
2547
+
2548
+
2549
+ <tr>
2550
+
2551
+ <td class="name"><code>localPos</code></td>
2552
+
2553
+
2554
+ <td class="type">
2555
+
2556
+
2557
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2558
+
2559
+
2560
+
2561
+ </td>
2562
+
2563
+
2564
+ <td class="attributes">
2565
+
2566
+ &lt;optional><br>
2567
+
2568
+
2569
+
2570
+
2571
+
2572
+ </td>
2573
+
2574
+
2575
+
2576
+ <td class="default">
2577
+
2578
+ new Vector2
2579
+
2580
+ </td>
2581
+
2582
+
2583
+ <td class="description last"></td>
2584
+ </tr>
2585
+
2586
+
2587
+
2588
+ <tr>
2589
+
2590
+ <td class="name"><code>localAngle</code></td>
2591
+
2592
+
2593
+ <td class="type">
2594
+
2595
+
2596
+ <span class="param-type">Number</span>
2597
+
2598
+
2599
+
2600
+ </td>
2601
+
2602
+
2603
+ <td class="attributes">
2604
+
2605
+ &lt;optional><br>
2606
+
2607
+
2608
+
2609
+
2610
+
2611
+ </td>
2612
+
2613
+
2614
+
2615
+ <td class="default">
2616
+
2617
+ 0
2618
+
2619
+ </td>
2620
+
2621
+
2622
+ <td class="description last"></td>
2623
+ </tr>
2624
+
2625
+
2626
+ </tbody>
2627
+ </table>
2628
+
2629
+ </div>
2630
+
2631
+
2632
+
2633
+
2634
+
2635
+
2636
+
2637
+ <dl class="details">
2638
+
2639
+
2640
+
2641
+
2642
+
2643
+
2644
+
2645
+
2646
+
2647
+
2648
+
2649
+
2650
+
2651
+
2652
+
2653
+
2654
+
2655
+
2656
+
2657
+
2658
+
2659
+
2660
+
2661
+
2662
+
2663
+
2664
+ <div class="details-item-container">
2665
+ <dt class="tag-source">Source:</dt>
2666
+ <dd class="tag-source"><ul class="dummy"><li>
2667
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line317">line 317</a>
2668
+ </li></ul></dd>
2669
+ </div>
2670
+
2671
+
2672
+
2673
+
2674
+
2675
+
2676
+
2677
+ </dl>
2678
+
2679
+
2680
+
2681
+
2682
+
2683
+
2684
+
2685
+
2686
+
2687
+
2688
+
2689
+
2690
+
2691
+
2692
+
2693
+
2694
+
2695
+
2696
+
2697
+
2698
+
2699
+
2700
+
2701
+ <h4 class="name" id="applyAcceleration">
2702
+ <a href="#applyAcceleration">#</a>
2703
+ <span class="type-signature"></span>applyAcceleration<span class="signature">(acceleration)</span><span class="type-signature"></span>
2704
+ </h4>
2705
+
2706
+
2707
+
2708
+
2709
+
2710
+ <div class="description">
2711
+ Apply acceleration to this object (adjust velocity, not affected by mass)
2712
+ </div>
2713
+
2714
+
2715
+
2716
+
2717
+
2718
+
2719
+
2720
+
2721
+
2722
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2723
+ <strong>Parameters:</strong>
2724
+
2725
+
2726
+ <table class="params">
2727
+ <thead>
2728
+ <tr>
2729
+
2730
+ <th>Name</th>
2731
+
2732
+
2733
+ <th>Type</th>
2734
+
2735
+
2736
+
2737
+
2738
+
2739
+ <th class="last">Description</th>
2740
+ </tr>
2741
+ </thead>
2742
+
2743
+ <tbody>
2744
+
2745
+
2746
+ <tr>
2747
+
2748
+ <td class="name"><code>acceleration</code></td>
2749
+
2750
+
2751
+ <td class="type">
2752
+
2753
+
2754
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2755
+
2756
+
2757
+
2758
+ </td>
2759
+
2760
+
2761
+
2762
+
2763
+
2764
+ <td class="description last"></td>
2765
+ </tr>
2766
+
2767
+
2768
+ </tbody>
2769
+ </table>
2770
+
2771
+ </div>
2772
+
2773
+
2774
+
2775
+
2776
+
2777
+
2778
+
2779
+ <dl class="details">
2780
+
2781
+
2782
+
2783
+
2784
+
2785
+
2786
+
2787
+
2788
+
2789
+
2790
+
2791
+
2792
+
2793
+
2794
+
2795
+
2796
+
2797
+
2798
+
2799
+
2800
+
2801
+
2802
+
2803
+
2804
+
2805
+
2806
+ <div class="details-item-container">
2807
+ <dt class="tag-source">Source:</dt>
2808
+ <dd class="tag-source"><ul class="dummy"><li>
2809
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line303">line 303</a>
2810
+ </li></ul></dd>
2811
+ </div>
2812
+
2813
+
2814
+
2815
+
2816
+
2817
+
2818
+
2819
+ </dl>
2820
+
2821
+
2822
+
2823
+
2824
+
2825
+
2826
+
2827
+
2828
+
2829
+
2830
+
2831
+
2832
+
2833
+
2834
+
2835
+
2836
+
2837
+
2838
+
2839
+
2840
+
2841
+
2842
+
2843
+ <h4 class="name" id="applyForce">
2844
+ <a href="#applyForce">#</a>
2845
+ <span class="type-signature"></span>applyForce<span class="signature">(force)</span><span class="type-signature"></span>
2846
+ </h4>
2847
+
2848
+
2849
+
2850
+
2851
+
2852
+ <div class="description">
2853
+ Apply force to this object (adjust velocity, affected by mass)
2854
+ </div>
2855
+
2856
+
2857
+
2858
+
2859
+
2860
+
2861
+
2862
+
2863
+
2864
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2865
+ <strong>Parameters:</strong>
2866
+
2867
+
2868
+ <table class="params">
2869
+ <thead>
2870
+ <tr>
2871
+
2872
+ <th>Name</th>
2873
+
2874
+
2875
+ <th>Type</th>
2876
+
2877
+
2878
+
2879
+
2880
+
2881
+ <th class="last">Description</th>
2882
+ </tr>
2883
+ </thead>
2884
+
2885
+ <tbody>
2886
+
2887
+
2888
+ <tr>
2889
+
2890
+ <td class="name"><code>force</code></td>
2891
+
2892
+
2893
+ <td class="type">
2894
+
2895
+
2896
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2897
+
2898
+
2899
+
2900
+ </td>
2901
+
2902
+
2903
+
2904
+
2905
+
2906
+ <td class="description last"></td>
2907
+ </tr>
2908
+
2909
+
2910
+ </tbody>
2911
+ </table>
2912
+
2913
+ </div>
2914
+
2915
+
2916
+
2917
+
2918
+
2919
+
2920
+
2921
+ <dl class="details">
2922
+
2923
+
2924
+
2925
+
2926
+
2927
+
2928
+
2929
+
2930
+
2931
+
2932
+
2933
+
2934
+
2935
+
2936
+
2937
+
2938
+
2939
+
2940
+
2941
+
2942
+
2943
+
2944
+
2945
+
2946
+
2947
+
2948
+ <div class="details-item-container">
2949
+ <dt class="tag-source">Source:</dt>
2950
+ <dd class="tag-source"><ul class="dummy"><li>
2951
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line307">line 307</a>
2952
+ </li></ul></dd>
2953
+ </div>
2954
+
2955
+
2956
+
2957
+
2958
+
2959
+
2960
+
2961
+ </dl>
2962
+
2963
+
2964
+
2965
+
2966
+
2967
+
2968
+
2969
+
2970
+
2971
+
2972
+
2973
+
2974
+
2975
+
2976
+
2977
+
2978
+
2979
+
2980
+
2981
+
2982
+
2983
+
2984
+
2985
+ <h4 class="name" id="collideWithObject">
2986
+ <a href="#collideWithObject">#</a>
2987
+ <span class="type-signature"></span>collideWithObject<span class="signature">(object)</span><span class="type-signature"> &rarr; {Boolean}</span>
2988
+ </h4>
2989
+
2990
+
2991
+
2992
+
2993
+
2994
+ <div class="description">
2995
+ Called to check if a tile raycast hit
2996
+ </div>
2997
+
2998
+
2999
+
3000
+
3001
+
3002
+
3003
+
3004
+
3005
+
3006
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3007
+ <strong>Parameters:</strong>
3008
+
3009
+
3010
+ <table class="params">
3011
+ <thead>
3012
+ <tr>
3013
+
3014
+ <th>Name</th>
3015
+
3016
+
3017
+ <th>Type</th>
3018
+
3019
+
3020
+
3021
+
3022
+
3023
+ <th class="last">Description</th>
3024
+ </tr>
3025
+ </thead>
3026
+
3027
+ <tbody>
3028
+
3029
+
3030
+ <tr>
3031
+
3032
+ <td class="name"><code>object</code></td>
3033
+
3034
+
3035
+ <td class="type">
3036
+
3037
+
3038
+ <span class="param-type"><a href="EngineObject.html">EngineObject</a></span>
3039
+
3040
+
3041
+
3042
+ </td>
3043
+
3044
+
3045
+
3046
+
3047
+
3048
+ <td class="description last">the object to test against</td>
3049
+ </tr>
3050
+
3051
+
3052
+ </tbody>
3053
+ </table>
3054
+
3055
+ </div>
3056
+
3057
+
3058
+
3059
+
3060
+
3061
+
3062
+
3063
+ <dl class="details">
3064
+
3065
+
3066
+
3067
+
3068
+
3069
+
3070
+
3071
+
3072
+
3073
+
3074
+
3075
+
3076
+
3077
+
3078
+
3079
+
3080
+
3081
+
3082
+
3083
+
3084
+
3085
+
3086
+
3087
+
3088
+
3089
+
3090
+ <div class="details-item-container">
3091
+ <dt class="tag-source">Source:</dt>
3092
+ <dd class="tag-source"><ul class="dummy"><li>
3093
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line295">line 295</a>
3094
+ </li></ul></dd>
3095
+ </div>
3096
+
3097
+
3098
+
3099
+
3100
+
3101
+
3102
+
3103
+ </dl>
3104
+
3105
+
3106
+
3107
+
3108
+
3109
+
3110
+
3111
+
3112
+
3113
+
3114
+
3115
+
3116
+
3117
+
3118
+
3119
+ <div class="method-member-container mt-20">
3120
+ <strong>Returns:</strong>
3121
+
3122
+
3123
+ <div class="param-desc">
3124
+ true if the collision should be resolved
3125
+ </div>
3126
+
3127
+
3128
+
3129
+ <dl class="param-type">
3130
+ <dt>
3131
+ Type
3132
+ </dt>
3133
+ <dd>
3134
+
3135
+ <span class="param-type">Boolean</span>
3136
+
3137
+
3138
+ </dd>
3139
+ </dl>
3140
+
3141
+
3142
+ </div>
3143
+
3144
+
3145
+
3146
+
3147
+
3148
+
3149
+
3150
+
3151
+
3152
+ <h4 class="name" id="collideWithTile">
3153
+ <a href="#collideWithTile">#</a>
3154
+ <span class="type-signature"></span>collideWithTile<span class="signature">(tileData, pos)</span><span class="type-signature"> &rarr; {Boolean}</span>
3155
+ </h4>
3156
+
3157
+
3158
+
3159
+
3160
+
3161
+ <div class="description">
3162
+ Called to check if a tile collision should be resolved
3163
+ </div>
3164
+
3165
+
3166
+
3167
+
3168
+
3169
+
3170
+
3171
+
3172
+
3173
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3174
+ <strong>Parameters:</strong>
3175
+
3176
+
3177
+ <table class="params">
3178
+ <thead>
3179
+ <tr>
3180
+
3181
+ <th>Name</th>
3182
+
3183
+
3184
+ <th>Type</th>
3185
+
3186
+
3187
+
3188
+
3189
+
3190
+ <th class="last">Description</th>
3191
+ </tr>
3192
+ </thead>
3193
+
3194
+ <tbody>
3195
+
3196
+
3197
+ <tr>
3198
+
3199
+ <td class="name"><code>tileData</code></td>
3200
+
3201
+
3202
+ <td class="type">
3203
+
3204
+
3205
+ <span class="param-type">Number</span>
3206
+
3207
+
3208
+
3209
+ </td>
3210
+
3211
+
3212
+
3213
+
3214
+
3215
+ <td class="description last">the value of the tile at the position</td>
3216
+ </tr>
3217
+
3218
+
3219
+
3220
+ <tr>
3221
+
3222
+ <td class="name"><code>pos</code></td>
3223
+
3224
+
3225
+ <td class="type">
3226
+
3227
+
3228
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3229
+
3230
+
3231
+
3232
+ </td>
3233
+
3234
+
3235
+
3236
+
3237
+
3238
+ <td class="description last">tile where the collision occured</td>
3239
+ </tr>
3240
+
3241
+
3242
+ </tbody>
3243
+ </table>
3244
+
3245
+ </div>
3246
+
3247
+
3248
+
3249
+
3250
+
3251
+
3252
+
3253
+ <dl class="details">
3254
+
3255
+
3256
+
3257
+
3258
+
3259
+
3260
+
3261
+
3262
+
3263
+
3264
+
3265
+
3266
+
3267
+
3268
+
3269
+
3270
+
3271
+
3272
+
3273
+
3274
+
3275
+
3276
+
3277
+
3278
+
3279
+
3280
+ <div class="details-item-container">
3281
+ <dt class="tag-source">Source:</dt>
3282
+ <dd class="tag-source"><ul class="dummy"><li>
3283
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line283">line 283</a>
3284
+ </li></ul></dd>
3285
+ </div>
3286
+
3287
+
3288
+
3289
+
3290
+
3291
+
3292
+
3293
+ </dl>
3294
+
3295
+
3296
+
3297
+
3298
+
3299
+
3300
+
3301
+
3302
+
3303
+
3304
+
3305
+
3306
+
3307
+
3308
+
3309
+ <div class="method-member-container mt-20">
3310
+ <strong>Returns:</strong>
3311
+
3312
+
3313
+ <div class="param-desc">
3314
+ true if the collision should be resolved
3315
+ </div>
3316
+
3317
+
3318
+
3319
+ <dl class="param-type">
3320
+ <dt>
3321
+ Type
3322
+ </dt>
3323
+ <dd>
3324
+
3325
+ <span class="param-type">Boolean</span>
3326
+
3327
+
3328
+ </dd>
3329
+ </dl>
3330
+
3331
+
3332
+ </div>
3333
+
3334
+
3335
+
3336
+
3337
+
3338
+
3339
+
3340
+
3341
+
3342
+ <h4 class="name" id="collideWithTileRaycast">
3343
+ <a href="#collideWithTileRaycast">#</a>
3344
+ <span class="type-signature"></span>collideWithTileRaycast<span class="signature">(tileData, pos)</span><span class="type-signature"> &rarr; {Boolean}</span>
3345
+ </h4>
3346
+
3347
+
3348
+
3349
+
3350
+
3351
+ <div class="description">
3352
+ Called to check if a tile raycast hit
3353
+ </div>
3354
+
3355
+
3356
+
3357
+
3358
+
3359
+
3360
+
3361
+
3362
+
3363
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3364
+ <strong>Parameters:</strong>
3365
+
3366
+
3367
+ <table class="params">
3368
+ <thead>
3369
+ <tr>
3370
+
3371
+ <th>Name</th>
3372
+
3373
+
3374
+ <th>Type</th>
3375
+
3376
+
3377
+
3378
+
3379
+
3380
+ <th class="last">Description</th>
3381
+ </tr>
3382
+ </thead>
3383
+
3384
+ <tbody>
3385
+
3386
+
3387
+ <tr>
3388
+
3389
+ <td class="name"><code>tileData</code></td>
3390
+
3391
+
3392
+ <td class="type">
3393
+
3394
+
3395
+ <span class="param-type">Number</span>
3396
+
3397
+
3398
+
3399
+ </td>
3400
+
3401
+
3402
+
3403
+
3404
+
3405
+ <td class="description last">the value of the tile at the position</td>
3406
+ </tr>
3407
+
3408
+
3409
+
3410
+ <tr>
3411
+
3412
+ <td class="name"><code>pos</code></td>
3413
+
3414
+
3415
+ <td class="type">
3416
+
3417
+
3418
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3419
+
3420
+
3421
+
3422
+ </td>
3423
+
3424
+
3425
+
3426
+
3427
+
3428
+ <td class="description last">tile where the raycast is</td>
3429
+ </tr>
3430
+
3431
+
3432
+ </tbody>
3433
+ </table>
3434
+
3435
+ </div>
3436
+
3437
+
3438
+
3439
+
3440
+
3441
+
3442
+
3443
+ <dl class="details">
3444
+
3445
+
3446
+
3447
+
3448
+
3449
+
3450
+
3451
+
3452
+
3453
+
3454
+
3455
+
3456
+
3457
+
3458
+
3459
+
3460
+
3461
+
3462
+
3463
+
3464
+
3465
+
3466
+
3467
+
3468
+
3469
+
3470
+ <div class="details-item-container">
3471
+ <dt class="tag-source">Source:</dt>
3472
+ <dd class="tag-source"><ul class="dummy"><li>
3473
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line289">line 289</a>
3474
+ </li></ul></dd>
3475
+ </div>
3476
+
3477
+
3478
+
3479
+
3480
+
3481
+
3482
+
3483
+ </dl>
3484
+
3485
+
3486
+
3487
+
3488
+
3489
+
3490
+
3491
+
3492
+
3493
+
3494
+
3495
+
3496
+
3497
+
3498
+
3499
+ <div class="method-member-container mt-20">
3500
+ <strong>Returns:</strong>
3501
+
3502
+
3503
+ <div class="param-desc">
3504
+ true if the raycast should hit
3505
+ </div>
3506
+
3507
+
3508
+
3509
+ <dl class="param-type">
3510
+ <dt>
3511
+ Type
3512
+ </dt>
3513
+ <dd>
3514
+
3515
+ <span class="param-type">Boolean</span>
3516
+
3517
+
3518
+ </dd>
3519
+ </dl>
3520
+
3521
+
3522
+ </div>
3523
+
3524
+
3525
+
3526
+
3527
+
3528
+
3529
+
3530
+
3531
+
3532
+ <h4 class="name" id="destroy">
3533
+ <a href="#destroy">#</a>
3534
+ <span class="type-signature"></span>destroy<span class="signature">()</span><span class="type-signature"></span>
3535
+ </h4>
3536
+
3537
+
3538
+
3539
+
3540
+
3541
+ <div class="description">
3542
+ Destroy this object, destroy it's children, detach it's parent, and mark it for removal
3543
+ </div>
3544
+
3545
+
3546
+
3547
+
3548
+
3549
+
3550
+
3551
+
3552
+
3553
+
3554
+
3555
+
3556
+
3557
+
3558
+
3559
+ <dl class="details">
3560
+
3561
+
3562
+
3563
+
3564
+
3565
+
3566
+
3567
+
3568
+
3569
+
3570
+
3571
+
3572
+
3573
+
3574
+
3575
+
3576
+
3577
+
3578
+
3579
+
3580
+
3581
+
3582
+
3583
+
3584
+
3585
+
3586
+ <div class="details-item-container">
3587
+ <dt class="tag-source">Source:</dt>
3588
+ <dd class="tag-source"><ul class="dummy"><li>
3589
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line267">line 267</a>
3590
+ </li></ul></dd>
3591
+ </div>
3592
+
3593
+
3594
+
3595
+
3596
+
3597
+
3598
+
3599
+ </dl>
3600
+
3601
+
3602
+
3603
+
3604
+
3605
+
3606
+
3607
+
3608
+
3609
+
3610
+
3611
+
3612
+
3613
+
3614
+
3615
+
3616
+
3617
+
3618
+
3619
+
3620
+
3621
+
3622
+
3623
+ <h4 class="name" id="getAliveTime">
3624
+ <a href="#getAliveTime">#</a>
3625
+ <span class="type-signature"></span>getAliveTime<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span>
3626
+ </h4>
3627
+
3628
+
3629
+
3630
+
3631
+
3632
+ <div class="description">
3633
+ How long since the object was created
3634
+ </div>
3635
+
3636
+
3637
+
3638
+
3639
+
3640
+
3641
+
3642
+
3643
+
3644
+
3645
+
3646
+
3647
+
3648
+
3649
+
3650
+ <dl class="details">
3651
+
3652
+
3653
+
3654
+
3655
+
3656
+
3657
+
3658
+
3659
+
3660
+
3661
+
3662
+
3663
+
3664
+
3665
+
3666
+
3667
+
3668
+
3669
+
3670
+
3671
+
3672
+
3673
+
3674
+
3675
+
3676
+
3677
+ <div class="details-item-container">
3678
+ <dt class="tag-source">Source:</dt>
3679
+ <dd class="tag-source"><ul class="dummy"><li>
3680
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line299">line 299</a>
3681
+ </li></ul></dd>
3682
+ </div>
3683
+
3684
+
3685
+
3686
+
3687
+
3688
+
3689
+
3690
+ </dl>
3691
+
3692
+
3693
+
3694
+
3695
+
3696
+
3697
+
3698
+
3699
+
3700
+
3701
+
3702
+
3703
+
3704
+
3705
+
3706
+ <div class="method-member-container mt-20">
3707
+ <strong>Returns:</strong>
3708
+
3709
+
3710
+
3711
+
3712
+ <dl class="param-type">
3713
+ <dt>
3714
+ Type
3715
+ </dt>
3716
+ <dd>
3717
+
3718
+ <span class="param-type">Number</span>
3719
+
3720
+
3721
+ </dd>
3722
+ </dl>
3723
+
3724
+
3725
+ </div>
3726
+
3727
+
3728
+
3729
+
3730
+
3731
+
3732
+
3733
+
3734
+
3735
+ <h4 class="name" id="getMirrorSign">
3736
+ <a href="#getMirrorSign">#</a>
3737
+ <span class="type-signature"></span>getMirrorSign<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span>
3738
+ </h4>
3739
+
3740
+
3741
+
3742
+
3743
+
3744
+ <div class="description">
3745
+ Get the direction of the mirror
3746
+ </div>
3747
+
3748
+
3749
+
3750
+
3751
+
3752
+
3753
+
3754
+
3755
+
3756
+
3757
+
3758
+
3759
+
3760
+
3761
+
3762
+ <dl class="details">
3763
+
3764
+
3765
+
3766
+
3767
+
3768
+
3769
+
3770
+
3771
+
3772
+
3773
+
3774
+
3775
+
3776
+
3777
+
3778
+
3779
+
3780
+
3781
+
3782
+
3783
+
3784
+
3785
+
3786
+
3787
+
3788
+
3789
+ <div class="details-item-container">
3790
+ <dt class="tag-source">Source:</dt>
3791
+ <dd class="tag-source"><ul class="dummy"><li>
3792
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line311">line 311</a>
3793
+ </li></ul></dd>
3794
+ </div>
3795
+
3796
+
3797
+
3798
+
3799
+
3800
+
3801
+
3802
+ </dl>
3803
+
3804
+
3805
+
3806
+
3807
+
3808
+
3809
+
3810
+
3811
+
3812
+
3813
+
3814
+
3815
+
3816
+
3817
+
3818
+ <div class="method-member-container mt-20">
3819
+ <strong>Returns:</strong>
3820
+
3821
+
3822
+ <div class="param-desc">
3823
+ -1 if this.mirror is true, or 1 if not mirrored
3824
+ </div>
3825
+
3826
+
3827
+
3828
+ <dl class="param-type">
3829
+ <dt>
3830
+ Type
3831
+ </dt>
3832
+ <dd>
3833
+
3834
+ <span class="param-type">Number</span>
3835
+
3836
+
3837
+ </dd>
3838
+ </dl>
3839
+
3840
+
3841
+ </div>
3842
+
3843
+
3844
+
3845
+
3846
+
3847
+
3848
+
3849
+
3850
+
3851
+ <h4 class="name" id="removeChild">
3852
+ <a href="#removeChild">#</a>
3853
+ <span class="type-signature"></span>removeChild<span class="signature">(child)</span><span class="type-signature"></span>
3854
+ </h4>
3855
+
3856
+
3857
+
3858
+
3859
+
3860
+ <div class="description">
3861
+ Removes a child from this one
3862
+ </div>
3863
+
3864
+
3865
+
3866
+
3867
+
3868
+
3869
+
3870
+
3871
+
3872
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3873
+ <strong>Parameters:</strong>
3874
+
3875
+
3876
+ <table class="params">
3877
+ <thead>
3878
+ <tr>
3879
+
3880
+ <th>Name</th>
3881
+
3882
+
3883
+ <th>Type</th>
3884
+
3885
+
3886
+
3887
+
3888
+
3889
+ <th class="last">Description</th>
3890
+ </tr>
3891
+ </thead>
3892
+
3893
+ <tbody>
3894
+
3895
+
3896
+ <tr>
3897
+
3898
+ <td class="name"><code>child</code></td>
3899
+
3900
+
3901
+ <td class="type">
3902
+
3903
+
3904
+ <span class="param-type"><a href="EngineObject.html">EngineObject</a></span>
3905
+
3906
+
3907
+
3908
+ </td>
3909
+
3910
+
3911
+
3912
+
3913
+
3914
+ <td class="description last"></td>
3915
+ </tr>
3916
+
3917
+
3918
+ </tbody>
3919
+ </table>
3920
+
3921
+ </div>
3922
+
3923
+
3924
+
3925
+
3926
+
3927
+
3928
+
3929
+ <dl class="details">
3930
+
3931
+
3932
+
3933
+
3934
+
3935
+
3936
+
3937
+
3938
+
3939
+
3940
+
3941
+
3942
+
3943
+
3944
+
3945
+
3946
+
3947
+
3948
+
3949
+
3950
+
3951
+
3952
+
3953
+
3954
+
3955
+
3956
+ <div class="details-item-container">
3957
+ <dt class="tag-source">Source:</dt>
3958
+ <dd class="tag-source"><ul class="dummy"><li>
3959
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line328">line 328</a>
3960
+ </li></ul></dd>
3961
+ </div>
3962
+
3963
+
3964
+
3965
+
3966
+
3967
+
3968
+
3969
+ </dl>
3970
+
3971
+
3972
+
3973
+
3974
+
3975
+
3976
+
3977
+
3978
+
3979
+
3980
+
3981
+
3982
+
3983
+
3984
+
3985
+
3986
+
3987
+
3988
+
3989
+
3990
+
3991
+
3992
+
3993
+ <h4 class="name" id="render">
3994
+ <a href="#render">#</a>
3995
+ <span class="type-signature"></span>render<span class="signature">()</span><span class="type-signature"></span>
3996
+ </h4>
3997
+
3998
+
3999
+
4000
+
4001
+
4002
+ <div class="description">
4003
+ Render the object, draws a tile by default, automatically called each frame, sorted by renderOrder
4004
+ </div>
4005
+
4006
+
4007
+
4008
+
4009
+
4010
+
4011
+
4012
+
4013
+
4014
+
4015
+
4016
+
4017
+
4018
+
4019
+
4020
+ <dl class="details">
4021
+
4022
+
4023
+
4024
+
4025
+
4026
+
4027
+
4028
+
4029
+
4030
+
4031
+
4032
+
4033
+
4034
+
4035
+
4036
+
4037
+
4038
+
4039
+
4040
+
4041
+
4042
+
4043
+
4044
+
4045
+
4046
+
4047
+ <div class="details-item-container">
4048
+ <dt class="tag-source">Source:</dt>
4049
+ <dd class="tag-source"><ul class="dummy"><li>
4050
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line260">line 260</a>
4051
+ </li></ul></dd>
4052
+ </div>
4053
+
4054
+
4055
+
4056
+
4057
+
4058
+
4059
+
4060
+ </dl>
4061
+
4062
+
4063
+
4064
+
4065
+
4066
+
4067
+
4068
+
4069
+
4070
+
4071
+
4072
+
4073
+
4074
+
4075
+
4076
+
4077
+
4078
+
4079
+
4080
+
4081
+
4082
+
4083
+
4084
+ <h4 class="name" id="setCollision">
4085
+ <a href="#setCollision">#</a>
4086
+ <span class="type-signature"></span>setCollision<span class="signature">(collideSolidObjects<span class="signature-attributes">opt</span>, isSolid<span class="signature-attributes">opt</span>, collideTiles<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
4087
+ </h4>
4088
+
4089
+
4090
+
4091
+
4092
+
4093
+ <div class="description">
4094
+ Set how this object collides
4095
+ </div>
4096
+
4097
+
4098
+
4099
+
4100
+
4101
+
4102
+
4103
+
4104
+
4105
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
4106
+ <strong>Parameters:</strong>
4107
+
4108
+
4109
+ <table class="params">
4110
+ <thead>
4111
+ <tr>
4112
+
4113
+ <th>Name</th>
4114
+
4115
+
4116
+ <th>Type</th>
4117
+
4118
+
4119
+ <th>Attributes</th>
4120
+
4121
+
4122
+
4123
+ <th>Default</th>
4124
+
4125
+
4126
+ <th class="last">Description</th>
4127
+ </tr>
4128
+ </thead>
4129
+
4130
+ <tbody>
4131
+
4132
+
4133
+ <tr>
4134
+
4135
+ <td class="name"><code>collideSolidObjects</code></td>
4136
+
4137
+
4138
+ <td class="type">
4139
+
4140
+
4141
+ <span class="param-type">boolean</span>
4142
+
4143
+
4144
+
4145
+ </td>
4146
+
4147
+
4148
+ <td class="attributes">
4149
+
4150
+ &lt;optional><br>
4151
+
4152
+
4153
+
4154
+
4155
+
4156
+ </td>
4157
+
4158
+
4159
+
4160
+ <td class="default">
4161
+
4162
+ 0
4163
+
4164
+ </td>
4165
+
4166
+
4167
+ <td class="description last">Does it collide with solid objects</td>
4168
+ </tr>
4169
+
4170
+
4171
+
4172
+ <tr>
4173
+
4174
+ <td class="name"><code>isSolid</code></td>
4175
+
4176
+
4177
+ <td class="type">
4178
+
4179
+
4180
+ <span class="param-type">boolean</span>
4181
+
4182
+
4183
+
4184
+ </td>
4185
+
4186
+
4187
+ <td class="attributes">
4188
+
4189
+ &lt;optional><br>
4190
+
4191
+
4192
+
4193
+
4194
+
4195
+ </td>
4196
+
4197
+
4198
+
4199
+ <td class="default">
4200
+
4201
+ 0
4202
+
4203
+ </td>
4204
+
4205
+
4206
+ <td class="description last">Does it collide with and block other objects (expensive in large numbers)</td>
4207
+ </tr>
4208
+
4209
+
4210
+
4211
+ <tr>
4212
+
4213
+ <td class="name"><code>collideTiles</code></td>
4214
+
4215
+
4216
+ <td class="type">
4217
+
4218
+
4219
+ <span class="param-type">boolean</span>
4220
+
4221
+
4222
+
4223
+ </td>
4224
+
4225
+
4226
+ <td class="attributes">
4227
+
4228
+ &lt;optional><br>
4229
+
4230
+
4231
+
4232
+
4233
+
4234
+ </td>
4235
+
4236
+
4237
+
4238
+ <td class="default">
4239
+
4240
+ 1
4241
+
4242
+ </td>
4243
+
4244
+
4245
+ <td class="description last">Does it collide with the tile collision</td>
4246
+ </tr>
4247
+
4248
+
4249
+ </tbody>
4250
+ </table>
4251
+
4252
+ </div>
4253
+
4254
+
4255
+
4256
+
4257
+
4258
+
4259
+
4260
+ <dl class="details">
4261
+
4262
+
4263
+
4264
+
4265
+
4266
+
4267
+
4268
+
4269
+
4270
+
4271
+
4272
+
4273
+
4274
+
4275
+
4276
+
4277
+
4278
+
4279
+
4280
+
4281
+
4282
+
4283
+
4284
+
4285
+
4286
+
4287
+ <div class="details-item-container">
4288
+ <dt class="tag-source">Source:</dt>
4289
+ <dd class="tag-source"><ul class="dummy"><li>
4290
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line339">line 339</a>
4291
+ </li></ul></dd>
4292
+ </div>
4293
+
4294
+
4295
+
4296
+
4297
+
4298
+
4299
+
4300
+ </dl>
4301
+
4302
+
4303
+
4304
+
4305
+
4306
+
4307
+
4308
+
4309
+
4310
+
4311
+
4312
+
4313
+
4314
+
4315
+
4316
+
4317
+
4318
+
4319
+
4320
+
4321
+
4322
+
4323
+
4324
+ <h4 class="name" id="update">
4325
+ <a href="#update">#</a>
4326
+ <span class="type-signature"></span>update<span class="signature">()</span><span class="type-signature"></span>
4327
+ </h4>
4328
+
4329
+
4330
+
4331
+
4332
+
4333
+ <div class="description">
4334
+ Update the object transform and physics, called automatically by engine once each frame
4335
+ </div>
4336
+
4337
+
4338
+
4339
+
4340
+
4341
+
4342
+
4343
+
4344
+
4345
+
4346
+
4347
+
4348
+
4349
+
4350
+
4351
+ <dl class="details">
4352
+
4353
+
4354
+
4355
+
4356
+
4357
+
4358
+
4359
+
4360
+
4361
+
4362
+
4363
+
4364
+
4365
+
4366
+
4367
+
4368
+
4369
+
4370
+
4371
+
4372
+
4373
+
4374
+
4375
+
4376
+
4377
+
4378
+ <div class="details-item-container">
4379
+ <dt class="tag-source">Source:</dt>
4380
+ <dd class="tag-source"><ul class="dummy"><li>
4381
+ <a href="engineObject.js.html">engineObject.js</a>, <a href="engineObject.js.html#line84">line 84</a>
4382
+ </li></ul></dd>
4383
+ </div>
4384
+
4385
+
4386
+
4387
+
4388
+
4389
+
4390
+
4391
+ </dl>
4392
+
4393
+
4394
+
4395
+
4396
+
4397
+
4398
+
4399
+
4400
+
4401
+
4402
+
4403
+
4404
+
4405
+
4406
+
4407
+
4408
+
4409
+
4410
+
4411
+
4412
+
4413
+
4414
+
4415
+
4416
+ </article>
4417
+
4418
+ </section>
4419
+
4420
+
4421
+
4422
+
4423
+ </div>
4424
+
4425
+ <footer class="footer" id="footer">
4426
+ <a href=https://github.com/KilledByAPixel/LittleJS>LittleJS - MIT License - Copyright 2021 Frank Force</a>
4427
+ </footer>
4428
+
4429
+ <script src="scripts/third-party/prettify.js"></script>
4430
+ <script src="scripts/third-party/lang-css.js"></script>
4431
+ <script type="text/javascript" src="scripts/misc.js"></script>
4432
+
4433
+ <script>prettyPrint();</script>
4434
+ <script src="scripts/linenumber.js"></script>
4435
+ <script src="scripts/fix-code-block.js"></script>
4436
+ <script src="scripts/fix-navbar.js"></script>
4437
+
4438
+ <script src="scripts/search.js"></script>
4439
+ <script src="scripts/third-party/fuse.js"></script>
4440
+ <script>
4441
+ 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>"}];
4442
+ var options =
4443
+ setupSearch(list, options)
4444
+ </script>
4445
+
4446
+
4447
+
4448
+
4449
+
4450
+
4451
+
4452
+
4453
+
4454
+
4455
+
4456
+ </body>
4457
+
4458
+ </html>