This repository has been archived by the owner on Aug 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
72 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script lang="ts"> | ||
import { settingsStore } from '../game'; | ||
</script> | ||
|
||
<div class="grid grid-cols-2 gap-2 rounded-b-lg bg-slate-950 p-4"> | ||
<label class="flex flex-row items-center justify-between"> | ||
Brush size: | ||
<input | ||
class="rounded-md bg-slate-900 p-2 outline-none ring-teal-600 transition-all focus:ring-2" | ||
type="number" | ||
min="0" | ||
max="50" | ||
step="1" | ||
bind:value={$settingsStore.brushSize} | ||
/> | ||
</label> | ||
<label class="flex flex-row items-center justify-between"> | ||
Brush colour: | ||
<input | ||
class="rounded-md bg-slate-900 p-2 outline-none ring-teal-600 transition-all focus:ring-2" | ||
type="color" | ||
bind:value={$settingsStore.brushColour} | ||
/> | ||
</label> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
import { svelte } from '@sveltejs/vite-plugin-svelte'; | ||
import type { UserConfig } from 'vite'; | ||
import tsconfigPaths from 'vite-tsconfig-paths'; | ||
import { svelte } from '@sveltejs/vite-plugin-svelte'; | ||
|
||
export default { | ||
base: '/conjam/', | ||
plugins: [tsconfigPaths(), svelte()], | ||
plugins: [ | ||
tsconfigPaths(), | ||
svelte(), | ||
{ | ||
name: 'Reload Fix', | ||
handleHotUpdate({ server }) { | ||
server.hot.send({ type: 'full-reload' }); | ||
}, | ||
}, | ||
], | ||
} satisfies UserConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters