Share your repls and programming experiences

← Back to all posts
MULTISNAKE - Featuring: Snek: 🐍 with PRIVATE ROOMS: Share the link with your friend and PARTY🥳
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

Voters
GavinGMC
creeperthecat
DavidRamirez-Ra
DiegoBorjabad
CharleyLewis
sheluvsgloxk
LoganLoftus
KY246
reekid12345
ethansetoo
Comments
hotnewtop
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

sojs

Nice song bro!

@BillNyeScience

CodingElf66

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

ruiwenge2

:(

sojs

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

aaaaaaaaaaaaaaaaaaaaaaaaaaaa

@sojs try dealing with 3%

sojs

"Dealing with 3%"? @aaaaaaaaaaaaaaaaaaaaaaaaaaaa

Leroy01010

your username is a work of art @aaaaaaaaaaaaaaaaaaaaaaaaaaaa

aaaaaaaaaaaaaaaaaaaaaaaaaaaa

@sojs yeah my friends posts only 3% upvotes

sojs

oh thats not very good. @aaaaaaaaaaaaaaaaaaaaaaaaaaaa

sojs
ruiwenge2

@sojs it's actually 3% now :(

sojs

ah gosh darn it. @ruiwenge2

ruiwenge2

multipong => multisnake?

nice game!

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

ch1ck3n

super laggy though ... nice so i updoot

sojs
SudhanshuMishra

sojs

Thanks!

Wow this is officially my most upvoted post

@SudhanshuMishra

SudhanshuMishra
MosesTYLi

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

sojs

Thanks so much! @MosesTYLi

MohammedNoorul

Very Nice @ch1ck3n

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

sojs

yup. Got to wait a tick before turning. @SeamusDonahue

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

sojs

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

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

sojs

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

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

sojs
sojs

I am making one right now called "making games with <table>". Wait a day or two for that one. Then you can apply the same concepts used in the first on to this one. @SeamusDonahue

SeamusDonahue

thanks! @sojs

sojs
ruiwenge2
ch1ck3n


nice

sojs

thanks! @ch1ck3n

ch1ck3n

@sojs 420 is nice number

ruiwenge2

if the game is laggy maybe try requestAnimationFrame?

sojs

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

rickysong

doesn't work for me

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

rickysong

@sojs ok thanks!

sojs
BabyBoy666

@sojs woah man, u good?

rickysong
sojs

im fine? @BabyBoy666

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

sojs

ah haha ya. @BabyBoy666

CodingElf66

It's working now!

sojs
sojs

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

CodingElf66

@sojs Yeah I am!

CodingElf66

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

sojs
sojs

oh ya! Cheers 🍻!! @CodingElf66

CodingElf66

@sojs We both made it to Trending yay! Congrats to you!

sojs

really? Cool! @CodingElf66

PixiGem

updoot this or I uproot all the trees in this world
MultiPong and MultiSnake r da bes

ruiwenge2

@PixiGem multiplayerbattlegame coming up! lol

ruiwenge2

@PixiGem and maybe multiplayerhangmangame :)

PixiGem

@ruiwenge2 POGGERS

ruiwenge2
PixiGem

@ruiwenge2 if u don't mind, is it 9:56 pm in ur timezone?

ruiwenge2

@PixiGem 1 hour behind that

PixiGem

@ruiwenge2 ooh, u live in nyc?

ruiwenge2

@PixiGem no pacific time zone

sojs

thanks! @PixiGem

sojs

haha thats a good [email protected]

sojs

Thank you, @PixiGem

ruiwenge2

@sojs lol I mean I’m working on it

sojs

haha cool! @ruiwenge2

TipToed

Awesome

sojs

thanks man! @TipToed

Tylerjusfly

its really fast

DynamicSquid

@Tylerjusfly Try to use other words like "really" :)

Tylerjusfly

@DynamicSquid haha...sorry my bad

sojs
sojs

it makes it super fun! @Tylerjusfly

GordonHuang4

Umm, I can't login to Socialrumbles i'm using the right email/username and password

sojs

hmm. Ping @RedMan2Man @GordonHuang4, he is the creator.

RedMan2Man

@GordonHuang4 did you verify your email? nvrmind it seems it is working for you now, are you the user MinecraftIsCool?

sojs

come on people! 10 more upvotes! lets go!

QuickV

Idea:

Snake 2 - Where the apple chases you and you have to hit the AI which is constantly running away .-.

sojs

ohhhh... that could be fun. Good idea! @QuickV

QuickV

Snake II | Apple Unleashed

Game Title^

I beg thine to make it.... You must with a title as good as that xD

@sojs

QuickV

I was originally going to make it myself but I have no idea how loloolololololoo

@sojs

sojs

haha sure ill try and make it! All credits for the idea to you! @QuickV

sojs

you can fork my impossible snake repl and mess around with it, the framework is all there, you would just need to change a couple things. @QuickV

QuickV

I mean originally from scratch, though I'll try messing around with everything lol.

@sojs

QuickV

haha sure ill try and make it!

So it as been confirmed, it's coming SOON .-.

All credits for the idea to you!

yay you liked the idea that doesn't even make sense in my head lol

@sojs

QuickV

Maybe the apple can chase you across the repl.it interface?

Kind of like Animator V.S. Animation, but it's Player V.S. Apple lol

@sojs

sojs

Ya! @QuickV

sojs

okay cool! Also, if you want to join the multisnake discord, here is the link: https://discord.gg/Np7vBvEtp2 @QuickV

sojs

Yup, thanks! @QuickV

QuickV

silently wishing she had discord

Yeah I don't have discord sadly lol

@sojs

QuickV
sojs

ah. @QuickV

QuickV

ye .-.

@sojs

rickysong

oh god..

sojs

wow holy crap. Its cleared now... somebody [email protected]

rickysong

@sojs that was like hell :/

sojs

haha. @rickysong

Coder100

why didn't upvote? hm

nice

sojs

thanks! @Coder100

dylanlovestocode
sojs

yes, but thats not multiplayer. @dylanlovestocode

CodingChampion1

kjhkhjkjsgjk,hfdgjkhdsdfghjhgfghjhg

doveflight663

started up the game and immediately died. anytime I try to continue is immediate death too

sojs

yup. A block spawned right in fron of the spawn. Just put in new constraints so that wont happen again. @doveflight663

BaconErie

MY MAN STOLE MY IDEA

jkjk although I did think of making a multiplayer snake game (didnt make it tho)

very nice!

SediaBagnata

very good :)<3

sojs

Thanks! @SediaBagnata

VXZELL12345

I'm the 69th upvoter O_O Cool game btw

sojs

thanks! @VXZELL12345

SamSignoriello

5fps

sojs
SeamusDonahue

Hmmmm.... We Couldn't Reach Your Repl

sojs

yes.... I am working on that. @SeamusDonahue

EpicRaisin

if snek could spek, snek would be proud

sojs

yessir! @EpicRaisin

mchapy1

Sounds amazing, can't wait till you get the site back up to try it!

sojs

Its up! @mchapy1