diff options
Diffstat (limited to 'site/arena.mjs')
| -rw-r--r-- | site/arena.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/site/arena.mjs b/site/arena.mjs index c76f7dc..83f0f05 100644 --- a/site/arena.mjs +++ b/site/arena.mjs @@ -30,10 +30,10 @@ export default class extends HTMLElement { return [xx, yy]; } - randStart(robo) { + randStart() { const [x, y] = [this.#canvas.width, this.#canvas.height].map(len => this.constructor.radius + Math.floor(Math.random() * (len - 2*this.constructor.radius))); - return {...robo, x, y}; + return {x, y}; } renderFPS(now) { |
