woofjs-engine 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +16 -106
  3. package/THIRD_PARTY_NOTICES.md +7 -0
  4. package/dist/canvas.js +4 -31
  5. package/dist/collision.js +8 -5
  6. package/dist/game.js +4 -84
  7. package/dist/index-1jykaz1m.js +142 -0
  8. package/dist/index-9mz0qg9d.js +39 -0
  9. package/dist/index-b9a70qgn.js +34 -0
  10. package/dist/index-dp75gf4w.js +57 -0
  11. package/dist/index-f63yb8zf.js +85 -0
  12. package/dist/index-gypg8d50.js +31 -0
  13. package/dist/index-pw0zq53c.js +2533 -0
  14. package/dist/index.js +134 -239
  15. package/dist/input.js +4 -33
  16. package/dist/play.js +296 -0
  17. package/dist/sound.js +4 -56
  18. package/dist/store.js +4 -30
  19. package/dist/types/canvas.d.ts +20 -2
  20. package/dist/types/collision.d.ts +62 -0
  21. package/dist/types/game.d.ts +21 -1
  22. package/dist/types/global.d.ts +4 -0
  23. package/dist/types/helpers.d.ts +92 -0
  24. package/dist/types/index.d.ts +23 -12
  25. package/dist/types/input.d.ts +4 -0
  26. package/dist/types/play.d.ts +159 -0
  27. package/dist/types/sound.d.ts +10 -3
  28. package/dist/types/sprites/custom.d.ts +9 -0
  29. package/dist/types/sprites/easing.d.ts +9 -0
  30. package/dist/types/sprites/geometry.d.ts +22 -0
  31. package/dist/types/sprites/options.d.ts +98 -0
  32. package/dist/types/sprites/render.d.ts +2 -0
  33. package/dist/types/sprites/sprite.d.ts +283 -0
  34. package/dist/types/store.d.ts +4 -0
  35. package/dist/types/ui.d.ts +65 -0
  36. package/dist/types/woof.d.ts +386 -0
  37. package/dist/types/world/audio.d.ts +118 -0
  38. package/dist/types/world/globals.d.ts +3 -0
  39. package/dist/types/world/keys.d.ts +2 -0
  40. package/dist/types/world/options.d.ts +44 -0
  41. package/dist/types/world/render.d.ts +13 -0
  42. package/dist/types/world/scheduler.d.ts +65 -0
  43. package/dist/ui.js +235 -0
  44. package/dist/woof.global.js +3577 -0
  45. package/docs/api.json +5359 -0
  46. package/docs/woof-parity.md +231 -0
  47. package/package.json +25 -8
  48. package/docs/architecture.md +0 -37
  49. package/docs/planning.md +0 -33
