Skip to content
← Back to Community
Multiplayer Battle Game!
Profile icon
ruiwenge2

Hi!

Do you remember my battle game made in Python?

Well, this time I've spent a few weeks making a multiplayer version of the game with Node.js using Socket.IO, and it's a website now!

Features

  • See your opponent's moves in real time
  • Chat box to communicate with your opponent
  • Inviting users to a room
  • Play against the computer

Here's what it looks like:
demo

See how to play at https://multiplayerbattlegame.ruiwenge2.repl.co/howtoplay.

You can try it out by playing against your friends, or join the same room in different tabs. You can also play against the computer.

Important: To create an account you must open the website in a new tab.

Click here for the GitHub repo

Credits

  • @ch1ck3n for the sliding effect
  • @Bunnytoes for telling me about random numbers in javascript
  • @Coder100 for telling me how to show users in a room a long time ago
  • @earthprelude for helping me create some of the characters and moves in Python

Enjoy!

svg files cannot be displayed: https://replanalytics.repl.co/track/15e263c6-d2fc-4e22-909f-5c6dc7567a0c/empty.svg

Voters
Profile icon
Laughing
Profile icon
jewhite
Profile icon
SamanthaLopez2
Profile icon
ParisVasquez
Profile icon
PeLmEn653
Profile icon
OnyedikachiOkek
Profile icon
leninja44
Profile icon
BRANDENGARCIA
Profile icon
Tofu42
Profile icon
AlbertRaus
Comments
hotnewtop
Profile icon
Coder100

nice

Profile icon
ruiwenge2

@Coder100 thanks

Profile icon
CosmicBear

I predict that this will get on trending.

Profile icon
AmoghTheCool

@CosmicBear have any seer blood? related to Cassandra Trelawney?

spoiler: probably yes it is

Profile icon
CosmicBear
Profile icon
CosmicBear

just realized it actually is on trending now @AmoghTheCool

Profile icon
AmoghTheCool

@CosmicBear yea thats what i meant. You are a real Seer.
but lol anybody can predict that all of @ruiwenge2's stuff will go on trending

Profile icon
pro0grammer
Profile icon
ProCatGuy

@pro0grammer haha, but that doesn't mean you necessarily won

Profile icon
pro0grammer
Profile icon
pro0grammer

@AndrewMarkarian There was also an another trick, just go to developer console > select any attack button element > change "player-1" class to "player-2". And opponent won't attack you!! it probably won't work in online game still.

Profile icon
CodingElf66

You're going to reach 2000 upvotes, and congrats for that, because I'll be giving you 15 upvotes for your good games and dedication!

After 14 upvotes...

Screenshot 2021-09-25 5.03.26 PM
Screenshot 2021-09-25 5.03.09 PM

Then...

Screenshot 2021-09-25 5.04.12 PM
Screenshot 2021-09-25 5.03.36 PM

Congrats @ruiwenge2 for getting to 2000 upvotes, you deserve it!

Profile icon
ruiwenge2

@CodingElf66 wow...thanks so much!

Profile icon
CodingElf66

@ruiwenge2 Np, you deserve it!

Profile icon
matthyno

are you using alt accounts to upvote lmaooo @CodingElf66

Profile icon
9pfs

@cjmatthy09 They are not. @ruiwenge2 has over 30 posts, so they were able to do that entirely without alt accounts. Additionally, their account has no history of questionable activity. @CodingElf66 @FreeFunTime @sobakarooted

Profile icon
rickysong

@TheDrone7, @CodingElf66 told me that "If @CodingElf66 cannot post or comment at all on Replit Talk, he requests that can his team members post his games and repls for him and give him credit?"

Profile icon
TheDrone7

@rickysong that would be absolutely fine! In fact, @CodingElf66 can also appeal for unban after a duration of 6 months.

Profile icon
rickysong

@TheDrone7 ok I'll tell him, thank you :D

Profile icon
rickysong

@TheDrone7, @CodingElf66 also asked if he is able to post on apps

Profile icon
rickysong

nvm

Profile icon
SilentFoxy78

@TheDrone7 How come 6 months thats HALF A YEAR... I mean he only game a few upvotes, and thats only to people who he thinks deserves it. (No offence)

Profile icon
CosmicBear

what is this about? I just saw a notifiction.

image

Profile icon
TheDrone7

@SilentFoxy78 Which is exactly why he's been given a 6 month duration. Normally, bans for such cases are permanent and you won't EVER be allowed to appeal.

But considering this case where he unintentionally did something against the rules, there is a chance to appeal for it.

However, even if it was unintentional, I cannot NOT give punishment.

Profile icon
SilentFoxy78

@TheDrone7 Yeah but I don't get why a few upvotes is so important

Profile icon
farelmaulana2

pp hlo jleg

Profile icon
NurHamim

3981ccca-bc27-4723-a44b-aaf74e102b80

