add support for playerlocations

This commit is contained in:
DaInfLoop 2024-07-09 15:58:17 +01:00 committed by GitHub
parent f041a052bb
commit 7c9263ab8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -391,7 +391,7 @@ const server = createServer(async (req, res) => {
const context = canvas.getContext("2d"); const context = canvas.getContext("2d");
const Background = await loadImage( const Background = await loadImage(
`./assets/locations/${opts.map}.png`, `./assets/playerlocations/${opts.map}.png`,
); );
context.drawImage(Background, 0, 0, canvas.width, canvas.height); context.drawImage(Background, 0, 0, canvas.width, canvas.height);