From 4e606b3669bc414ae31fd58588f57b357edc4b74 Mon Sep 17 00:00:00 2001 From: malloc62 Date: Wed, 18 Jan 2023 17:57:18 -0500 Subject: [PATCH] Slight cleanup, switched from WASD to touch controls --- README.md | 40 +- src/app.html | 4 +- src/routes/+page.svelte | 61 +- static/map.svg | 37447 +++++++++++++++++++++++++++++++++++++- 4 files changed, 37445 insertions(+), 107 deletions(-) diff --git a/README.md b/README.md index 5c91169..a3530f7 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,2 @@ -# create-svelte - -Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte). - -## Creating a project - -If you're seeing this, you've probably already done this step. Congrats! - -```bash -# create a new project in the current directory -npm create svelte@latest - -# create a new project in my-app -npm create svelte@latest my-app -``` - -## Developing - -Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: - -```bash -npm run dev - -# or start the server and open the app in a new browser tab -npm run dev -- --open -``` - -## Building - -To create a production version of your app: - -```bash -npm run build -``` - -You can preview the production build with `npm run preview`. - -> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. +# Map viewer for Scratch Empires +This is the unofficial map viewer for [https://scratch.mit.edu/discuss/topic/647837/](Scratch Empires S2). diff --git a/src/app.html b/src/app.html index d285b23..fd42430 100644 --- a/src/app.html +++ b/src/app.html @@ -7,5 +7,7 @@ %sveltekit.head% - %sveltekit.body% +
+ %sveltekit.body% +
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index fc18eb3..6fc3ef8 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,37 +1,38 @@ - +
- WASD to pan or move map (+ Q to speed up)
+ Mouse to pan or move map
-
-
+
+
diff --git a/static/map.svg b/static/map.svg index ee9b0ff..c036d81 100644 --- a/static/map.svg +++ b/static/map.svg @@ -9,14 +9,13 @@ viewBox="0 0 2560 2560" sodipodi:docname="map.svg" inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" + xml:space="preserve" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" - xmlns:svg="http://www.w3.org/2000/svg"> - - - - - - - - - - PRD - PRD - - New Capsia - New Capsia - Stranski - - + id="tspan4836">Stranski