mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-04-25 22:35:45 +00:00
allow selecting different game types
This commit is contained in:
parent
7f75ed84da
commit
049566cdbb
56 changed files with 436 additions and 207 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue