Skip to content
white-wavesPublic

About

🌐 β€’ Official site for White Waves game.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Site

🌐 β€’ Official site and web client for White Waves game. waves.liubquanti.click

  • index.html: landing page
  • play.html: the game in the browser (online, with a friend, against a bot)

Plain HTML/CSS/JS (ES modules), no build step. Pixel monochrome style, font Press Start 2P (SIL OFL).

Run locally

ES modules don't work from file://, so serve the folder over HTTP:

npx serve .

or let the game server serve it: WEB_CLIENT_DIR=../Site npm start in Server.

Game server address

By default the client uses http://13.60.154.115:3000 (assets/js/api.js, DEFAULT_SERVER). You can change it in the game's settings. If the page is served by the game server itself, that server is used automatically.

⚠️ A site on HTTPS (GitHub Pages) can't connect to a server on plain HTTP: the browser blocks mixed content. For online play from the site, the server needs HTTPS (e.g. a domain plus Caddy/nginx with Let's Encrypt). The bot mode works anyway.

About

🌐 β€’ Official site for White Waves game.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages