Fix hook rethrow, package.json
This commit is contained in:
parent
c9c1e9c4c4
commit
85dd6cf45f
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "aaaidk",
|
"name": "hook-miner",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "idk",
|
"description": "A HTML5 clone of the classic Gold Miner Flash game",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"build": "webpack -p",
|
"build": "webpack -p",
|
||||||
"watch": "webpack -w --mode=development"
|
"watch": "webpack -w --mode=development"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": ["game"],
|
||||||
"private": true,
|
"private": true,
|
||||||
"author": "Evert \"Diamond\" Prants <evert@lunasqu.ee>",
|
"author": "Evert \"Diamond\" Prants <evert@lunasqu.ee>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -77,7 +77,7 @@ class Hook extends GameObject {
|
|||||||
this.rd = 1
|
this.rd = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx.mouse['btn0'] && this.d === 0) {
|
if (ctx.mouse['btn0'] && this.d === 0 && !this.obj) {
|
||||||
this.d = 0
|
this.d = 0
|
||||||
this.md = 1
|
this.md = 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user