Skip to content

Commit

Permalink
correct resources path
Browse files Browse the repository at this point in the history
  • Loading branch information
Chol Nhial Chol committed Dec 10, 2024
1 parent a823364 commit 05b40af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/pages/game/game.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ export class GameComponent implements OnInit, OnDestroy {
private readonly OFFSCREEN_MARGIN = 100; // How far past the screen edge before removing

configureAssets() {
Assets.add({ alias: 'background', src: `grenadepong/background${this.gameService.getRandomBackgroundIndex()}.jpeg` });
Assets.add({ alias: 'explosion', src: 'grenadepong/explosion.png' });
Assets.add({ alias: 'grenade', src: 'ggrenadepong/grenade.png' });
Assets.add({ alias: 'background', src: `background${this.gameService.getRandomBackgroundIndex()}.jpeg` });
Assets.add({ alias: 'explosion', src: 'explosion.png' });
Assets.add({ alias: 'grenade', src: 'grenade.png' });
}

async loadTextures() {
Expand Down

0 comments on commit 05b40af

Please sign in to comment.