Profile icon
jihhyuu202
Profile icon
dudeactualdev

@ruiwenge2 how are you not an admin yet

Profile icon
RayhanADev
Profile icon
dudeactualdev

@RayhanADev like fr he is pro

Profile icon
NisargaKulkarni

Nice

Profile icon
Jessica0519

Lol, apparently the human is smarter then the computer...

Profile icon
Jessica0519

@Jessica0519 And I found out now that you started doing programming with python, just like me. Let's be friends! I'm 10! I know you are 14. And are you a boy or a girl? I'm a girl.

Profile icon
BillNyeScience

@Jessica0519 oh god here it goes again

Profile icon
RayhanADev

@BillNyeScience lmfao


@Jessica0519 please send an email with parental approval to [email protected] (@TheDrone7), otherwise you will be banned from ReplTalk.

image

Profile icon
CodingElf66

@RayhanADev Wait. I have light mode, how did you do that?

Profile icon
CodingElf66

@RayhanADev I think she's just here to know and like ruiwenge2, sigh. It was with Brainy, now its with this.

Profile icon
RayhanADev

@CodingElf66 go to your account settings and change turn on explorer. Then turn on dark mode in the themes.

Profile icon
CodingElf66

@RayhanADev ohh tysm!

Profile icon
CrowbySupportSu

Main thing that you have to do, is update the css. It looks like it's from 2000's. But still you've done a good job on coding it.

Profile icon
nameless12321

Put an autoclicker on Medusa's snake bite attack and it will eventually bug out dealing around 2k damage lol

hacks indeed

Profile icon
ruiwenge2
Profile icon
Atomic-Gamming

@nameless12321 i got just about 4k
This file cannot be displayed:

Profile icon
EmirhanYapici

nice

Profile icon
DjafariKangezi

Nice

Profile icon
QuickV

Do you remember my battle game made in Python?

No .-.

Also why do you need a login system for most of your recent multiplayer projects lol .-.

Profile icon
ruiwenge2

@QuickV

  1. https://replit.com/talk/share/Battle-Game-Made-With-Python/138258

  2. so people can’t change their usernames, they’ll need to create an account. gonna change that for my next multiplayer game :)

Profile icon
QuickV

so people can't change their usernames

they can just make a new acc (I think)

gonna change that for my next multiplayer game :)

nice!

@ruiwenge2

Profile icon
ruiwenge2

@QuickV it might be easier for the backend

Profile icon
QuickV

it might be easier for the backend

The account thingy?

sorry it's almost midnight and my brain is dead

@ruiwenge2

Profile icon
ruiwenge2

@QuickV yes

central time?

Profile icon
QuickV

idk .-.

It's like 7:20-ish AM here rn

@ruiwenge2

Profile icon
CosmicBear

@ruiwenge2 You should make a ruiwenge2 auth so you only need one account to sign in to any of your projects.

Profile icon
QuickV

ye, or maybe just use repl auth or smthn .-.

@CosmicBear

Profile icon
Bunnytoes
Profile icon
ruiwenge2

@Bunnytoes you helped me remember?

Profile icon
Bunnytoes

@ruiwenge2 I did? Ohhh the random numbers

Profile icon
rjohnson2025

555th upvote!

Profile icon
ruiwenge2
Profile icon
SomeBoyPlayz

wow nice

Profile icon
THEGOLDENTHRONE

If you pick Thanos, you can never lose against the computer that I can tell

Profile icon
THEGOLDENTHRONE

provided you always use Thanos snap

Profile icon
cokhinganha

great

Profile icon
robogalsunsw

hiiiiiiiiii

Profile icon
Harshitakadian

nice

Profile icon
ch1ck3n

i got 300th upvote

Profile icon
ruiwenge2

@ch1ck3n wow thanks!

Profile icon
AGdraarav

cool!

Profile icon
SokNi

50c5109e-4854-42af-b858-570edd49a3cd

Profile icon
Mantaray06

I love this game. I also like how this is an updated version of the Battle game (in python) you did 5 months ago.

Profile icon
ruiwenge2

@Mantaray06 thanks!

upvote if you like it?

Profile icon
nameless12321

It freezes when Medusa does the snake bite attack.

Profile icon
ruiwenge2
Profile icon
YashBoora

it is a good game. please make it more attractive and decorative with gifs and all and add more characters

Profile icon
UltimatePython

Can you add more characters? I'm kind of bored with Pikachu and Jedi now, I played and used them only. But by the way, good job! I'll leave an upvote!

Profile icon
ruiwenge2

@UltimatePython thanks!

there are still other characters besides Pikachu and Jedi

Profile icon
VrSamurai

ggggggggggggggggggggggggggggggggggggggggggggggggggggggggg

Profile icon
svenmck

Nice work

Profile icon
ruiwenge2

@svenmck thanks