Move properties closer together
This commit is contained in:
parent
4bf3a8094a
commit
6d64464597
@ -218,13 +218,12 @@ class GeneratedShape {
|
|||||||
**/
|
**/
|
||||||
// sound and properties passed into shape creation
|
// sound and properties passed into shape creation
|
||||||
this.soundRecorded = soundRecorded;
|
this.soundRecorded = soundRecorded;
|
||||||
|
this.soundDuration = soundDuration;
|
||||||
|
|
||||||
// ensure that erroneous minus amplitudes are at least given 0
|
// ensure that erroneous minus amplitudes are at least given 0
|
||||||
if (soundAmplitude < 0) this.soundAmplitude = 0.0;
|
if (soundAmplitude < 0) this.soundAmplitude = 0.0;
|
||||||
else this.soundAmplitude = soundAmplitude;
|
else this.soundAmplitude = soundAmplitude;
|
||||||
|
|
||||||
this.soundDuration = soundDuration;
|
|
||||||
|
|
||||||
// mouse hover awareness for sound playing
|
// mouse hover awareness for sound playing
|
||||||
this.hover = false;
|
this.hover = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user