Apply prettier formatting

This commit is contained in:
Michael Weimann 2022-12-12 12:24:14 +01:00
parent 1cac306093
commit 526645c791
No known key found for this signature in database
GPG key ID: 53F535A266BB9584
1576 changed files with 65385 additions and 62478 deletions

View file

@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
import ICanvasEffect from '../ICanvasEffect';
import ICanvasEffect from "../ICanvasEffect";
import { arrayFastClone } from "../../utils/arrays";
export type SpaceInvadersOptions = {
@ -59,7 +59,7 @@ export default class SpaceInvaders implements ICanvasEffect {
if (!canvas) {
return;
}
this.context = canvas.getContext('2d');
this.context = canvas.getContext("2d");
this.particles = [];
const count = this.options.maxCount;
while (this.particles.length < count) {
@ -80,7 +80,7 @@ export default class SpaceInvaders implements ICanvasEffect {
particle.x = Math.random() * width;
particle.y = Math.random() * -height;
particle.xCol = particle.x;
particle.gravity = this.options.gravity + (Math.random() * 6) + 4;
particle.gravity = this.options.gravity + Math.random() * 6 + 4;
return particle;
};