package/dist/index.js CHANGED
@@ -1,241 +1,136 @@
1
- // src/game.ts
2
- function createGame({
3
- state = {},
4
- update = () => {},
5
- render = () => {},
6
- requestFrame,
7
- cancelFrame
8
- } = {}) {
9
- let running = false;
10
- let frameId = null;
11
- let previousTime = null;
12
- let frame = 0;
13
- let currentState = state;
14
- function step(deltaMs, timestamp = 0) {
15
- if (!Number.isFinite(deltaMs) || deltaMs < 0)
16
- throw new RangeError("deltaMs must be a finite, non-negative number");
17
- const deltaSeconds = deltaMs / 1000;
18
- const info = { deltaMs, timestamp, frame };
19
- update(deltaSeconds, currentState, info);
20
- render(currentState, { ...info, deltaSeconds });
21
- frame += 1;
22
- return currentState;
23
- }
24
- function getRequestFrame() {
25
- const fn = requestFrame ?? globalThis.requestAnimationFrame;
26
- if (typeof fn !== "function")
27
- throw new Error("requestAnimationFrame is unavailable; provide requestFrame");
28
- return fn;
29
- }
30
- function tick(timestamp) {
31
- if (!running)
32
- return;
33
- const delta = previousTime === null ? 0 : Math.max(0, timestamp - previousTime);
34
- previousTime = timestamp;
35
- frameId = null;
36
- try {
37
- step(delta, timestamp);
38
- if (running)
39
- frameId = getRequestFrame()(tick);
40
- } catch (error) {
41
- running = false;
42
- previousTime = null;
43
- throw error;
44
- }
45
- }
46
- const loop = {
47
- step,
48
- getState: () => currentState,
49
- setState(nextState) {
50
- currentState = nextState;
51
- return currentState;
52
- },
53
- start() {
54
- if (running)
55
- return this;
56
- const schedule = getRequestFrame();
57
- previousTime = null;
58
- running = true;
59
- try {
60
- frameId = schedule(tick);
61
- } catch (error) {
62
- running = false;
63
- throw error;
64
- }
65
- return this;
66
- },
67
- stop() {
68
- if (!running)
69
- return this;
70
- running = false;
71
- const cancel = cancelFrame ?? globalThis.cancelAnimationFrame;
72
- if (frameId !== null && typeof cancel === "function")
73
- cancel(frameId);
74
- frameId = null;
75
- previousTime = null;
76
- return this;
77
- },
78
- get running() {
79
- return running;
80
- }
81
- };
82
- return loop;
83
- }
84
- // src/sound.ts
85
- function createSound(buffer, audioContext, { volume = 1, maxGain = 4 } = {}) {
86
- if (!buffer)
87
- throw new TypeError("buffer is required");
88
- if (!audioContext || typeof audioContext.createBufferSource !== "function" || typeof audioContext.createGain !== "function") {
89
- throw new TypeError("audioContext must provide createBufferSource() and createGain()");
90
- }
91
- if (!Number.isFinite(maxGain) || maxGain < 0)
92
- throw new RangeError("maxGain must be a finite, non-negative number");
93
- if (!Number.isFinite(volume) || volume < 0)
94
- throw new RangeError("volume must be a finite, non-negative number");
95
- return {
96
- startPlaying({ loop = false, playbackRate = 1 } = {}) {
97
- const source = audioContext.createBufferSource();
98
- const gainNode = audioContext.createGain();
99
- source.buffer = buffer;
100
- source.loop = Boolean(loop);
101
- if (source.playbackRate)
102
- source.playbackRate.value = playbackRate;
103
- const baseGain = clamp(volume, maxGain);
104
- gainNode.gain.value = baseGain;
105
- source.connect(gainNode);
106
- gainNode.connect(audioContext.destination);
107
- source.start();
108
- let stopped = false;
109
- return {
110
- source,
111
- amplify(multiplier) {
112
- if (stopped)
113
- return this;
114
- if (multiplier === "max")
115
- gainNode.gain.value = maxGain;
116
- else if (typeof multiplier === "number" && Number.isFinite(multiplier)) {
117
- gainNode.gain.value = clamp(baseGain * multiplier, maxGain);
118
- } else
119
- throw new TypeError("amplify expects a finite multiplier or 'max'");
120
- return this;
121
- },
122
- stop() {
123
- if (!stopped) {
124
- stopped = true;
125
- source.stop();
126
- }
127
- return this;
128
- },
129
- get stopped() {
130
- return stopped;
131
- }
132
- };
133
- }
134
- };
135
- }
136
- function clamp(value, maximum) {
137
- return Math.min(maximum, Math.max(0, value));
138
- }
139
- // src/store.ts
140
- function createStore(initialState = {}) {
141
- let state = initialState;
142
- const listeners = new Set;
143
- function setState(nextState) {
144
- const next = typeof nextState === "function" ? nextState(state) : nextState;
145
- if (Object.is(next, state))
146
- return state;
147
- state = next;
148
- for (const listener of [...listeners])
149
- listener(state);
150
- return state;
151
- }
152
- return {
153
- getState: () => state,
154
- setState,
155
- update(mutator) {
156
- if (typeof mutator !== "function")
157
- throw new TypeError("mutator must be a function");
158
- return setState(mutator(state));
159
- },
160
- subscribe(listener) {
161
- if (typeof listener !== "function")
162
- throw new TypeError("listener must be a function");
163
- listeners.add(listener);
164
- return () => listeners.delete(listener);
165
- }
166
- };
167
- }
168
- // src/canvas.ts
169
- function createCanvas({ document: doc = globalThis.document, parent, width = 300, height = 150, context = "2d", contextOptions } = {}) {
170
- if (!doc || typeof doc.createElement !== "function")
171
- throw new Error("A browser document is required; pass document explicitly");
172
- const element = doc.createElement("canvas");
173
- element.width = width;
174
- element.height = height;
175
- const drawingContext = element.getContext(context, contextOptions);
176
- if (!drawingContext)
177
- throw new Error(`Unable to create ${context} canvas context`);
178
- parent?.appendChild(element);
179
- let removed = false;
180
- return {
181
- element,
182
- context: drawingContext,
183
- resize(nextWidth, nextHeight) {
184
- if (removed)
185
- throw new Error("Cannot resize a removed canvas");
186
- element.width = nextWidth;
187
- element.height = nextHeight;
188
- return this;
189
- },
190
- destroy() {
191
- if (!removed) {
192
- removed = true;
193
- element.remove();
194
- }
195
- }
196
- };
197
- }
198
- // src/input.ts
199
- function createKeyboard(target = globalThis.window) {
200
- if (!target || typeof target.addEventListener !== "function")
201
- throw new Error("A keyboard event target is required");
202
- const pressed = new Set;
203
- const down = (event) => {
204
- const code = event.code;
205
- if (code)
206
- pressed.add(code);
207
- };
208
- const up = (event) => {
209
- pressed.delete(event.code);
210
- };
211
- const clear = () => pressed.clear();
212
- target.addEventListener("keydown", down);
213
- target.addEventListener("keyup", up);
214
- target.addEventListener("blur", clear);
215
- let destroyed = false;
216
- return {
217
- isDown: (code) => pressed.has(code),
218
- clear,
219
- destroy() {
220
- if (destroyed)
221
- return;
222
- destroyed = true;
223
- target.removeEventListener("keydown", down);
224
- target.removeEventListener("keyup", up);
225
- target.removeEventListener("blur", clear);
226
- clear();
227
- }
228
- };
229
- }
230
- // src/collision.ts
231
- function overlaps(a, b) {
232
- return a.width > 0 && a.height > 0 && b.width > 0 && b.height > 0 && a.x < b.x + b.width && a.x + a.width > b.x && a.y < b.y + b.height && a.y + a.height > b.y;
233
- }
1
+ import {
2
+ createGame2
3
+ } from "./index-f63yb8zf.js";
4
+ import {
5
+ createSound2
6
+ } from "./index-dp75gf4w.js";
7
+ import {
8
+ createStore2
9
+ } from "./index-gypg8d50.js";
10
+ import {
11
+ createCanvas2
12
+ } from "./index-9mz0qg9d.js";
13
+ import {
14
+ createKeyboard2
15
+ } from "./index-b9a70qgn.js";
16
+ import {
17
+ overlaps2,
18
+ detectCollision2
19
+ } from "./index-1jykaz1m.js";
20
+ import {
21
+ clamp2,
22
+ lerp2,
23
+ distance2,
24
+ between2,
25
+ remove2,
26
+ randomFloat2,
27
+ random2,
28
+ pick2,
29
+ shuffle2,
30
+ range2,
31
+ rgb2,
32
+ randomColor2,
33
+ RIGHT2,
34
+ LEFT2,
35
+ UP2,
36
+ DOWN2,
37
+ sin2,
38
+ cos2,
39
+ tan2,
40
+ asin2,
41
+ acos2,
42
+ atan2,
43
+ sqrt2,
44
+ abs2,
45
+ floor2,
46
+ ceiling2,
47
+ ln2,
48
+ log2,
49
+ pow2,
50
+ hourMilitary2,
51
+ hour2,
52
+ minute2,
53
+ second2,
54
+ dayOfMonth2,
55
+ dayOfWeek2,
56
+ month2,
57
+ year2,
58
+ mobile2,
59
+ importCodeURL2,
60
+ extend2,
61
+ months2,
62
+ keyCodeToString2,
63
+ unitsToMiliseconds2,
64
+ throttle2,
65
+ getData2,
66
+ arrayToString2,
67
+ easings2,
68
+ Sprite2,
69
+ ProjectSound2,
70
+ Repeat2,
71
+ RepeatUntil2,
72
+ Project2,
73
+ woof2
74
+ } from "./index-pw0zq53c.js";
234
75
  export {
235
- createCanvas,
236
- createGame,
237
- createKeyboard,
238
- createSound,
239
- createStore,
240
- overlaps
76
+ DOWN2 as DOWN,
77
+ LEFT2 as LEFT,
78
+ Project2 as Project,
79
+ ProjectSound2 as ProjectSound,
80
+ RIGHT2 as RIGHT,
81
+ Repeat2 as Repeat,
82
+ RepeatUntil2 as RepeatUntil,
83
+ Sprite2 as Sprite,
84
+ UP2 as UP,
85
+ abs2 as abs,
86
+ acos2 as acos,
87
+ arrayToString2 as arrayToString,
88
+ asin2 as asin,
89
+ atan2 as atan,
90
+ between2 as between,
91
+ ceiling2 as ceiling,
92
+ clamp2 as clamp,
93
+ cos2 as cos,
94
+ createCanvas2 as createCanvas,
95
+ createGame2 as createGame,
96
+ createKeyboard2 as createKeyboard,
97
+ createSound2 as createSound,
98
+ createStore2 as createStore,
99
+ dayOfMonth2 as dayOfMonth,
100
+ dayOfWeek2 as dayOfWeek,
101
+ detectCollision2 as detectCollision,
102
+ distance2 as distance,
103
+ easings2 as easings,
104
+ extend2 as extend,
105
+ floor2 as floor,
106
+ getData2 as getData,
107
+ hour2 as hour,
108
+ hourMilitary2 as hourMilitary,
109
+ importCodeURL2 as importCodeURL,
110
+ keyCodeToString2 as keyCodeToString,
111
+ lerp2 as lerp,
112
+ ln2 as ln,
113
+ log2 as log,
114
+ minute2 as minute,
115
+ mobile2 as mobile,
116
+ month2 as month,
117
+ months2 as months,
118
+ overlaps2 as overlaps,
119
+ pick2 as pick,
120
+ pow2 as pow,
121
+ random2 as random,
122
+ randomColor2 as randomColor,
123
+ randomFloat2 as randomFloat,
124
+ range2 as range,
125
+ remove2 as remove,
126
+ rgb2 as rgb,
127
+ second2 as second,
128
+ shuffle2 as shuffle,
129
+ sin2 as sin,
130
+ sqrt2 as sqrt,
131
+ tan2 as tan,
132
+ throttle2 as throttle,
133
+ unitsToMiliseconds2 as unitsToMiliseconds,
134
+ woof2 as woof,
135
+ year2 as year
241
136
  };
