Compare commits

..

No commits in common. "963257ad797e497a62768c0dcb07945e429025a1" and "75797d968efb35003cb03a82b65a0340830b3cdc" have entirely different histories.

4 changed files with 8 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -68,17 +68,16 @@ export class Game
}
this.context.clearRect(0, 0, window.innerWidth, window.innerHeight);
for (const effect of this.level.fullscreenEffects) {
effect.update(timestamp);
effect.render(this.context, this.camera);
}
this.architecture.draw(this.context, this.camera);
this.gisela.draw(this.context, this.camera);
this.mrCroc.draw(this.context, this.camera);
this.userInterface.draw(this.context);
for (const effect of this.level.fullscreenEffects) {
effect.update(timestamp);
effect.render(this.context, this.camera);
}
this.userInterface.draw(this.context);
this.lastRendered = timestamp;
}

View File

@ -83,7 +83,7 @@ const GraphicSet = [
gravity: 9.806,
tilesetBackground: {
path: 'graveyard-background.png',
tiles: 9,
tiles: 5,
scale: 1,
}
}

View File

@ -317,7 +317,7 @@ export default class RetroArchitecture
{
context.drawImage(
this.tilesetSpriteBackground.canvas,
-((field.tile.index + 2) % this.tilesBackground) * this.tileWidth,
-(field.tile.index % 2) * this.tileWidth,
0,
this.tileWidth,
this.tileHeight,