mirror of
https://github.com/DaInfLoop/Battler-Generator.git
synced 2024-11-23 22:29:58 +00:00
add support for playerlocations
This commit is contained in:
parent
f041a052bb
commit
7c9263ab8f
2
index.ts
2
index.ts
|
@ -391,7 +391,7 @@ const server = createServer(async (req, res) => {
|
|||
const context = canvas.getContext("2d");
|
||||
|
||||
const Background = await loadImage(
|
||||
`./assets/locations/${opts.map}.png`,
|
||||
`./assets/playerlocations/${opts.map}.png`,
|
||||
);
|
||||
|
||||
context.drawImage(Background, 0, 0, canvas.width, canvas.height);
|
||||
|
|
Loading…
Reference in a new issue