Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct build and initialization of Audioview #8

Merged
merged 15 commits into from
Nov 27, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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