Skip to content

Commit

Permalink
Initial scaffording for waves-intro sim, see #356
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Mar 30, 2019
1 parent d16838a commit a59ef10
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions js/common/WaveInterferenceQueryParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ define( require => {

latticeSize: { type: 'number', defaultValue: 151 },

// TODO: temporary flag until the new sim repo exists, see https://github.com/phetsims/wave-interference/issues/357
mediumScreens: { type: 'flag' },

// Debugging flag that shows the scaled aperture matrix rather than the unscaled aperture matrix
showScaledMatrix: { type: 'flag' }
} );
Expand Down
9 changes: 1 addition & 8 deletions js/wave-interference-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ define( require => {
const AlignGroup = require( 'SCENERY/nodes/AlignGroup' );
const DiffractionScreen = require( 'WAVE_INTERFERENCE/diffraction/DiffractionScreen' );
const InterferenceScreen = require( 'WAVE_INTERFERENCE/interference/InterferenceScreen' );
const MediumScreen = require( 'WAVE_INTERFERENCE/medium/MediumScreen' );
const Sim = require( 'JOIST/Sim' );
const SimLauncher = require( 'JOIST/SimLauncher' );
const SlitsScreen = require( 'WAVE_INTERFERENCE/slits/SlitsScreen' );
const WaveInterferenceQueryParameters = require( 'WAVE_INTERFERENCE/common/WaveInterferenceQueryParameters' );
const WavesScreen = require( 'WAVE_INTERFERENCE/waves/WavesScreen' );

// strings
Expand All @@ -43,12 +41,7 @@ define( require => {
matchVertical: false
} );

// TODO: Remove this when we have a repo, see https://github.com/phetsims/wave-interference/issues/357
const screens = WaveInterferenceQueryParameters.mediumScreens ? [
new MediumScreen( 'waterScene', 'Water', alignGroup ),
new MediumScreen( 'soundScene', 'Sound', alignGroup ),
new MediumScreen( 'lightScene', 'Light', alignGroup )
] : [
const screens = [
new WavesScreen( alignGroup ),
new InterferenceScreen( alignGroup ),
new SlitsScreen( alignGroup ),
Expand Down

0 comments on commit a59ef10

Please sign in to comment.