feat: add shape starts from top

This commit is contained in:
Ayo 2023-09-25 20:58:35 +02:00
parent 7c6ec25c85
commit a42954be1e
2 changed files with 3 additions and 2 deletions

View file

@ -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
); );

View file

@ -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",