Files
pihkaal-me/app/components/Home/TopScreen/Background.vue

17 lines
350 B
Vue

<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;
assets.images.home.topScreen.background.draw(ctx, 0, 0);
});
defineOptions({
render: () => null,
});
</script>