An online multiplayer game of whack-a-mole.
docker run -p 8080:8080 jcosentino11/whack-a-mole:latest
then go to http://localhost:8080/
.
Configuration is done via environment variables:
PORT
: The application port, defaults to8080
.APP_ENV
: The environment the application is deployed in, defaults todev
.GAME_DURATION_MILLIS
: How long a game of whack-a-mole lasts, defaults to10000
.PLAYERS_PER_GAME
: How many players are part of a whack-a-mole game, defaults to2
.BOARD_SIZE
: How many moles to have in a board, defaults to25
.BOARD_UPDATE_INTERVAL_MILLIS
: How often the moles should move around, defaults to1000
.MAX_PLAYERS_ALLOWED
: How many players can be connected at once, defaults to1000
.WS_IDLE_TIMEOUT_MILLIS
: How long the websocket connection can remain idle before the server terminates it, defaults to5000
.WS_MAX_FRAME_SIZE
: How large a websocket frame is allowed to be, defaults to this formula.
- Better matchmaking (e.g. create your own lobby, set game options)
- Make the UI look good, esp. for mobile