Death Star graphic set added

This commit is contained in:
Mal
2023-09-23 20:39:10 +02:00
parent 014152b011
commit 6f548a1b47
3 changed files with 20 additions and 6 deletions

View File

@@ -224,12 +224,12 @@ export default class RetroArchitecture
{
context.drawImage(
this.tilesetSprite.canvas,
field.tile.index * this.tileWidth,
(field.tile.index % this.tiles) * this.tileWidth,
0,
this.tileWidth,
this.tileHeight,
x * this.tileWidth - camera.position.x,
y * this.tileHeight - camera.position.y,
x * this.tileWidth - camera.position.x - 1,
y * this.tileHeight - camera.position.y - 1,
this.tileWidth + 1,
this.tileHeight + 1
);