0.8.0 β€’ Published 1 year ago

@ryanatkn/svelte_snake_sports v0.8.0

Weekly downloads
-
License
Unlicense
Repository
github
Last release
1 year ago

svelte🐍snake🐍sports

games of Snake in Svelte and SvelteKit β€” sss.ryanatkn.com

Play: sss.ryanatkn.com

Watch the intro video: youtube.com/watch?v=ciei8H6IOWk

Install via npm:

npm i -D @ryanatkn/svelte_snake_sports

sports

submit highscores!

🐍sportgoalhighscores
classsiceat many apples
ssspeedeat apples asap
buncheseseat many whole bunches of apples9 bunches β€” @ryanatknβ€”YouTube uncontested world record
trailssseat trails of applesis often unfair, see issue #28

Here's the source code for each sport.

caveats:

  • it's responsive to smaller screens but mobile controls aren't great
  • some of the code is still very rough from the port, I just tried to ship gameplay asap
  • some of the code has experimental patterns that I wouldn't recommend

usage

Windows users will need a Linux VM, see this issue.

npm run dev
# or
gro dev # npm i -g @ryanatkn/gro

learn more about SvelteKit, Vite, Gro, and Felt

build

npm run build
# or
gro build

deploy

Deploy (build, commit, and push) to the deploy branch, e.g. for GitHub Pages:

npm run deploy
# or
gro deploy

what

In 2016 I wrote a tiny snake-game for an interview in React. Today I use Svelte instead and I continue to enjoy Snake for thinking through frontend development patterns. This project started as a port of the React version to my current Svelte patterns (with some experiments and hacks) and it's growing from there.

This project plans to make many distinct versions of Snake that are interesting in terms of gameplay, game design, and/or technical implementation with Svelte. If we're lucky, it'll be simple enough for beginners to follow along and deep enough to hold the interest of more advanced students like myself.

note: the project from 2016 uses Create React App and has no lockfile, and given that I wish not wake eldritch npm horrors, I am not going to try to run the code, and I advise you not to try, so much so that I won't even directly link the repo (though it's trivially inferred; also it's archived/readonly)

on the web: sss.ryanatkn.com

credits 🐒🐒🐒

Svelte βˆ™ SvelteKit βˆ™ Vite βˆ™ esbuild βˆ™ uvu βˆ™ TypeScript βˆ™ ESLint βˆ™ Prettier βˆ™ Felt βˆ™ Gro & more

music by Alexander Nakarada (serpentsoundstudios.com, CC-BY-4.0):

generated images by DALL-E:

license 🐦

public domain ⚘ The Unlicense

0.8.0

1 year ago

0.7.0

2 years ago