diff --git a/docs/Color.html b/docs/Color.html index 8c590ec5..25cc9c33 100644 --- a/docs/Color.html +++ b/docs/Color.html @@ -89,7 +89,7 @@ diff --git a/docs/Debug.html b/docs/Debug.html index a73f986c..4a377ef3 100644 --- a/docs/Debug.html +++ b/docs/Debug.html @@ -89,7 +89,7 @@ diff --git a/docs/Draw.html b/docs/Draw.html index d275988f..00d3c5be 100644 --- a/docs/Draw.html +++ b/docs/Draw.html @@ -89,7 +89,7 @@ @@ -2342,7 +2342,7 @@

Source:
@@ -3761,7 +3761,7 @@

Source:
@@ -4237,7 +4237,7 @@

Source:
diff --git a/docs/EngineObject.html b/docs/EngineObject.html index 59710c6b..47bb92c3 100644 --- a/docs/EngineObject.html +++ b/docs/EngineObject.html @@ -89,7 +89,7 @@ diff --git a/docs/FontImage.html b/docs/FontImage.html index 8fa7bcf8..48b06567 100644 --- a/docs/FontImage.html +++ b/docs/FontImage.html @@ -89,7 +89,7 @@ @@ -419,7 +419,7 @@

Source:
@@ -706,7 +706,7 @@

Source:
@@ -975,7 +975,7 @@

Source:
diff --git a/docs/Input.html b/docs/Input.html index 7f591ab9..eb4eb907 100644 --- a/docs/Input.html +++ b/docs/Input.html @@ -89,7 +89,7 @@ @@ -819,7 +819,7 @@

- Prevents input continuing to the default browser handling (true by default in release builds) + Prevents input continuing to the default browser handling (false by default)
diff --git a/docs/Medal.html b/docs/Medal.html index 3f60ee90..2b649b96 100644 --- a/docs/Medal.html +++ b/docs/Medal.html @@ -89,7 +89,7 @@ diff --git a/docs/Medals.html b/docs/Medals.html index ae4e09d9..c1ddc398 100644 --- a/docs/Medals.html +++ b/docs/Medals.html @@ -89,7 +89,7 @@ diff --git a/docs/Music.html b/docs/Music.html index 0e3373c3..5b7fce13 100644 --- a/docs/Music.html +++ b/docs/Music.html @@ -89,7 +89,7 @@ diff --git a/docs/Newgrounds.html b/docs/Newgrounds.html index b96f331c..1a881fc6 100644 --- a/docs/Newgrounds.html +++ b/docs/Newgrounds.html @@ -89,7 +89,7 @@ diff --git a/docs/Particle.html b/docs/Particle.html index 787f7178..986daa68 100644 --- a/docs/Particle.html +++ b/docs/Particle.html @@ -89,7 +89,7 @@ diff --git a/docs/ParticleEmitter.html b/docs/ParticleEmitter.html index 1939d528..276bc795 100644 --- a/docs/ParticleEmitter.html +++ b/docs/ParticleEmitter.html @@ -89,7 +89,7 @@ diff --git a/docs/Random.html b/docs/Random.html index d06160c0..11e8db4a 100644 --- a/docs/Random.html +++ b/docs/Random.html @@ -89,7 +89,7 @@ diff --git a/docs/Settings.html b/docs/Settings.html index 7330523d..fd9889cc 100644 --- a/docs/Settings.html +++ b/docs/Settings.html @@ -89,7 +89,7 @@ diff --git a/docs/Sound.html b/docs/Sound.html index dfd3c91b..1db70ba8 100644 --- a/docs/Sound.html +++ b/docs/Sound.html @@ -89,7 +89,7 @@ diff --git a/docs/TileCollision.html b/docs/TileCollision.html index dd4e89e0..a8a4dbcf 100644 --- a/docs/TileCollision.html +++ b/docs/TileCollision.html @@ -89,7 +89,7 @@ diff --git a/docs/TileLayer.html b/docs/TileLayer.html index 5aec8722..b0563e03 100644 --- a/docs/TileLayer.html +++ b/docs/TileLayer.html @@ -89,7 +89,7 @@ diff --git a/docs/TileLayerData.html b/docs/TileLayerData.html index a857101b..1e47e990 100644 --- a/docs/TileLayerData.html +++ b/docs/TileLayerData.html @@ -89,7 +89,7 @@ diff --git a/docs/Timer.html b/docs/Timer.html index 8b447a60..08fb2e7c 100644 --- a/docs/Timer.html +++ b/docs/Timer.html @@ -89,7 +89,7 @@ diff --git a/docs/Utilities.html b/docs/Utilities.html index 302ab83e..d2efc965 100644 --- a/docs/Utilities.html +++ b/docs/Utilities.html @@ -89,7 +89,7 @@ diff --git a/docs/Vector2.html b/docs/Vector2.html index 50ddd7da..8a510d94 100644 --- a/docs/Vector2.html +++ b/docs/Vector2.html @@ -89,7 +89,7 @@ diff --git a/docs/WebGL.html b/docs/WebGL.html index b6844d81..2da181fb 100644 --- a/docs/WebGL.html +++ b/docs/WebGL.html @@ -89,7 +89,7 @@ diff --git a/docs/engine.js.html b/docs/engine.js.html index d7e9fa4f..5a55df60 100644 --- a/docs/engine.js.html +++ b/docs/engine.js.html @@ -89,7 +89,7 @@ @@ -139,7 +139,7 @@

