Compare commits

...

3 Commits

4 changed files with 9 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -68,16 +68,17 @@ 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);
for (const effect of this.level.fullscreenEffects) {
effect.update(timestamp);
effect.render(this.context, this.camera);
}
this.userInterface.draw(this.context);
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: 5,
tiles: 9,
scale: 1,
}
}

View File

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