Skip to content

Commit 8a1be1a

Browse files
build: rebuild engine with oscillate and doc fixes
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 4519228 commit 8a1be1a

6 files changed

Lines changed: 16 additions & 12 deletions

File tree

dist/littlejs.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ declare module "littlejsengine" {
606606
* @memberof Settings */
607607
export let soundEnable: boolean;
608608
/** Volume scale to apply to all sound, music and speech
609+
* Use setSoundVolume to also update the audio master gain immediately
609610
* @type {number}
610611
* @default
611612
* @memberof Settings */
@@ -3572,7 +3573,7 @@ declare module "littlejsengine" {
35723573
* @memberof PostProcess */
35733574
export let postProcess: PostProcessPlugin;
35743575
/**
3575-
* UI System Global Object
3576+
* Post Process Plugin - Applies a full screen shader to the rendered output
35763577
* @memberof PostProcess
35773578
*/
35783579
export class PostProcessPlugin {

dist/littlejs.esm.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ function isIntersecting(start, end, pos, size)
15831583
* @memberof Math */
15841584
function oscillate(frequency=1, amplitude=1, t=time, offset=0, type=0)
15851585
{
1586-
const phase = (offset + t*frequency) % 1;
1586+
const phase = mod(offset + t*frequency, 1);
15871587
let value;
15881588

15891589
if (type === 1) // triangle
@@ -3118,6 +3118,7 @@ let vibrateEnable = true;
31183118
let soundEnable = true;
31193119

31203120
/** Volume scale to apply to all sound, music and speech
3121+
* Use setSoundVolume to also update the audio master gain immediately
31213122
* @type {number}
31223123
* @default
31233124
* @memberof Settings */
@@ -10293,8 +10294,8 @@ class NewgroundsPlugin
1029310294
let postProcess;
1029410295

1029510296
/////////////////////////////////////////////////////////////////////////
10296-
/**
10297-
* UI System Global Object
10297+
/**
10298+
* Post Process Plugin - Applies a full screen shader to the rendered output
1029810299
* @memberof PostProcess
1029910300
*/
1030010301
class PostProcessPlugin

dist/littlejs.esm.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/littlejs.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ function isIntersecting(start, end, pos, size)
15831583
* @memberof Math */
15841584
function oscillate(frequency=1, amplitude=1, t=time, offset=0, type=0)
15851585
{
1586-
const phase = (offset + t*frequency) % 1;
1586+
const phase = mod(offset + t*frequency, 1);
15871587
let value;
15881588

15891589
if (type === 1) // triangle
@@ -3118,6 +3118,7 @@ let vibrateEnable = true;
31183118
let soundEnable = true;
31193119

31203120
/** Volume scale to apply to all sound, music and speech
3121+
* Use setSoundVolume to also update the audio master gain immediately
31213122
* @type {number}
31223123
* @default
31233124
* @memberof Settings */
@@ -10293,8 +10294,8 @@ class NewgroundsPlugin
1029310294
let postProcess;
1029410295

1029510296
/////////////////////////////////////////////////////////////////////////
10296-
/**
10297-
* UI System Global Object
10297+
/**
10298+
* Post Process Plugin - Applies a full screen shader to the rendered output
1029810299
* @memberof PostProcess
1029910300
*/
1030010301
class PostProcessPlugin

dist/littlejs.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/littlejs.release.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ function isIntersecting(start, end, pos, size)
892892
* @memberof Math */
893893
function oscillate(frequency=1, amplitude=1, t=time, offset=0, type=0)
894894
{
895-
const phase = (offset + t*frequency) % 1;
895+
const phase = mod(offset + t*frequency, 1);
896896
let value;
897897

898898
if (type === 1) // triangle
@@ -2427,6 +2427,7 @@ let vibrateEnable = true;
24272427
let soundEnable = true;
24282428

24292429
/** Volume scale to apply to all sound, music and speech
2430+
* Use setSoundVolume to also update the audio master gain immediately
24302431
* @type {number}
24312432
* @default
24322433
* @memberof Settings */
@@ -9602,8 +9603,8 @@ class NewgroundsPlugin
96029603
let postProcess;
96039604

96049605
/////////////////////////////////////////////////////////////////////////
9605-
/**
9606-
* UI System Global Object
9606+
/**
9607+
* Post Process Plugin - Applies a full screen shader to the rendered output
96079608
* @memberof PostProcess
96089609
*/
96099610
class PostProcessPlugin

0 commit comments

Comments
 (0)