Skip to content

drewp/megasecond

Repository files navigation

Project goals:

  • quick-to-join multiplayer game (trying https://github.com/colyseus/colyseus for this)
  • no violence; school-appropriate
  • quick-to-build code using buildpacks (didn't figure this out; using vanilla skaffold)
  • web-only (phone support is a plus)

Also using these:

  • pnpm - fast and compatible with npm
  • skaffold
  • rollup
  • typescript
  • babylonjs
  • blender

Actual game TBD.

Live game instance

https://megasecond.club/

Dev setup:

(optional) Use mercurial

You can optionally get this (or any other git repo) with hg:

hg clone git+ssh://[email protected]:drewp/megasecond.git

Push like this:

hg bookmark -r default master && hg push

Build the assets

Export geometry and textures (writes to build/):

cd world_export
make docker_build
make export

or make export_forever to watch for changes and rebuild.

Deploy

Have skaffold and a k8s cluster (I use k3s).

skaffold dev

This launches two containers. Container 'megasecond' serves the game and multiplayer API; 'rebuild-client' notices changes to the client code and rebuilds. skaffold notices all changes and will rebuild/restart the containers if you change the server code, Dockerfile, etc.

Finally, route somehow to the HTTP service at megasecond.default.service.cluster.local:80.

Log viewers

The server and client-rebuilder processes log to frontail. You could run these to open compact windows to view the logs:

google-chrome-stable --new-window --app='https://megasecond.club/log/server/'
google-chrome-stable --new-window --app='https://megasecond.club/log/rebuild/'

Attributions

"Abandoned factory" (https://skfb.ly/6TzYN) by Rixael is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).

"Illustration from The Grammar of Ornament (1910) by Owen Jones" (https://flickr.com/photos/byrawpixel/35104618923), public domain.

Development links

Blender bake code:

Procedural animation

Swing dance step tutorials

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published