Skip to content

Commit

Permalink
net force layout changes for #213
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Nov 23, 2016
1 parent 1c8b950 commit 316e4cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/netforce/view/FlagNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ define( function( require ) {

var textNode = new TandemText( model.cart.x < 0 ? blueWinsString : redWinsString, {
tandem: tandem.createTandem( 'textNode' ),
font: new PhetFont( 32 ),
font: new PhetFont( 24 ),
fill: 'white'
} );
this.path = new TandemPath( null, {
Expand Down Expand Up @@ -109,7 +109,7 @@ define( function( require ) {
updateFlagShape: function() {
var shape = new Shape();
var maxX = 220;
var maxY = 75;
var maxY = 55;
var dy = ( 7 * Math.sin( this.model.time * 6 ) );
var dx = ( 2 * Math.sin( this.model.time * 5 ) ) + 10;
shape.moveTo( 0, 0 );
Expand Down
4 changes: 2 additions & 2 deletions js/netforce/view/NetForceScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ define( function( require ) {

//Create the arrow nodes
var opacity = 0.8;
this.sumArrow = new ReadoutArrow( sumOfForcesString, '#7dc673', layoutCenterX, 100, this.model.netForceProperty, this.model.showValuesProperty,
this.sumArrow = new ReadoutArrow( sumOfForcesString, '#7dc673', layoutCenterX, 127, this.model.netForceProperty, this.model.showValuesProperty,
tandem.createTandem( 'sumArrow' ), {
lineDash: [ 10, 5 ], labelPosition: 'top', opacity: opacity
} );
Expand Down Expand Up @@ -331,7 +331,7 @@ define( function( require ) {
// Show the flag node when pulling is complete and update the accessible game over element in the parallel DOM
var showFlagNode = function() {
netForceScreenView.addChild(
new FlagNode( model, netForceScreenView.layoutBounds.width / 2, 10, tandem.createTandem( 'flagNode' ) )
new FlagNode( model, netForceScreenView.layoutBounds.width / 2, 8, tandem.createTandem( 'flagNode' ) )
);
};
model.stateProperty.link( function( state ) { if ( state === 'completed' ) { showFlagNode(); } } );
Expand Down

0 comments on commit 316e4cc

Please sign in to comment.