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

21 lines
438 B
Vue

<script setup lang="ts">
const { onRender } = useScreen();
const store = useHomeStore();
const app = useAppStore();
const { assets } = useAssets();
onRender((ctx) => {
ctx.fillStyle = "#fbfbfb"
ctx.fillRect(0, 0, LOGICAL_WIDTH, LOGICAL_HEIGHT);
ctx.globalAlpha = store.isIntro? store.intro.stage1Opacity:1;
assets.images.home.bottomScreen.background.draw(ctx, 0, 0);
});
defineOptions({
render: () => null,
});
</script>