Swordbattle.io is a multiplayer game where players fight each other with different 2D swords, and try to gain coins. The more coins you have, the bigger and powerful you get! Try to become the biggest of them all.
Note: you are looking at the V2 version of the code. For the old V1 version, go to the v1 repo
Play now at swordbattle.io and see the leaderboard.
A more detailed guide will be released soon but for now, follow these instructions:
- Install NodeJS v18 and Yarn (with npm
npm install -g yarn
or with corepackcorepack enable
) - Clone this repo
cd client && yarn install && yarn start
- At the same time on a new shell run
cd server && yarn install && yarn start
- Go to
localhost:3000
You can use this code as a base for your IO games, but please change it to a considerable amount to make it a different game. Under libraries and code you used, please add a link to this GitHub repository. Furthermore, under the GPL License, your game MUST also be open source. You cannot just take this free code and make it proprietary.
Thanks.