package/dist/input.js CHANGED
@@ -1,35 +1,6 @@
1
- // src/input.ts
2
- function createKeyboard(target = globalThis.window) {
3
- if (!target || typeof target.addEventListener !== "function")
4
- throw new Error("A keyboard event target is required");
5
- const pressed = new Set;
6
- const down = (event) => {
7
- const code = event.code;
8
- if (code)
9
- pressed.add(code);
10
- };
11
- const up = (event) => {
12
- pressed.delete(event.code);
13
- };
14
- const clear = () => pressed.clear();
15
- target.addEventListener("keydown", down);
16
- target.addEventListener("keyup", up);
17
- target.addEventListener("blur", clear);
18
- let destroyed = false;
19
- return {
20
- isDown: (code) => pressed.has(code),
21
- clear,
22
- destroy() {
23
- if (destroyed)
24
- return;
25
- destroyed = true;
26
- target.removeEventListener("keydown", down);
27
- target.removeEventListener("keyup", up);
28
- target.removeEventListener("blur", clear);
29
- clear();
30
- }
31
- };
32
- }
1
+ import {
2
+ createKeyboard2
3
+ } from "./index-b9a70qgn.js";
33
4
  export {
34
- createKeyboard
5
+ createKeyboard2 as createKeyboard
35
6
  };
