Fix hook rethrow, package.json

This commit is contained in:
Evert Prants 2019-11-29 20:21:06 +02:00
parent c9c1e9c4c4
commit 85dd6cf45f
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 4 additions and 4 deletions

View File

@ -1,13 +1,13 @@
{
"name": "aaaidk",
"name": "hook-miner",
"version": "0.0.1",
"description": "idk",
"description": "A HTML5 clone of the classic Gold Miner Flash game",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack -p",
"watch": "webpack -w --mode=development"
},
"keywords": [],
"keywords": ["game"],
"private": true,
"author": "Evert \"Diamond\" Prants <evert@lunasqu.ee>",
"license": "MIT",

View File

@ -77,7 +77,7 @@ class Hook extends GameObject {
this.rd = 1
}
if (ctx.mouse['btn0'] && this.d === 0) {
if (ctx.mouse['btn0'] && this.d === 0 && !this.obj) {
this.d = 0
this.md = 1
}