feat: add shape starts from top
This commit is contained in:
parent
7c6ec25c85
commit
a42954be1e
2 changed files with 3 additions and 2 deletions
2
index.js
2
index.js
|
@ -59,7 +59,7 @@ function addShape() {
|
||||||
let oneShape = Bodies.polygon(
|
let oneShape = Bodies.polygon(
|
||||||
// Math.random() * (width / 2) + 1,
|
// Math.random() * (width / 2) + 1,
|
||||||
width / 2,
|
width / 2,
|
||||||
Math.random() * 450 + 1,
|
0,
|
||||||
Math.random() * 12 + 1,
|
Math.random() * 12 + 1,
|
||||||
Math.random() * 150 + 100
|
Math.random() * 150 + 100
|
||||||
);
|
);
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npx http-server .",
|
"start": "npx http-server .",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
|
"deploy": "scp -r . ayo@ayco.io:~/kaboom/"
|
||||||
},
|
},
|
||||||
"author": "Ayo and Kahel",
|
"author": "Ayo and Kahel",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
|
Loading…
Reference in a new issue