🔴 LIVE 🔴 Multiplayer 🎮 Game Template! With 🌐WebSockets
🔴 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?
- Fork the repl
- Leave the comment that gives credit to me
- Add your own game logic for the server and client
- Upvote!
- 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!
This is what I get when I try to launch the web server:
https://storage.googleapis.com/replit/images/1559568965094_e5d220412424d92eedaf1ef7e1762eed.pn
@RobertFurr hmmm, did you try forking the repl and trying again? If not, post this on repl.it bugs
As soon as I join, I get disconnected.
@MatthewDoan1 You probably just have to start the server.
@Scoder12 I'm getting an error on Line 247: wss.clients.include is not defined.
@MatthewDoan1 ahh yes that is my bad sorry lemme fix that
@MatthewDoan1 Guess what? There is no line 247! and there are no instances of wss.clients.includes
EDIT: seems to work for me
@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.
--> python3 -m poetry install
[RuntimeError]
The Poetry configuration is invalid:
exit status 1
Repl.it: Package operation failed.
@SeamusDonahue Fixed
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
@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
thats fair. thanks for making it in the first place, Im sorry it stopped working. have a nice day.
@Scoder12