Tankila is a multi player FPS game, implemented by three.js, cannon-es and WebSockets. Users can move their tanks and shot bullets to gain scores.
- minimum node version 16.13.1
yarn install
- create a
.env
config file in the root, the follow configs are requiredMONGODB_URI
: mongodb url, game server needs this to connect to mongodbPORT
: server port, default to 3000
yarn client-dev
# build and run client page, a webpack dev server will startyarn server-dev
# start game server- go to the webpack dev server
yarn client-prod
# build client code in production modeyarn server-prod
# start game server- go to the game server