Skip to content

Commit

Permalink
share credits between vector-addition and vector-addition-equations, #98
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Oct 23, 2019
1 parent 0a762f8 commit 0813cb1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
9 changes: 9 additions & 0 deletions js/common/VectorAdditionConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ define( require => {

const VectorAdditionConstants = {

// Shared by vector-addition-main.js and its derivatives (vector-addition-equations-main.js)
// See https://github.com/phetsims/vector-addition/issues/98
CREDITS: {
leadDesign: 'Michael Dubson, Amy Rouinfar',
softwareDevelopment: 'Brandon Li, Martin Veillette, Chris Malley (PixelZoom, Inc.)',
team: 'Diana L\u00f3pez Tavares, Amanda McGarry, Ariel Paul, Kathy Perkins',
qualityAssurance: 'Katie Woessner'
},

//----------------------------------------------------------------------------------------
// ScreenViews

Expand Down
17 changes: 7 additions & 10 deletions js/vector-addition-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,24 @@ define( require => {
const Sim = require( 'JOIST/Sim' );
const SimLauncher = require( 'JOIST/SimLauncher' );
const Tandem = require( 'TANDEM/Tandem' );
const VectorAdditionConstants = require( 'VECTOR_ADDITION/common/VectorAdditionConstants' );

// strings
const vectorAdditionTitleString = require( 'string!VECTOR_ADDITION/vector-addition.title' );

const options = {
credits: {
leadDesign: 'Michael Dubson, Amy Rouinfar',
softwareDevelopment: 'Brandon Li, Martin Veillette, Chris Malley (PixelZoom, Inc.)',
team: 'Diana L\u00f3pez Tavares, Amanda McGarry, Ariel Paul, Kathy Perkins',
qualityAssurance: 'Katie Woessner'
}
};

SimLauncher.launch( () => {

const screens = [
new Explore1DScreen( Tandem.rootTandem.createTandem( 'explore1DScreen' ) ),
new Explore2DScreen( Tandem.rootTandem.createTandem( 'explore2DScreen' ) ),
new LabScreen( Tandem.rootTandem.createTandem( 'labScreen' ) ),
new EquationsScreen( Tandem.rootTandem.createTandem( 'equationsScreen' ) )
];
const sim = new Sim( vectorAdditionTitleString, screens, options );

const sim = new Sim( vectorAdditionTitleString, screens, {
credits: VectorAdditionConstants.CREDITS
} );

sim.start();
} );
} );

0 comments on commit 0813cb1

Please sign in to comment.