Skip to content

Commit

Permalink
added horrible theme music.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcoltrane committed Apr 24, 2017
1 parent e9e4d12 commit 4f984e8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Binary file added assets/theme.ogg
Binary file not shown.
Binary file added assets/theme.wav
Binary file not shown.
5 changes: 5 additions & 0 deletions js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ var Game = (function () {
_this.subSubSubTitle.alpha = 0;
_this.subSubSubTitle.stroke = 'white';
_this.subSubSubTitle.fill = 'black';
var tween = _this.game.add.tween(_this.subSubSubTitle).to({ alpha: 1 }, 500, "Linear", true);
tween.yoyo(true, 0).repeat(-1);
};
this.updateAchievement = function () {
var ach = _this.planet.getAchievement();
Expand All @@ -155,8 +157,11 @@ var Game = (function () {
_this.game.load.audio('coin', 'assets/coin.wav');
_this.game.load.audio('thrum', 'assets/thrum.wav');
_this.game.load.audio('warble', 'assets/warble.wav');
_this.game.load.audio('theme', 'assets/theme.ogg');
};
this.create = function () {
var music = _this.game.add.audio('theme', 1, true);
music.play();
var background = _this.game.add.sprite(0, 288, 'space');
var backgroundClouds = _this.game.add.sprite(0, 0, 'clouds');
_this.deity = _this.game.add.sprite(-10, 100, 'dude');
Expand Down
6 changes: 5 additions & 1 deletion ts/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,13 @@ class Game {
this.game.load.audio('coin', 'assets/coin.wav')
this.game.load.audio('thrum', 'assets/thrum.wav')
this.game.load.audio('warble', 'assets/warble.wav')

this.game.load.audio('theme', 'assets/theme.ogg')
}
public create = () => {

var music = this.game.add.audio('theme', 1, true)
music.play()

var background = this.game.add.sprite(0, 288, 'space')
var backgroundClouds = this.game.add.sprite(0, 0, 'clouds')
this.deity = this.game.add.sprite(-10, 100, 'dude')
Expand Down

0 comments on commit 4f984e8

Please sign in to comment.