Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Mar 13, 2024
1 parent c656996 commit 41b8aad
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions js/generator-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,17 @@
* @author Chris Malley (PixelZoom, Inc.)
*/

import Sim, { SimOptions } from '../../joist/js/Sim.js';
import simLauncher from '../../joist/js/simLauncher.js';
import Tandem from '../../tandem/js/Tandem.js';
import GeneratorStrings from './GeneratorStrings.js';
import PreferencesModel from '../../joist/js/preferences/PreferencesModel.js';
import FELPreferencesNode from '../../faradays-electromagnetic-lab/js/common/view/preferences/FELPreferencesNode.js';
import FELConstants from '../../faradays-electromagnetic-lab/js/common/FELConstants.js';
import GeneratorScreen from '../../faradays-electromagnetic-lab/js/generator/GeneratorScreen.js';
import FELSim from '../../faradays-electromagnetic-lab/js/common/FELSim.js';

simLauncher.launch( () => {

const titleStringProperty = GeneratorStrings.generator.titleStringProperty;

const screens = [
new GeneratorScreen( Tandem.ROOT.createTandem( 'generatorScreen' ) )
];

const options: SimOptions = {
credits: FELConstants.CREDITS,
phetioDesigned: true,
preferencesModel: new PreferencesModel( {
visualOptions: {
supportsProjectorMode: true
},
simulationOptions: {
customPreferences: [ {
createContent: tandem => new FELPreferencesNode( {
hasEarthFeature: false,
tandem: tandem.createTandem( 'simPreferences' )
} )
} ]
}
} )
};

const sim = new Sim( titleStringProperty, screens, options );
const sim = new FELSim( titleStringProperty, screens, false /* hasEarthFeature */ );
sim.start();
} );

0 comments on commit 41b8aad

Please sign in to comment.