Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
fix test code accidentally getting shipped
Browse files Browse the repository at this point in the history
  • Loading branch information
slmjkdbtl committed Oct 9, 2023
1 parent 093998c commit ef0c036
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 1 addition & 5 deletions src/kaboom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ef0c036

Please sign in to comment.