mirror of
https://github.com/sigmasternchen/88x31breakout
synced 2025-03-15 07:59:00 +00:00
more realistic game field
This commit is contained in:
parent
2f70e6f355
commit
4525296e60
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
|
||||
#game {
|
||||
width: 1000px;
|
||||
width: calc((88px + 1px) * 11 + 1px);
|
||||
height: 500px;
|
||||
background-color: red;
|
||||
position: relative;
|
||||
|
|
|
@ -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<void> {
|
||||
|
|
Loading…
Reference in a new issue