Skip to content
Sign upLog in
← Back to Community

MULTISNAKE - Featuring: Snek: 🐍 with PRIVATE ROOMS: Share the link with your friend and PARTYπŸ₯³

Profile icon
sojs

HELLO EVERYONE!!!

Here we have...

MULTISNAKE

The frick is multisnake?

Multiplayer snake?

The epitome of months (a couple days) of hard work. Made through my sweat, tears and blood, I give you....

Multisnake!

wait thats the second time i done that...

Anyways!

Play with either WASD of ARROW KEYS.

Most people will be in the public room, but when your playing this with friends, you can create private rooms.

SPACE key to use boost. Boost sucks up one apple every time you use it (if you hold it for a while you will lose a lot of apples).
Boost makes you go 2 squares instead of one, making you go twice as fast.

Winning the game:

Get to 10 to win

it has been changed to 10

Losing the game:

Run into yourself, another player, walls, or exit the board and you lose

Other things:

  1. A wall block is spawned every 5 points. Dont run into it.
  2. FPS is crazy to block AIs (It is impossible to tell how fast the next loop will come). Luckily, our human intuition allows us to make up for that (something that would be hard to code into an AI).

Yay thats fixed!

I am working on this... have added a lot of things. please play on the test servers to see if you like them

Just kidding y'all. The FPS is bad cause I cant figure out how to make it fast

Dont worry though, I have increased the FPS consistency a ton but it presented some other bugs so I dropped it to post this.
Im forking the current repl and going to copy+paste once its done. (its done)

everyone UPDOOT (thanks
@ch1ck3n
)

Sorry to steal from you

@ch1ck3n
but its catchy

here is the github;

play here

test servers here

most of all, Have FUN!

UPDATE: YAY! 100 Upvotes! Thank you so much everyone!

UPDATE: YAY! 150 Upbotes! I thought max I was getting half that! Thanks everyone!

UPDATE LOG:

  • because of a request, blocks now spawn every 5 points. This makes it a whole lot more challenging!
  • Just added new update on managing dead snakes so the game will run a tinch bit smoother.
  • just added this: optimizing CPU usage (currently im running individual loop for every function - movePlayers(), checkWin()... and so on. Now I will centralize all that into one loop so it will be waaaay better. Stay tuned!
  • next up, and already on the tests servers, optimizing client side re-rendering. Done :)
  • and after that, a feature to vote to clear the board when there are too many blocks. (kinda cause it clears automatically after 1 hour of inactivity)

Just added this fancy new thingamajig. Go upvote the makers post. He doesnt have enough upvotes for what he has created

Join our Discord

SVG images are not supported

Voters
Profile icon
SalangHayo
Profile icon
SethNorton2
Profile icon
jaxonfromkh
Profile icon
Alexander-Dariu
Profile icon
07-RiyaAntil
Profile icon
ISAIAS4049911
Profile icon
RiverdaleSuperCoder
Profile icon
Cursive
Profile icon
2BAdrianAranda
Profile icon
MystryKnight752
Comments
hotnewtop
Profile icon
BillNyeScience

And since tis weejio game is so pog, I composed a song

Updoot Train is coming to town

You better watch out (For your safety, please stay away from train tracks)
You better not cry
You better eat apples
I'm telling you why
The updoot train is coming to town
It's making a list,
It's checking it twice,
It's gonna find out who's naughty or nice (sojs)
The updoot train is comin + n * 10000 + g to town

def checkappl():
if snek ate appl:
updoot += 1

Profile icon
sojs

Nice song bro!

@BillNyeScience

Profile icon
CodingElf66

@BillNyeScience
haha I'm not sure if Bill Nye the Science Guy even knows coding lol.

Profile icon
ruiwenge2

image

