Skip to content

Commit

Permalink
feat: Add music with demo song
Browse files Browse the repository at this point in the history
  • Loading branch information
johnedvard committed Aug 23, 2022
1 parent 75b8c98 commit 38d4c8c
Show file tree
Hide file tree
Showing 3 changed files with 1,347 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Game.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { init, initPointer, initInput, GameLoop, onPointer, on } from 'kontra';
import { LEVEL_COMPLETE } from './gameEvents';
import { Level } from './Level';
import { playSong } from './sound';

export class Game {
canvas;
Expand All @@ -9,6 +10,9 @@ export class Game {
saw;
level;
constructor() {
// TODO (johnedvard) Play song after user interraction
playSong();

const game = this;
let { canvas, context } = init();
this.canvas = canvas;
Expand Down
Loading

0 comments on commit 38d4c8c

Please sign in to comment.