Multi-game launcher and idle detector made for Vancouver Game Garden (2024)
pip install -r requirements.txt
yarn
(Get NodeJS andnpm install --global yarn
if you don't have it)yarn start
Client-side JS starts in index.html
, "server-side JS" (ie: ran locally, privileged to do NodeJS stuff, but isolated from the client code) starts in index.js
.
public
and static
folders are just for organization. Resources directly linked in the html like images and videos are automatically bundled in the final build. Other stuff is not regardless of what directory it's in.
If all that sounds like a headache, just use the dev build on game day like I did :)
yarn make
- NOTE: Your static folder will have to be copied over manually into your build's folder
- Goes without saying you will need python with the pip installed dependencies on any PC running the build
- Upload all yours games into the
static
folder - Edit the
file
attributes on the buttons inindex.html
- Swap out
/public/logo192.png
- Swap out
/public/attract.webm
with a montage of all your games available - Adjust the time stamps in the attract array so as games are hovered, the video player skips to the time where they are
- Adjust the
taskill
commands inindex.js
to be for your games that are really stubborn about closing. - Polish whatever you want with CSS and HTML!