Skip to content

Commit

Permalink
Merge pull request #8 from anyWareSculpture/audioview
Browse files Browse the repository at this point in the history
Correct build and initialization of Audioview
  • Loading branch information
sunjay committed Nov 27, 2015
2 parents 834acb0 + 90b1079 commit 6cc5011
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 67 deletions.
4 changes: 2 additions & 2 deletions app/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const SculptureActionCreator = require("@anyware/game-logic/lib/actions/sculptur
const HandshakeView = require('./views/handshake-view');
const PanelView = require('./views/panel-view');
const DiskView = require('./views/disk-view');
const AudioView = require('./views/audio-view');
const AudioView = require('@anyware/shared-views/lib/audio-view');

const SerialManager = require('./serial/serial-manager');

Expand Down Expand Up @@ -121,7 +121,7 @@ export default class SculptureApp {
}

_beginFirstGame() {
if (!this.client || !this.client.connected || !this.serialSearched) {
if (!this.client || !this.client.connected || !this.serialSearched || !this.audioInitialized) {
return;
}

Expand Down
64 changes: 0 additions & 64 deletions app/src/views/audio-view.js

This file was deleted.

2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ gulp.task('collect-static', function collectStatic() {
});

gulp.task('collect-sounds', function collectSounds() {
return gulp.src('sounds/**/*')
return gulp.src(['node_modules/@anyware/sound-assets/**/*.wav'])
.pipe(gulp.dest(path.join(BUILD_DIRECTORY, 'sounds')));
});

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"homepage": "https://github.com/anyWareSculpture/sculpture-client#readme",
"dependencies": {
"@anyware/game-logic": "^11.0.1",
"@anyware/sound-assets": "anyWareSculpture/sound-assets",
"@anyware/streaming-client": "^1.3.4",
"browser-serialport": "^2.0.2",
"flux": "^2.0.3",
Expand Down

0 comments on commit 6cc5011

Please sign in to comment.