···11-MIT License Copyright (c) 2025 flo-bit
22-33-Permission is hereby granted, free of
44-charge, to any person obtaining a copy of this software and associated
55-documentation files (the "Software"), to deal in the Software without
66-restriction, including without limitation the rights to use, copy, modify, merge,
77-publish, distribute, sublicense, and/or sell copies of the Software, and to
88-permit persons to whom the Software is furnished to do so, subject to the
99-following conditions:
1010-1111-The above copyright notice and this permission notice
1212-(including the next paragraph) shall be included in all copies or substantial
1313-portions of the Software.
1414-1515-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
1616-ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1717-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
1818-EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
1919-OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2020-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121-THE SOFTWARE.
···11+<script>
22+ import { Canvas } from '@threlte/core';
33+ import Scene from '$lib/Scene.svelte';
44+</script>
55+66+<div class="h-screen w-screen">
77+<Canvas>
88+ <Scene />
99+</Canvas>
1010+1111+</div>
static/favicon.png
This is a binary file and will not be displayed.
static/room-transformed.glb
This is a binary file and will not be displayed.
static/room.jpg
This is a binary file and will not be displayed.
static/workshop.hdr
This is a binary file and will not be displayed.
+21
svelte.config.js
···11+import adapter from '@sveltejs/adapter-static';
22+import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
33+44+/** @type {import('@sveltejs/kit').Config} */
55+const config = {
66+ // Consult https://svelte.dev/docs/kit/integrations
77+ // for more information about preprocessors
88+ preprocess: vitePreprocess(),
99+1010+ kit: {
1111+ // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
1212+ // If your environment is not supported, or you settled on a specific environment, switch out the adapter.
1313+ // See https://svelte.dev/docs/kit/adapters for more information about adapters.
1414+ adapter: adapter(),
1515+ paths: {
1616+ base: '/tiny-creature'
1717+ }
1818+ }
1919+};
2020+2121+export default config;
+13
tailwind.config.ts
···11+import forms from '@tailwindcss/forms';
22+import typography from '@tailwindcss/typography';
33+import type { Config } from 'tailwindcss';
44+55+export default {
66+ content: ['./src/**/*.{html,js,svelte,ts}'],
77+88+ theme: {
99+ extend: {}
1010+ },
1111+1212+ plugins: [typography, forms]
1313+} satisfies Config;
+17-21
tsconfig.json
···11{
22- "compilerOptions": {
33- "target": "ES2020",
44- "useDefineForClassFields": true,
55- "module": "ESNext",
66- "lib": ["ES2020", "DOM", "DOM.Iterable"],
77- "skipLibCheck": true,
88-99- /* Bundler mode */
1010- "moduleResolution": "bundler",
1111- "allowImportingTsExtensions": true,
1212- "isolatedModules": true,
1313- "moduleDetection": "force",
1414- "noEmit": true,
1515-1616- /* Linting */
1717- "strict": true,
1818- "noUnusedLocals": true,
1919- "noUnusedParameters": true,
2020- "noFallthroughCasesInSwitch": true
2121- },
2222- "include": ["src"]
22+ "extends": "./.svelte-kit/tsconfig.json",
33+ "compilerOptions": {
44+ "allowJs": true,
55+ "checkJs": true,
66+ "esModuleInterop": true,
77+ "forceConsistentCasingInFileNames": true,
88+ "resolveJsonModule": true,
99+ "skipLibCheck": true,
1010+ "sourceMap": true,
1111+ "strict": true,
1212+ "moduleResolution": "bundler"
1313+ }
1414+ // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
1515+ // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files
1616+ //
1717+ // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
1818+ // from the referenced tsconfig.json - TypeScript does not merge them in
2319}