diff --git a/package.json b/package.json index 8df3fed..64ab0e1 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ }, "dependencies": { "p5": "^1.11.4", - "p5play": "^3.22.0", "sirv-cli": "^2.0.0", "svelte-spa-router": "^3.3.0" diff --git a/public/assets/player.png b/public/assets/player.png index c7f52d1..8062fd5 100644 Binary files a/public/assets/player.png and b/public/assets/player.png differ diff --git a/public/assets/player_level1.png b/public/assets/player_level1.png new file mode 100644 index 0000000..8062fd5 Binary files /dev/null and b/public/assets/player_level1.png differ diff --git a/public/assets/player_level10.png b/public/assets/player_level10.png new file mode 100644 index 0000000..314afa8 Binary files /dev/null and b/public/assets/player_level10.png differ diff --git a/public/assets/player_level2.png b/public/assets/player_level2.png new file mode 100644 index 0000000..b3aeccf Binary files /dev/null and b/public/assets/player_level2.png differ diff --git a/public/assets/player_level3.png b/public/assets/player_level3.png new file mode 100644 index 0000000..128e4f6 Binary files /dev/null and b/public/assets/player_level3.png differ diff --git a/public/assets/player_level4.png b/public/assets/player_level4.png new file mode 100644 index 0000000..81d4fc3 Binary files /dev/null and b/public/assets/player_level4.png differ diff --git a/public/assets/player_level5.png b/public/assets/player_level5.png new file mode 100644 index 0000000..6dbcca5 Binary files /dev/null and b/public/assets/player_level5.png differ diff --git a/public/assets/player_level6.png b/public/assets/player_level6.png new file mode 100644 index 0000000..35ae68b Binary files /dev/null and b/public/assets/player_level6.png differ diff --git a/public/assets/player_level7.png b/public/assets/player_level7.png new file mode 100644 index 0000000..3ef287b Binary files /dev/null and b/public/assets/player_level7.png differ diff --git a/public/assets/player_level8.png b/public/assets/player_level8.png new file mode 100644 index 0000000..5723880 Binary files /dev/null and b/public/assets/player_level8.png differ diff --git a/public/assets/player_level9.png b/public/assets/player_level9.png new file mode 100644 index 0000000..01712fd Binary files /dev/null and b/public/assets/player_level9.png differ diff --git a/public/backgrounds/Level1.png b/public/backgrounds/Level1.png new file mode 100644 index 0000000..fbfef63 Binary files /dev/null and b/public/backgrounds/Level1.png differ diff --git a/public/backgrounds/Level2.png b/public/backgrounds/Level2.png new file mode 100644 index 0000000..898aaf4 Binary files /dev/null and b/public/backgrounds/Level2.png differ diff --git a/public/backgrounds/Level3.png b/public/backgrounds/Level3.png new file mode 100644 index 0000000..c7a58e6 Binary files /dev/null and b/public/backgrounds/Level3.png differ diff --git a/public/backgrounds/Level4.png b/public/backgrounds/Level4.png new file mode 100644 index 0000000..fdb1f44 Binary files /dev/null and b/public/backgrounds/Level4.png differ diff --git a/public/backgrounds/Level5.png b/public/backgrounds/Level5.png new file mode 100644 index 0000000..3bfddd1 Binary files /dev/null and b/public/backgrounds/Level5.png differ diff --git a/src/App.svelte b/src/App.svelte index d1e44be..8a33dd5 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -6,17 +6,14 @@ import Home from './routes/Home.svelte'; import LevelSelect from './routes/LevelSelect.svelte'; import Game from './routes/Game.svelte'; import GameOver from './routes/GameOver.svelte'; +import Win from './routes/Win.svelte'; - - -// this is the application of the svelte-spa-router -// e.g. /#/game will show the Game component -// this is kind of like switching between HTML pages but we switch components instead const routes = { - '/': Home, + '/': Home, '/levelselect': LevelSelect, '/game': Game, '/gameover': GameOver, + '/win': Win, }; diff --git a/src/components/GameCanvas.svelte b/src/components/GameCanvas.svelte index da0d4a1..c77f789 100644 --- a/src/components/GameCanvas.svelte +++ b/src/components/GameCanvas.svelte @@ -1,81 +1,127 @@ +
\ No newline at end of file diff --git a/src/routes/LevelSelect.svelte b/src/routes/LevelSelect.svelte index 1c9e948..20aabdb 100644 --- a/src/routes/LevelSelect.svelte +++ b/src/routes/LevelSelect.svelte @@ -48,18 +48,21 @@ justify-content: center; gap: 24px; } - h1{ - font-family:'Courier New', Courier, monospace; - font-size: 42px; + h1 { + font-family: 'Courier New', Courier, monospace; + font-size: 34px; font-weight: 400; } - .level-grid{ + .level-grid { display: flex; - gap: 16px; + flex-wrap: wrap; + justify-content: center; + gap: 12px; + max-width: 560px; } - .level-card{ - width: 120px; - height: 140px; + .level-card { + width: 100px; + height: 118px; background: #222; border: 1px solid #444; border-radius: 12px; @@ -68,24 +71,32 @@ flex-direction: column; align-items: center; justify-content: center; - gap: 10px; + gap: 8px; color: white; transition: transform 0.15s, border-color 0.15s; } - .level-card:hover:not(.locked){ + .level-card:hover:not(.locked) { transform: translateY(-4px); border-color: var(--c); } - .level-card.locked{ + .level-card.locked { opacity: 0.4; cursor: not-allowed; } - .level-card.locked .swatch{ + .swatch { + width: 44px; + height: 44px; + border-radius: 50%; + background: var(--c); + } + .level-card.locked .swatch { background: #555; } - .name{ - font-family:'Courier New', Courier, monospace; - font-size: 18px; + .name { + font-family: 'Courier New', Courier, monospace; + font-size: 13px; + text-align: center; + padding: 0 4px; } .back{ background: none; diff --git a/src/routes/Win.svelte b/src/routes/Win.svelte new file mode 100644 index 0000000..a898cbc --- /dev/null +++ b/src/routes/Win.svelte @@ -0,0 +1,77 @@ + + +
+

color restored

+

every fragment found. every hue returned to the world.

+

the little painter has done it.

+ +
+ +