Skip to content

Commit

Permalink
Commented-out debugging for spritesheet gen
Browse files Browse the repository at this point in the history
  • Loading branch information
Naviary2 committed Dec 13, 2024
1 parent 25693db commit e4ac7c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client/scripts/esm/game/rendering/spritesheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ async function initSpritesheetForGame(gl: WebGL2RenderingContext, gamefile: game
const readyImages: HTMLImageElement[] = await convertSVGsToImages(svgElements);

const spritesheetAndSpritesheetData = await generateSpritesheet(gl, readyImages);
console.log(spritesheetAndSpritesheetData.spritesheetData);
// console.log(spritesheetAndSpritesheetData.spritesheetData);

// Optional: Append the spritesheet to the document for debugging
spritesheetAndSpritesheetData.spritesheet.style.display = 'none';
document.body.appendChild(spritesheetAndSpritesheetData.spritesheet);
// spritesheetAndSpritesheetData.spritesheet.style.display = 'none';
// document.body.appendChild(spritesheetAndSpritesheetData.spritesheet);

// Load the texture into webgl and initiate our spritesheet
// data that contains the texture coordinates of each piece!
Expand Down

0 comments on commit e4ac7c9

Please sign in to comment.