Share your repls and programming experiences

← Back to all posts
Multiplayer Battle Game!
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:

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

Enjoy!

Voters
TheKxk
ruiwenge2
Lucas-MuelasMue
71819
Johnson-Talan-A
WillHinchley
PABLOIBARRA5
AlfieHoughton
ZeroTixDev
RobertAnyszek1
Comments
hotnewtop
Coder100

nice

ruiwenge2

@Coder100 thanks

CodingElf66

Nice game! But your homepage is not really that attractive and decorative, it only has two sentences. Maybe you can add a GIF that shows a game or two people playing or something like that.

ruiwenge2

@CodingElf66 the image was in the how to play page

I've added the image to the homepage

CodingElf66

@ruiwenge2 Great!

priyanshu0007

How can i use this code to make my owner web?
@ruiwenge2

rickysong

@priyanshu0007 you add an image link

nameless12321

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

ruiwenge2
nameless12321

It freezes when Medusa does the snake bite attack.

ruiwenge2
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!

ruiwenge2

@UltimatePython thanks!

there are still other characters besides Pikachu and Jedi

EmirhanYapici

fresh

DjafariKangezi

Nice

CodingElf66

Here's your upvote!

ruiwenge2

@CodingElf66 thanks

JBloves27

e
nice

ruiwenge2

thanks @JBloves27

CuriousMonkey

amazing pog

ruiwenge2

@CuriousMonkey lol thanks!

calmoven

this is cool

PixiGem

YO YA YI YO

ruiwenge2
PixiGem
CosmicBear

I predict that this will get on trending.

AmoghTheCool

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

spoiler: probably yes it is

CosmicBear
CosmicBear

just realized it actually is on trending now @AmoghTheCool

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

Harshitakadian

nice

ch1ck3n

i got 300th upvote

ruiwenge2

@ch1ck3n wow thanks!

AGdraarav

cool!

farelmaulana2

pp hlo jleg

NurHamim

3981ccca-bc27-4723-a44b-aaf74e102b80

dudeactualdev

@ruiwenge2 how are you not an admin yet

RayhanADev
dudeactualdev

@RayhanADev like fr he is pro

NisargaKulkarni

Nice

Jessica0519

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

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.

BillNyeScience

@Jessica0519 oh god here it goes again

RayhanADev

@BillNyeScience lmfao


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

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.

SokNi

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

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.

ruiwenge2

@Mantaray06 thanks!

upvote if you like it?

LETSGAME1

Trash

jihhyuu202
YashBoora

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

VrSamurai

ggggggggggggggggggggggggggggggggggggggggggggggggggggggggg

svenmck

Nice work

ruiwenge2

@svenmck thanks

KingBonk

trust me

ruiwenge2
KingBonk

@ruiwenge2 my anti virus says that there is virus in the game website, sus.

ruiwenge2

@KingBonk there isn't, look at the code

BillNyeScience

@KingBonk oH yeAh ruIwEngE2 toTaLlY coDeD a vIrUs liKE tOtaLlY

yourejustjealous

TomAnacondo

@KingBonk oh no, i am so scared, guys lets go outta here

ruiwenge2

@TomAnacondo seriously, there isn’t a virus, just go look at the code

ruiwenge2
ruiwenge2

@KingBonk if you think there’s a virus, then why did you copy my code? https://replit.com/@KingBonk/lalalala-a-game?v=1

TomAnacondo

@ruiwenge2 I know, I know, it's just sarcasm.

ruiwenge2
mkcodes

@ruiwenge2 OMG savage revege agaist copicat!!!11

KingBonk

there is virus, don't play the game

jihhyuu202

there isn't, antiviruses usually bug out and say that things are, in fact me downloading yt had my antivirus bug [email protected]