- try it out! at https://gamegame-production.up.railway.app/
- works on both desktop and mobile
gamegame-preview-video.mov
Built gamegame to jump around with friends with chat. Jump quest is heavily inspired by Maplestory.
Backend is a typescript nodejs server which holds websocket connections with each client (browser).
In directory /server
.
Frontend is html canvas that renders the player and handles the physics and collisions.
In directory /client
which is served as static files from the server.
Player sprite is from https://rvros.itch.io/animated-pixel-hero
Note: need to be on node.js v14 to use @clusterws/cws npm package on server.
// on server
nvm use v14
cd server
yarn install
yarn dev
go to http://localhost:2000
ALSO in a new terminal to watch for client side changes,
cd client
yarn dev
// to run client only without a server
cd client
yarn install
yarn dev
open a new terminal tab
serve . (this is a global npm package)
go to http://localhost:3000
Using https://railway.app for hosting node.js server with websockets.
nvm use v14
./railway-build.sh // build command
./railway-start.sh // start command