allow selecting different game types

This commit is contained in:
Brian Beck 2025-12-14 11:06:57 -08:00
parent 7f75ed84da
commit 049566cdbb
56 changed files with 436 additions and 207 deletions

View file

@ -46,7 +46,11 @@ function createAtlas(textures: Texture[]): IflAtlas {
textures.forEach((tex, i) => {
const col = i % columns;
const row = Math.floor(i / columns);
ctx.drawImage(tex.image as CanvasImageSource, col * frameWidth, row * frameHeight);
ctx.drawImage(
tex.image as CanvasImageSource,
col * frameWidth,
row * frameHeight,
);
});
const texture = new CanvasTexture(canvas);