<script setup lang="ts">
const { onRender } = useScreen();

const store = useHomeStore();
const app = useAppStore();
const { assets } = useAssets();

onRender((ctx) => {
  ctx.globalAlpha = app.booted ? 1 : store.intro.stage1Opacity;
  ctx.drawImage(assets.home.bottomScreen.background, 0, 0);
});

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