From ef0c036d8df46a54c25981863e32ccf0cfe6e2de Mon Sep 17 00:00:00 2001 From: tga Date: Mon, 9 Oct 2023 19:06:56 +0800 Subject: [PATCH] fix test code accidentally getting shipped --- CHANGELOG.md | 3 +++ package.json | 2 +- src/kaboom.ts | 6 +----- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c7bd1d76f..0cadb128c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### v3000.1.10 +- fix test code accidentally getting shipped (where a screenshot will be downloaded every time you press space) + ### v3000.1.9 - added `fill` option to `rect()`, `circle()` and `sprite()` - fix view getting cut off in letterbox mode diff --git a/package.json b/package.json index 99683fe9e..68f611cfd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "kaboom", "description": "kaboom.js is a JavaScript library that helps you make games fast and fun!", - "version": "3000.1.9", + "version": "3000.1.10", "license": "MIT", "homepage": "https://kaboomjs.com/", "repository": "github:replit/kaboom", diff --git a/src/kaboom.ts b/src/kaboom.ts index 0738bb311..f55d68fc9 100644 --- a/src/kaboom.ts +++ b/src/kaboom.ts @@ -5171,6 +5171,7 @@ export default (gopt: KaboomOpt = {}): KaboomCtx => { game.events.onOnce("frameEnd", () => { game.events.trigger("sceneLeave", name) + // TODO: this clears the resize event app.events.clear() game.events.clear() game.objEvents.clear() @@ -6833,11 +6834,6 @@ export default (gopt: KaboomOpt = {}): KaboomCtx => { updateViewport() - app.onKeyPress("space", () => { - const url = gfx.frameBuffer.toDataURL() - download("test.png", url) - }) - // the exported ctx handle const ctx: KaboomCtx = { VERSION,