New rain and thunder effects added

This commit is contained in:
Mal
2024-12-14 12:09:49 +01:00
parent a583005814
commit f6ebd8f3aa
14 changed files with 183 additions and 11 deletions

View File

@@ -1,9 +1,13 @@
import {SnowEffect} from "./SnowEffect.js";
import {RainEffect} from "./RainEffect.js";
import {ThunderstormEffect} from "./ThunderstormEffect.js";
export class FullscreenEffectFactory
{
static EFFECTS = {
[SnowEffect.NAME]: SnowEffect,
[RainEffect.NAME]: RainEffect,
[ThunderstormEffect.NAME]: ThunderstormEffect,
}
getEffect(name)
@@ -16,7 +20,6 @@ export class FullscreenEffectFactory
const names = [];
for (const name in FullscreenEffectFactory.EFFECTS) {
console.log(name);
names.push(name);
}