Skip to content

Лабораторная работа 3 #3

@kerim-ar

Description

@kerim-ar
  • Почему функция называется createClouds, а возвращается только одно облака?

  • Зачем вы параметры boxWidth и boxHeight сохраняете в переменные width и height. А потом при вызове функций moveClouds и moveSun переменные width/height обратно записываете в boxWidth/boxHeight?

function update({clouds, sun, sky, boxWidth: width, boxHeight: height, dT, deltaAngle, day, dLightness}) {
    moveClouds({dT, clouds, boxWidth: width, boxHeight: height}); 
    moveSun({dT, sun,  boxWidth: width, boxHeight: height});
    updateSky({sky, angle: sun.angle});
}
  • Зачем нужен этот код?
    cloud = clouds[1];

  • Переименуйте поле trajectory. Не нужно использовать транслит

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions