diff --git a/metadata.json b/metadata.json index 9d5e13b..4df22df 100644 --- a/metadata.json +++ b/metadata.json @@ -5,5 +5,5 @@ "desc": "A small pixel-art platformer: hop, jump, and outwit moving spikes and disappearing tiles across 10 levels. Made with Phaser 3.", "site": "https://git.teletypegames.org/games/trickster-tiles", "license": "MIT License", - "version": "0.1.0" + "version": "0.1.1" } diff --git a/package.json b/package.json index 160acd0..0e24833 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "trickster-tiles", "private": true, - "version": "0.1.0", + "version": "0.1.1", "type": "module", "scripts": { "dev": "vite", diff --git a/src/scenes/BootScene.ts b/src/scenes/BootScene.ts index b35beac..e330ba7 100644 --- a/src/scenes/BootScene.ts +++ b/src/scenes/BootScene.ts @@ -15,18 +15,18 @@ interface SpriteAsset { } const SPRITE_ASSETS: SpriteAsset[] = [ - { key: Player.TEXTURE_KEY, path: "/sprites/player.svg", width: Player.SIZE, height: Player.SIZE }, - { key: Exit.TEXTURE_KEY, path: "/sprites/exit.svg", width: Exit.WIDTH, height: Exit.HEIGHT }, - { key: Platform.TEXTURE_KEY, path: "/sprites/platform.svg", width: 40, height: 40 }, + { key: Player.TEXTURE_KEY, path: "sprites/player.svg", width: Player.SIZE, height: Player.SIZE }, + { key: Exit.TEXTURE_KEY, path: "sprites/exit.svg", width: Exit.WIDTH, height: Exit.HEIGHT }, + { key: Platform.TEXTURE_KEY, path: "sprites/platform.svg", width: 40, height: 40 }, { key: ObstacleSpikeNormal.TEXTURE_KEY, - path: "/sprites/spike-normal.svg", + path: "sprites/spike-normal.svg", width: ObstacleSpikeNormal.WIDTH, height: ObstacleSpikeNormal.HEIGHT, }, { key: ObstacleSpikeTricky.TEXTURE_KEY, - path: "/sprites/spike-tricky.svg", + path: "sprites/spike-tricky.svg", width: ObstacleSpikeTricky.WIDTH, height: ObstacleSpikeTricky.HEIGHT, }, diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..7770c71 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from "vite"; + +// The game is served from a versioned subdirectory +// (https://teletypegames.org/file/-/), so all asset +// URLs must be relative to index.html. +export default defineConfig({ + base: "./", +});