diff --git a/html/static/styles.css b/html/static/styles.css index 7626369..0d36c50 100644 --- a/html/static/styles.css +++ b/html/static/styles.css @@ -1,6 +1,6 @@ #game { - width: 1000px; + width: calc((88px + 1px) * 11 + 1px); height: 500px; background-color: red; position: relative; diff --git a/src/game/Game.ts b/src/game/Game.ts index 5358880..c45730d 100644 --- a/src/game/Game.ts +++ b/src/game/Game.ts @@ -7,7 +7,7 @@ export class Game { constructor(root: HTMLElement) { this.root = root; - this.banners = makeBanners(5, i => new Position(i * 88, i)); + this.banners = makeBanners(11 * 6, i => new Position((i % 11) * (88 + 1), (0 | (i / 11)) * (31 + 1))); } public load(): Promise {