import { uiElements } from 'ui';
import Song from 'audio';
import overworldTheme from 'songs/overworld';
import state from 'state';
import Dialog from 'dialog';
import { inputs } from 'controls';
import { render as renderGraphics, filterMiasma } from 'overworld/graphics';
import logic from 'overworld/logic';
import { calcWorldPosition } from 'camera';

const bgMusic = new Song(overworldTheme);

export default {
  init: () => {
    bgMusic.play(`repeat`);
    uiElements.push(Dialog);
    filterMiasma();
    state.logic = (dt) => {
      // Logic
      logic(dt);
      renderGraphics(dt);
      // Input
      if(inputs.click && !state.dialog.length) {
        state.target = calcWorldPosition(inputs.mousePosition);
      }
    };
  },
  dismiss: () => {
    bgMusic.stop();
  },
};

@@ -226,22 +226,8 @@
 hics
-, filterMiasma
  %7D f
@@ -471,28 +471,8 @@
 g);%0A
-    filterMiasma();%0A
     

Remove unused