package/dist/play.js ADDED
@@ -0,0 +1,296 @@
1
+ import"./index-1jykaz1m.js";
2
+ import {
3
+ clamp2,
4
+ lerp2,
5
+ distance2,
6
+ between2,
7
+ remove2,
8
+ randomFloat2,
9
+ random2,
10
+ pick2,
11
+ shuffle2,
12
+ range2,
13
+ rgb2,
14
+ randomColor2,
15
+ RIGHT2,
16
+ LEFT2,
17
+ UP2,
18
+ DOWN2,
19
+ sin2,
20
+ cos2,
21
+ tan2,
22
+ asin2,
23
+ acos2,
24
+ atan2,
25
+ sqrt2,
26
+ abs2,
27
+ floor2,
28
+ ceiling2,
29
+ ln2,
30
+ log2,
31
+ pow2,
32
+ hourMilitary2,
33
+ hour2,
34
+ minute2,
35
+ second2,
36
+ dayOfMonth2,
37
+ dayOfWeek2,
38
+ month2,
39
+ year2,
40
+ mobile2,
41
+ importCodeURL2,
42
+ extend2,
43
+ months2,
44
+ keyCodeToString2,
45
+ unitsToMiliseconds2,
46
+ throttle2,
47
+ getData2,
48
+ arrayToString2,
49
+ woof2
50
+ } from "./index-pw0zq53c.js";
51
+
52
+ // src/play.ts
53
+ var current;
54
+ function project() {
55
+ if (!current) {
56
+ current = woof2({ fullScreen: true });
57
+ const sync = () => {
58
+ const p = current;
59
+ mouseX = p.mouseX;
60
+ mouseY = p.mouseY;
61
+ minX = p.minX;
62
+ maxX = p.maxX;
63
+ minY = p.minY;
64
+ maxY = p.maxY;
65
+ };
66
+ for (const key of [
67
+ "mouseX",
68
+ "mouseY",
69
+ "cameraX",
70
+ "cameraY",
71
+ "width",
72
+ "height"
73
+ ]) {
74
+ let value = current[key];
75
+ Object.defineProperty(current, key, {
76
+ configurable: true,
77
+ enumerable: true,
78
+ get: () => value,
79
+ set: (next) => {
80
+ value = next;
81
+ sync();
82
+ }
83
+ });
84
+ }
85
+ sync();
86
+ }
87
+ return current;
88
+ }
89
+ var mouseX = 0;
90
+ var mouseY = 0;
91
+ var minX = -175;
92
+ var maxX = 175;
93
+ var minY = -250;
94
+ var maxY = 250;
95
+ function shape(type) {
96
+ return function(options = {}) {
97
+ return (options.project ?? project()).createSprite(type, options);
98
+ };
99
+ }
100
+ var Circle = shape("circle");
101
+ var Rectangle = shape("rectangle");
102
+ var Oval = shape("oval");
103
+ var Polygon = shape("polygon");
104
+ var Line = shape("line");
105
+ var Text = shape("text");
106
+ var TextPrimative = shape("text");
107
+ var Image = shape("image");
108
+ var Bundle = shape("bundle");
109
+ var Sprite = shape("sprite");
110
+ var customSprite = (definition) => project().customSprite(definition);
111
+ var Sound = function(options = {}) {
112
+ return project().sound(options);
113
+ };
114
+ function every(time, unitsOrFn, fn) {
115
+ return typeof unitsOrFn === "string" ? project().every(time, unitsOrFn, fn) : project().every(time, unitsOrFn);
116
+ }
117
+ function after(time, unitsOrFn, fn) {
118
+ return typeof unitsOrFn === "string" ? project().after(time, unitsOrFn, fn) : project().after(time, unitsOrFn);
119
+ }
120
+ var forever = (fn) => project().forever(fn);
121
+ var when = (condition, fn) => project().when(condition, fn);
122
+ var once = (condition, fn) => project().once(condition, fn);
123
+ var repeat = (count, fn, after) => project().repeat(count, fn, after);
124
+ var repeatUntil = (condition, fn, after) => project().repeatUntil(condition, fn, after);
125
+ var wait = (seconds) => project().wait(seconds);
126
+ var ready = (fn) => project().ready(fn);
127
+ var translateToCanvas = (x, y) => project().translateToCanvas(x, y);
128
+ var translateToCenter = (x, y) => project().translateToCenter(x, y);
129
+ var pressing = {
130
+ includes: (key) => project().key(key)
131
+ };
132
+ var setBackdropColor = (color) => project().setBackdropColor(color);
133
+ var setBackdropURL = (url) => project().setBackdropURL(url);
134
+ var setBackdropSize = (width, height) => project().setBackdropSize(width, height);
135
+ var setBackdropStyle = (style) => project().setBackdropStyle(style);
136
+ var setBackdropRepeat = (repeat) => project().setBackdropRepeat(repeat);
137
+ var bounds = () => project().bounds();
138
+ var randomX = () => project().randomX();
139
+ var randomY = () => project().randomY();
140
+ var clearPen = () => project().clearPen();
141
+ var timer = () => project().timer();
142
+ var resetTimer = () => project().resetTimer();
143
+ var freeze = () => project().freeze();
144
+ var defrost = () => project().defrost();
145
+ var scene = (name, setup) => project().scene(name, setup);
146
+ var go = (name, data) => project().go(name, data);
147
+ var find = (tag) => project().find(tag);
148
+ var particles = (options) => project().particles(options);
149
+ var save = (key, value) => project().save(key, value);
150
+ var load = (key, fallback) => project().load(key, fallback);
151
+ var onUpdate = (fn) => project().onUpdate(fn);
152
+ var onKeyDown = (fn) => project().onKeyDown(fn);
153
+ var onKeyUp = (fn) => project().onKeyUp(fn);
154
+ var onMouseDown = (fn) => project().onMouseDown(fn);
155
+ var onMouseUp = (fn) => project().onMouseUp(fn);
156
+ var onMouseMove = (fn) => project().onMouseMove(fn);
157
+ var mouse = {
158
+ get x() {
159
+ return project().mouseX;
160
+ },
161
+ get y() {
162
+ return project().mouseY;
163
+ },
164
+ get down() {
165
+ return project().mouseDown;
166
+ }
167
+ };
168
+ var world = {
169
+ get width() {
170
+ return project().width;
171
+ },
172
+ get height() {
173
+ return project().height;
174
+ },
175
+ get minX() {
176
+ return project().minX;
177
+ },
178
+ get maxX() {
179
+ return project().maxX;
180
+ },
181
+ get minY() {
182
+ return project().minY;
183
+ },
184
+ get maxY() {
185
+ return project().maxY;
186
+ },
187
+ get sprites() {
188
+ return project().sprites;
189
+ }
190
+ };
191
+ export {
192
+ Bundle,
193
+ Circle,
194
+ DOWN2 as DOWN,
195
+ Image,
196
+ LEFT2 as LEFT,
197
+ Line,
198
+ Oval,
199
+ Polygon,
200
+ RIGHT2 as RIGHT,
201
+ Rectangle,
202
+ Sound,
203
+ Sprite,
204
+ Text,
205
+ TextPrimative,
206
+ UP2 as UP,
207
+ abs2 as abs,
208
+ acos2 as acos,
209
+ after,
210
+ arrayToString2 as arrayToString,
211
+ asin2 as asin,
212
+ atan2 as atan,
213
+ between2 as between,
214
+ bounds,
215
+ ceiling2 as ceiling,
216
+ clamp2 as clamp,
217
+ clearPen,
218
+ cos2 as cos,
219
+ customSprite,
220
+ dayOfMonth2 as dayOfMonth,
221
+ dayOfWeek2 as dayOfWeek,
222
+ defrost,
223
+ distance2 as distance,
224
+ every,
225
+ extend2 as extend,
226
+ find,
227
+ floor2 as floor,
228
+ forever,
229
+ freeze,
230
+ getData2 as getData,
231
+ go,
232
+ hour2 as hour,
233
+ hourMilitary2 as hourMilitary,
234
+ importCodeURL2 as importCodeURL,
235
+ keyCodeToString2 as keyCodeToString,
236
+ lerp2 as lerp,
237
+ ln2 as ln,
238
+ load,
239
+ log2 as log,
240
+ maxX,
241
+ maxY,
242
+ minX,
243
+ minY,
244
+ minute2 as minute,
245
+ mobile2 as mobile,
246
+ month2 as month,
247
+ months2 as months,
248
+ mouse,
249
+ mouseX,
250
+ mouseY,
251
+ onKeyDown,
252
+ onKeyUp,
253
+ onMouseDown,
254
+ onMouseMove,
255
+ onMouseUp,
256
+ onUpdate,
257
+ once,
258
+ particles,
259
+ pick2 as pick,
260
+ pow2 as pow,
261
+ pressing,
262
+ project,
263
+ random2 as random,
264
+ randomColor2 as randomColor,
265
+ randomFloat2 as randomFloat,
266
+ randomX,
267
+ randomY,
268
+ range2 as range,
269
+ ready,
270
+ remove2 as remove,
271
+ repeat,
272
+ repeatUntil,
273
+ resetTimer,
274
+ rgb2 as rgb,
275
+ save,
276
+ scene,
277
+ second2 as second,
278
+ setBackdropColor,
279
+ setBackdropRepeat,
280
+ setBackdropSize,
281
+ setBackdropStyle,
282
+ setBackdropURL,
283
+ shuffle2 as shuffle,
284
+ sin2 as sin,
285
+ sqrt2 as sqrt,
286
+ tan2 as tan,
287
+ throttle2 as throttle,
288
+ timer,
289
+ translateToCanvas,
290
+ translateToCenter,
291
+ unitsToMiliseconds2 as unitsToMiliseconds,
292
+ wait,
293
+ when,
294
+ world,
295
+ year2 as year
296
+ };