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.
- Guru for helping make it less laggy
- Mistik for networking base
- Cool guy 53 (aka yocto) for maintaining the game late 2024
- All the artists for bringing sb to life
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.
https://www.youtube.com/watch?v=cCBdGGHIX-0&t=2s
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
) - Clone this repo
- Open two Terminals/CMD in the directory with extracted source
- Run this command on one window to start the server:
cd server && yarn install && yarn start
- Run this command on the second terminal to start the client:
cd client && yarn install && yarn start
- Go to
localhost:8000
(server hosted atlocalhost:3000
)
If you face any issues, you can get help at https://iogames.forum/swordbattle !
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.