<script setup lang="ts">
import BACKGROUND_IMAGE from "/assets/images/home/top-screen/background.png";

const store = useHomeStore();
const app = useAppStore();

const [backgroundImage] = useImages(BACKGROUND_IMAGE);

useRender((ctx) => {
  ctx.globalAlpha = app.booted ? 1 : store.intro.stage1Opacity;
  ctx.drawImage(backgroundImage!, 0, 0);
});

defineOptions({
  render: () => null,
});
</script>
