quinton-ashley / p5play-web

The website for p5play.org
18 stars 13 forks source link

[translation] What does "run the function multiple times" mean? #21

Closed ShiMeiWo closed 6 months ago

ShiMeiWo commented 6 months ago

I have a question about the translation of the World chapter.

On the "Controlling Time page", the original says:

If you want to advance the simulation by a larger amount of time, run the world.step function multiple times.

Which of the following does this "run the world.step function multiple times." mean?

A: "run the world.step function more than once."

function draw() {
  background(0);

  world.step();
  world.step();
  world.step();
  world.step();
}

B: "run the world.step function with multiple number of times given as an argument."

function draw() {
  background(0);

  world.step(4);
}

I would appreciate it if you could let me know the difference, as the translation will vary depending on this difference.

Thanks!

quinton-ashley commented 6 months ago

Yeah it would be more than once!