q5play 4.0.5 → 4.0.6
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.
- package/package.json +1 -1
- package/q5play.d.ts +5 -1
- package/q5play.js +1 -1
package/package.json
CHANGED
package/q5play.d.ts
CHANGED
|
@@ -2902,7 +2902,11 @@ declare global {
|
|
|
2902
2902
|
function EmojiImage(emoji: string, textSize: number): Q5.Image;
|
|
2903
2903
|
function spriteArt(txt: string, scale: number, palette: number | any): Q5.Image;
|
|
2904
2904
|
function animation(ani: Ani, x: number, y: number, r: number, sX: number, sY: number): void;
|
|
2905
|
-
|
|
2905
|
+
/**
|
|
2906
|
+
* @param milliseconds if not specified, delays until the next frame draw
|
|
2907
|
+
* @returns resolves after the delay
|
|
2908
|
+
*/
|
|
2909
|
+
function delay(milliseconds?: number): Promise<void>;
|
|
2906
2910
|
|
|
2907
2911
|
let allSprites: Group;
|
|
2908
2912
|
let world: World;
|
package/q5play.js
CHANGED
|
@@ -7998,7 +7998,7 @@ async function q5playPreSetup(q) {
|
|
|
7998
7998
|
};
|
|
7999
7999
|
|
|
8000
8000
|
// prettier-ignore
|
|
8001
|
-
let q5playGlobals = ['q5play','Box2D','DYN','DYNAMIC','STA','STATIC','KIN','KINEMATIC','Sprite','Group','allSprites','Ani','Anis','Visual','Visuals','camera','Joint','GlueJoint','DistanceJoint','WheelJoint','HingeJoint','SliderJoint','GrabberJoint','world','kb','keyboard','mouse','contro','contros','controllers','pointer','pointers','spriteArt','EmojiImage','getFPS','animation','parseTextureAtlas'];
|
|
8001
|
+
let q5playGlobals = ['q5play','Box2D','DYN','DYNAMIC','STA','STATIC','KIN','KINEMATIC','Sprite','Group','allSprites','Ani','Anis','Visual','Visuals','camera','Joint','GlueJoint','DistanceJoint','WheelJoint','HingeJoint','SliderJoint','GrabberJoint','world','kb','keyboard','mouse','contro','contros','controllers','pointer','pointers','spriteArt','EmojiImage','getFPS','animation','parseTextureAtlas','delay'];
|
|
8002
8002
|
|
|
8003
8003
|
// manually propagate q5play stuff to the global window object
|
|
8004
8004
|
if ($._isGlobal) {
|