diff --git a/src/components/organisms/MapSelect.vue b/src/components/organisms/MapSelect.vue index 6ccc20b..f3116c3 100644 --- a/src/components/organisms/MapSelect.vue +++ b/src/components/organisms/MapSelect.vue @@ -1,8 +1,9 @@ @@ -177,6 +218,19 @@ select { top: 55%; } +.map-select { + margin-top: 10px; + display: flex; + flex-direction: row; + gap: 20px; + + .info { + display: flex; + flex-direction: column; + gap: 6px; + } +} + .map-preview { display: flex; flex-direction: column; @@ -188,7 +242,6 @@ select { overflow: hidden; background: var(--background); box-shadow: 5px 5px 10px #00000069; - margin-top: 10px; .center-wrapper { flex: 1; diff --git a/src/util/assets/constants.ts b/src/util/assets/constants.ts new file mode 100644 index 0000000..2afcf50 --- /dev/null +++ b/src/util/assets/constants.ts @@ -0,0 +1,43 @@ +export interface DefaultMap { + // Path to the map. Should point to the maps folder. + path: string; + + // Your name or names of people you want to credit. + author: string; + + // An estimation of for how many characters the map is made. + recommendedCharacterCount: number; + + // Theme of the map. + theme?: string; +} + +export const defaultMaps: Record = { + Playground: { + path: `${import.meta.env.BASE_URL}maps/playground.png`, + author: "Lorgan3", + recommendedCharacterCount: 4, + }, + Castle: { + path: `${import.meta.env.BASE_URL}maps/castle.png`, + author: "Lorgan3", + recommendedCharacterCount: 16, + theme: "Medieval", + }, + Stadium: { + path: `${import.meta.env.BASE_URL}maps/stadium.png`, + author: "Lorgan3", + recommendedCharacterCount: 8, + }, + Mario_World: { + path: `${import.meta.env.BASE_URL}maps/mario.png`, + author: "JordyDeGroeve", + recommendedCharacterCount: 12, + theme: "Mario", + }, + Office: { + path: `${import.meta.env.BASE_URL}maps/office.png`, + author: "Lorgan3", + recommendedCharacterCount: 16, + }, +}; diff --git a/src/util/assets/index.ts b/src/util/assets/index.ts index cbcbff5..d0f92c7 100644 --- a/src/util/assets/index.ts +++ b/src/util/assets/index.ts @@ -4,14 +4,6 @@ import { MAP_LOADER } from "./mapLoader"; import { SOUND_ASSETS } from "../../sound"; import { Assets } from "pixi.js"; -export const defaultMaps = { - Playground: `${import.meta.env.BASE_URL}maps/playground.png`, - Castle: `${import.meta.env.BASE_URL}maps/castle.png`, - Stadium: `${import.meta.env.BASE_URL}maps/stadium.png`, - Mario_World: `${import.meta.env.BASE_URL}maps/mario.png`, - Office: `${import.meta.env.BASE_URL}maps/office.png`, -}; - export const loadAsMap = (src: string) => ({ src, loadParser: MAP_LOADER,