:(

Profile icon
sojs

ya. Its at 10% now... ;(

@ruiwenge2

Profile icon
aaaaaaaaaaaaaaaaaaaaaaaaaaaa

@sojs
try dealing with 3%

Profile icon
sojs
Profile icon
Leroy01010

your username is a work of art

@aaaaaaaaaaaaaaaaaaaaaaaaaaaa

Profile icon
aaaaaaaaaaaaaaaaaaaaaaaaaaaa

@sojs
yeah my friends posts only 3% upvotes

Profile icon
sojs

oh thats not very good.

@aaaaaaaaaaaaaaaaaaaaaaaaaaaa

Profile icon
sojs
Profile icon
ruiwenge2

@sojs
it's actually 3% now :(

Profile icon
sojs

ah gosh darn it.

@ruiwenge2

Profile icon
hg0428

Where are you getting that from

@ruiwenge2

Profile icon
ruiwenge2

multipong => multisnake?

nice game!

Profile icon
sojs

thanks! And also I had the idea for multi snake every since my first snake game with the AIs trying to kill you. It had nothing to do with your post (just clearing the air)

@ruiwenge2

Profile icon
ch1ck3n

super laggy though ... nice so i updoot

Profile icon
sojs

YAY!

@ch1ck3n

Profile icon
SleepySid

image

image

Profile icon
sojs

Thanks!

Wow this is officially my most upvoted post

@SudhanshuMishra

Profile icon
SleepySid
Profile icon
MosesTYLi

This is probably the best innovation ever put into the Snake game. What impressive code, with the aesthetics and gameplay

@sojs
!!

Profile icon
sojs

Thanks so much!

@MosesTYLi

Profile icon
MohammedNoorul

Very Nice

@ch1ck3n

Profile icon
SeamusDonahue

very cool, although if you turn too fast (like if your heading left and you hit w then d) you run into yourself because the snake doesnt go up/down before turning right

Profile icon
sojs

yup. Got to wait a tick before turning.

@SeamusDonahue

Profile icon
SeamusDonahue

one more thing: is there any good tutorials for making multiplayer games? seems like a lot of them don't work in the context of replit... or maybe im just dumb :P

@sojs

Profile icon
sojs

hmmm.. im not sure... I will work on one though... in node.js though not sure if you'll like that.

@SeamusDonahue

Profile icon
SeamusDonahue

from what I understand nodejs is very similar to regular js and I would be willing to learn some to make a multiplayer game

@sojs

Profile icon
sojs

okay, cool! It is the same syntax and things... but it uses another thing called modules. find a tutorial here

@SeamusDonahue

Profile icon
SeamusDonahue

a lot of that was just js syntax, the only new thing was require() which I haven't used before, is there a tutorial for making multiplayer within the context of replit?

@sojs

Profile icon
sojs
Profile icon
sojs

I am making one right now called "making games with

". Wait a day or two for that one. Then you can apply the same concepts used in the first on to this one.
@SeamusDonahue

Profile icon
SeamusDonahue

thanks!

@sojs

Profile icon
sojs
Profile icon
ruiwenge2
Profile icon
ch1ck3n

image


nice

Profile icon
sojs

thanks!

@ch1ck3n

Profile icon
ch1ck3n

@sojs
420 is nice number

Profile icon
ruiwenge2

if the game is laggy maybe try requestAnimationFrame?

Profile icon
sojs

ah no because I need it to run every 200ms, not 60 FPS.

@ruiwenge2

Profile icon
rickysong

doesn't work for me

Profile icon
sojs

go it to work again. Just a bug that occured when I rolled it back to solve another bug :) bug after bug after bug. Thats all my life is :)

@rickysong

Profile icon
rickysong

@sojs
ok thanks!

Profile icon
sojs
Profile icon
BabyBoy666

@sojs
woah man, u good?

Profile icon
rickysong
Profile icon
sojs

im fine?

@BabyBoy666

Profile icon
BabyBoy666

@sojs
oh sorry i was responding to

go it to work again. Just a bug that occured when I rolled it back to solve another bug :) bug after bug after bug. Thats all my life is :)

just sounded like anxiety lol

Profile icon
sojs

ah haha ya.

@BabyBoy666

Profile icon
CodingElf66

It's working now!

Profile icon
sojs
Profile icon
sojs

wait

@CodingElf66
your that terminal chat guy? I just realized that!

Profile icon
CodingElf66

@sojs
Yeah I am!

Profile icon
CodingElf66

@sojs
Now we both celebrate together for being on REPLIT TALK (SHARE) HOT! Let's go! Hope we go on Trending!

Profile icon
sojs