Add more testing stuff

This commit is contained in:
Schluffe
2026-09-26 14:12:35 +02:00
parent cb6946c9c7
commit e47df08232
13 changed files with 333 additions and 125 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ export const viewport: Viewport = {
},
};
export function initViewport(): void {
export function initViewport(container: HTMLElement = document.body): void {
const gameContainer = document.createElement("div");
gameContainer.id = "gameContainer";
@@ -53,7 +53,7 @@ export function initViewport(): void {
canvasContainer.appendChild(canvas);
gameContainer.appendChild(canvasContainer);
document.body.appendChild(gameContainer);
container.appendChild(gameContainer);
}
export function setScale(scale: number): void {