const engineName = 'LittleJS'; /** Version of engine */ -const engineVersion = '1.3.2'; +const engineVersion = '1.3.3'; /** Frames per second to update objects * @default */ diff --git a/docs/engineAudio.js.html b/docs/engineAudio.js.html index 16dfdf7f..b097b977 100644 --- a/docs/engineAudio.js.html +++ b/docs/engineAudio.js.html @@ -89,7 +89,7 @@ @@ -406,8 +406,7 @@

) { // init parameters - let PI2 = PI*2, sign = v => v>0?1:-1, - startSlide = slide *= 500 * PI2 / zzfxR / zzfxR, b=[], + let PI2 = PI*2, startSlide = slide *= 500 * PI2 / zzfxR / zzfxR, b=[], startFrequency = frequency *= (1 + randomness*rand(-1,1)) * PI2 / zzfxR, t=0, tm=0, i=0, j=1, r=0, c=0, s=0, f, length; @@ -431,15 +430,15 @@

{ s = shape? shape>1? shape>2? shape>3? // wave shape Math.sin((t%PI2)**3) : // 4 noise - Math.max(Math.min(Math.tan(t),1),-1): // 3 tan + max(min(Math.tan(t),1),-1): // 3 tan 1-(2*t/PI2%2+2)%2: // 2 saw - 1-4*abs(Math.round(t/PI2)-t/PI2): // 1 triangle + 1-4*abs(Math.round(t/PI2)-t/PI2): // 1 triangle Math.sin(t); // 0 sin s = (repeatTime ? 1 - tremolo + tremolo*Math.sin(PI2*i/repeatTime) // tremolo : 1) * - sign(s)*(abs(s)**shapeCurve) * // curve 0=square, 2=pointy + sign(s)*(abs(s)**shapeCurve) * // curve 0=square, 2=pointy volume * soundVolume * ( // envelope i < attack ? i/attack : // attack i < attack + decay ? // decay @@ -500,7 +499,6 @@

let notFirstBeat; let stop; let instrument; - let pitch; let attenuation; let outSampleOffset; let isSequenceEnd; @@ -519,7 +517,7 @@

for (; hasMore; channelIndex++) { // reset current values - sampleBuffer = [hasMore = notFirstBeat = pitch = outSampleOffset = 0]; + sampleBuffer = [hasMore = notFirstBeat = outSampleOffset = 0]; // for each pattern in sequence sequence.forEach((patternIndex, sequenceIndex) => { diff --git a/docs/engineDebug.js.html b/docs/engineDebug.js.html index 185e0e9f..eeb10188 100644 --- a/docs/engineDebug.js.html +++ b/docs/engineDebug.js.html @@ -89,7 +89,7 @@ diff --git a/docs/engineDraw.js.html b/docs/engineDraw.js.html index 4a840ac6..a25aa671 100644 --- a/docs/engineDraw.js.html +++ b/docs/engineDraw.js.html @@ -89,7 +89,7 @@ @@ -345,11 +345,12 @@

function drawTextScreen(text, pos, size=1, color=new Color, lineWidth=0, lineColor=new Color(0,0,0), textAlign='center', font=fontDefault) { overlayContext.fillStyle = color; - overlayContext.lineWidth = lineWidth *= cameraScale; + overlayContext.lineWidth = lineWidth; overlayContext.strokeStyle = lineColor; overlayContext.textAlign = textAlign; overlayContext.font = size + 'px '+ font; overlayContext.textBaseline = 'middle'; + overlayContext.lineJoin = 'round'; pos = pos.copy(); text.split('\n').forEach(line=> @@ -372,7 +373,7 @@

* @memberof Draw */ function drawText(text, pos, size=1, color, lineWidth, lineColor, textAlign, font) { - drawTextScreen(text, worldToScreen(pos), size*cameraScale, color, lineWidth, lineColor, textAlign, font); + drawTextScreen(text, worldToScreen(pos), size*cameraScale, color, lineWidth*cameraScale, lineColor, textAlign, font); } /////////////////////////////////////////////////////////////////////////////// diff --git a/docs/engineInput.js.html b/docs/engineInput.js.html index 48c512df..7ab01ad1 100644 --- a/docs/engineInput.js.html +++ b/docs/engineInput.js.html @@ -89,7 +89,7 @@ @@ -187,9 +187,9 @@

* @memberof Input */ let isUsingGamepad = 0; -/** Prevents input continuing to the default browser handling (true by default in release builds) +/** Prevents input continuing to the default browser handling (false by default) * @memberof Input */ -let preventDefaultInput = !debug; +let preventDefaultInput = 0; /** Returns true if gamepad button is down * @param {Number} button diff --git a/docs/engineMedals.js.html b/docs/engineMedals.js.html index afb5167d..a31fcf85 100644 --- a/docs/engineMedals.js.html +++ b/docs/engineMedals.js.html @@ -89,7 +89,7 @@ diff --git a/docs/engineObject.js.html b/docs/engineObject.js.html index b95828cd..2693a048 100644 --- a/docs/engineObject.js.html +++ b/docs/engineObject.js.html @@ -89,7 +89,7 @@ diff --git a/docs/engineParticles.js.html b/docs/engineParticles.js.html index 8932f9f9..de3a9171 100644 --- a/docs/engineParticles.js.html +++ b/docs/engineParticles.js.html @@ -89,7 +89,7 @@ diff --git a/docs/engineSettings.js.html b/docs/engineSettings.js.html index 680467bb..4295e18f 100644 --- a/docs/engineSettings.js.html +++ b/docs/engineSettings.js.html @@ -89,7 +89,7 @@ diff --git a/docs/engineTileLayer.js.html b/docs/engineTileLayer.js.html index 70d33f7e..760865ef 100644 --- a/docs/engineTileLayer.js.html +++ b/docs/engineTileLayer.js.html @@ -89,7 +89,7 @@ diff --git a/docs/engineUtilities.js.html b/docs/engineUtilities.js.html index 55ed3c96..c4c7af3e 100644 --- a/docs/engineUtilities.js.html +++ b/docs/engineUtilities.js.html @@ -89,7 +89,7 @@ diff --git a/docs/engineWebGL.js.html b/docs/engineWebGL.js.html index 0e7bcd3d..f1554ff7 100644 --- a/docs/engineWebGL.js.html +++ b/docs/engineWebGL.js.html @@ -89,7 +89,7 @@ diff --git a/docs/global.html b/docs/global.html index b1b92ecf..2fb506ce 100644 --- a/docs/global.html +++ b/docs/global.html @@ -89,7 +89,7 @@ @@ -198,7 +198,7 @@

Source:
diff --git a/docs/index.html b/docs/index.html index 9c319e80..730f2d1c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -89,7 +89,7 @@