more realistic game field

This commit is contained in:
sigmasternchen 2024-10-29 21:44:08 +01:00
parent 2f70e6f355
commit 4525296e60
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#game { #game {
width: 1000px; width: calc((88px + 1px) * 11 + 1px);
height: 500px; height: 500px;
background-color: red; background-color: red;
position: relative; position: relative;

View file

@ -7,7 +7,7 @@ export class Game {
constructor(root: HTMLElement) { constructor(root: HTMLElement) {
this.root = root; 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<void> { public load(): Promise<void> {