Share your repls and programming experiences

← Back to all posts
🔴 LIVE 🔴 Multiplayer 🎮 Game Template! With 🌐WebSockets
h
Scoder12 (882)

🔴 LIVE 🔴 Multiplayer 🎮 Game Template! With 🌐WebSockets

By Scoder12

Important: See server repl here

https://storage.googleapis.com/replit/images/1548372676357_58f4a81a7ebb4557c444d3e73037d448.pn

Features

  • In the terminal
  • Live multiplayer
  • Anti-cheat/Inactive players removed
  • Customizable by YOU

How do I make my own game based on this?

  1. Fork the repl
  2. Leave the comment that gives credit to me
  3. Add your own game logic for the server and client
  4. Upvote!
  5. Share your creations/questions in the comments👇👇

If you liked this tutorial or the game, please leave an upvote! I spent a lot of time on this!

Comments
hotnewtop
SeamusDonahue (458)

--> python3 -m poetry install

[RuntimeError]
The Poetry configuration is invalid:

  • 'description' is a required property

exit status 1

Repl.it: Package operation failed.

SeamusDonahue (458)

rip
Arrow keys to move, press enter to start Connecting to server... Traceback (most recent call last): File "main.py", line 108, in <module> ws = websocket.WebSocket() TypeError: __init__() missing 3 required positional arguments: 'environ', 'socket', and 'rfile'

@Scoder12

Scoder12 (882)

@SeamusDonahue I haven't touched this project in 2 years, I don't expect it to work anymore and I don't really have the time to fix it

SeamusDonahue (458)

thats fair. thanks for making it in the first place, Im sorry it stopped working. have a nice day.

@Scoder12

RobertFurr (64)

This is what I get when I try to launch the web server:

https://storage.googleapis.com/replit/images/1559568965094_e5d220412424d92eedaf1ef7e1762eed.pn

Scoder12 (882)

@RobertFurr hmmm, did you try forking the repl and trying again? If not, post this on repl.it bugs

MatthewDoan1 (333)

As soon as I join, I get disconnected.

Scoder12 (882)

@MatthewDoan1 You probably just have to start the server.

MatthewDoan1 (333)

@Scoder12 I'm getting an error on Line 247: wss.clients.include is not defined.

Scoder12 (882)

@MatthewDoan1 ahh yes that is my bad sorry lemme fix that

Scoder12 (882)

@MatthewDoan1 Guess what? There is no line 247! and there are no instances of wss.clients.includes
EDIT: seems to work for me

MatthewDoan1 (333)

@Scoder12 Hmm, I seem to have forked an older version of the server repl, and that's why it wasn't working. Going to try the new version. Thanks.

EDIT: There is no line 247 and no instances of wss.clients.includes because I forked an out-of-date version of the repl.