feat(assets): new assets loading system (currently only for images)
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import BUTTONS_IMAGE from "/assets/images/contact/bottom-screen/buttons.webp";
|
||||
|
||||
const store = useContactStore();
|
||||
|
||||
const [buttonsImage] = useImages(BUTTONS_IMAGE);
|
||||
const { assets } = useAssets();
|
||||
|
||||
useRender((ctx) => {
|
||||
ctx.globalAlpha = store.isIntro
|
||||
? store.intro.stage3Opacity
|
||||
: store.outro.stage1Opacity;
|
||||
ctx.drawImage(buttonsImage!, 31, 32);
|
||||
ctx.drawImage(assets.contact.bottomScreen.buttons, 31, 32);
|
||||
});
|
||||
|
||||
defineOptions({
|
||||
|
||||
Reference in New Issue
Block a user