phetsims / buoyancy

"Buoyancy" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
2 stars 2 forks source link

Mystery Blocks #105

Closed DianaTavares closed 2 months ago

DianaTavares commented 2 months ago

To add the challenges that students can solve in the simulation, we are going to add “Mystery Blocks” in the Explore Screen:

image

Mystery X: Volume = 3L, Mass =10.02 kg. (Material, Pyrite) Mystery Y: Volume = 1 L, Mass = 19.32 kg (Material = Gold)

Colors (both the same, as is the same used in pyrite/gold in the boat screen)

Add mystery objects need to add include the next changes in readouts and controls?

image

AgustinVallejo commented 2 months ago

The above commit adds part of this functionality, specifically the Mass/Volume panel part

AgustinVallejo commented 2 months ago

Assigning back to @DianaTavares for review. A couple of things that are not exactly as requested but probably are good as they are right now:

  1. Question mark is the same color as the density readout, red or blue, not black as it shows in the picture.
  2. Mystery X and Mystery Y appear before Custom because of the way that component is built. If we want Custom first, some refactoring would need to be made.
DianaTavares commented 2 months ago

Also, the mass readout needs to show ? image

AgustinVallejo commented 2 months ago

Added the '?', now I only need to make the string translatable and, with Diana's permission, will close.