diff --git a/index.js b/index.js index a68707b..9159e91 100644 --- a/index.js +++ b/index.js @@ -558,7 +558,6 @@ function checkCollision(curPos, newPos, world) { if (block.type !== BlockType.AIR) { if (i === 1 && dp[i] < 0) { isOnGround = true; - console.log(`on ground`); } dp[i] = 0; } diff --git a/package.json b/package.json index 694e5d6..20261d9 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "esbuild": "^0.14.2" }, "scripts": { - "serve": "esbuild --outfile=app.js index.js --bundle --servedir=." + "serve": "esbuild --outfile=app.js index.js --bundle --sourcemap=inline --servedir=.", + "build": "esbuild --outfile=app.js index.js --bundle --minify" } }