Code Monkey home page Code Monkey logo

codergautam / swordbattle.io Goto Github PK

View Code? Open in Web Editor NEW
31.0 3.0 27.0 53.79 MB

A multiplayer sword fighting IO game, now fully rewritten!

Home Page: https://swordbattle.io

License: GNU General Public License v3.0

HTML 1.04% TypeScript 50.32% SCSS 4.24% JavaScript 43.84% Shell 0.35% Batchfile 0.19% Procfile 0.01% Dockerfile 0.01%
game io io-game io-games-unblocked iogames multiplayer-game phaser sword web-game webgames websocket web-games

swordbattle.io's Introduction

Welcome!

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.

Community

Run Locally

Video Tutorial (thanks to @Number1)

https://www.youtube.com/watch?v=cCBdGGHIX-0&t=2s

A more detailed guide will be released soon but for now, follow these instructions:

  1. Install NodeJS v18 and Yarn (with npm npm install -g yarn)
  2. Clone this repo
  3. Open two Terminals/CMD in the directory with extracted source
  4. Run this command on one window to start the server: cd server && yarn install && yarn start
  5. Run this command on the second terminal to start the client: cd client && yarn install && yarn start
  6. Go to localhost:8000 (server hosted at localhost:3000)

If you face any issues, you can get help at https://iogames.forum/swordbattle !

License

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.

DigitalOcean Referral Badge

swordbattle.io's People

Contributors

codergautam avatar fishonamos avatar icedhue avatar sk337 avatar sonicx180 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

swordbattle.io's Issues

Ad is not horizontally centered in GameResults modal

The ad on the Game Results or end screen isn't always horizontally centered. I've narrowed down the issue to this part of the code added in #23 :

32e0d03#diff-f2286f8bf2376694d9c87b819c26cc746048c6c82427ac6036418b9cf48389a3R56

Sometimes Adinplay serves ads smaller than the one we requested, for example a 728x90 when requesting a 970x90 ad. We need an accurate way of determining what the size of the ad being served is, so that it can be centered properly.

major issue

Hey @codergautam when i get home in a few hours i am dm you on discord a SEVERE vuln that someone could use to get your db

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.