r/Frontend • • Feb 18 '21

online multi-player pictionary game built using react and socketio

228 Upvotes

48 comments sorted by

31

u/xms Feb 18 '21

Drop that shitty particles animation from the background. It’s CPU intensive. Fine to have it on the site for a moment until someone scrolls past it, but not to run all the time.

5

u/dulajkavinda Feb 18 '21

actually that red toggle turns it off :)

4

u/techlog999 Feb 18 '21

I think you should label it. The animation looks so cool.

1

u/dulajkavinda Feb 19 '21

right?! :)

6

u/nowtayneicangetinto Feb 18 '21

Looks great!!!! Awesome work, I love the background too!

1

u/dulajkavinda Feb 19 '21

thank you. its called particlejs!

3

u/gnome_of_the_damned Feb 18 '21

That looks really fun!

2

u/MrQuickLine Feb 18 '21

Am I crazy? You switched the color of the marker but it kept drawing in black?

4

u/dulajkavinda Feb 19 '21

got some bugs xD

2

u/cavsDev Feb 19 '21

It looks awesome!!! Congratulations! Excuse me how many years have you been studying React and socket to be able to do an app like this one?

2

u/MrQuickLine Feb 19 '21

If you learn vanilla JavaScript very well, then picking up frameworks and libraries should be trivial. Knowing JavaScript already, I started a project with socketio and had things up and running pretty quickly.

3

u/dulajkavinda Feb 19 '21

this is very true!

2

u/[deleted] Feb 19 '21

Is this essentially the same thing as skribbl.io ?

14

u/dulajkavinda Feb 19 '21 edited Feb 19 '21

nope this one got many bugs!!

3

u/darkfusion90 Feb 19 '21

Loved the response lol

1

u/[deleted] Feb 18 '21

This is just an idea. So I'm able to create rooms without adding any name on them so just by pressing enter I can create rooms, maybe you can require a name.

1

u/dulajkavinda Feb 18 '21

ill look into it. thanks!

1

u/[deleted] Feb 19 '21

No problem!

1

u/PiGuyInTheSky Feb 18 '21

Out of curiosity, what are you using to make the particle background? Looks great!

2

u/dulajkavinda Feb 19 '21

its particles-bg!

1

u/[deleted] Feb 18 '21

Not op but I used (what I think is the same) the same library for a while. It's called particlesbg or something similar

1

u/LiamSullivan63 Your Flair Here Feb 18 '21

particles js

1

u/jhath16 Feb 19 '21

I have a codepen that does this with vanilla js and canvas if you’re interested in how something like this could be implemented. I’m sure you’re just interested in the library though so nw if not :)

1

u/PiGuyInTheSky Feb 20 '21

I'd totally be interested! Sounds super cool

1

u/jhath16 Feb 20 '21 edited Feb 20 '21

https://codepen.io/jhath16/pen/wyVyqL Cool! The only notable difference is probably that the dots bounce off the walls. Other than that, it's very similar :)

Edit: Definitely not mobile friendly as it stands

1

u/Sebus28 Feb 18 '21

Nice work. Like it 👍

1

u/cmario Feb 19 '21

any chance to include private rooma with a passkey?

1

u/dulajkavinda Feb 19 '21

yeah ill add that to my todo list and thank you!!!

1

u/cmario Feb 19 '21

forgot to mention, nice work!

1

u/laggySteel Feb 19 '21

can you make it guest login as well

1

u/dulajkavinda Feb 19 '21

thats a good idea, ill add that asap!

1

u/Sebinouille Feb 19 '21

Nice work ! You should add some tools to draw ;) And maybe add some other way to play... Check https://garticphone.com/en I love this game and could give you some ideas :)

1

u/dulajkavinda Feb 20 '21

danm dude its a pretty cool game. if you got any ideas please share with me,

1

u/Sebinouille Feb 20 '21

Well the "bucket" tool to fill the shapes is a must have for a pictionnary-like game ;)

2

u/Pxzib Feb 19 '21

Anyone remembers the game InkLink on Shockwave back in the days, maybe 15 years ago? Damn, that was a good game. Same concept as this one.

1

u/[deleted] Feb 21 '21

Any chance we can get a look at the backend ?

1

u/harmar21 Feb 11 '23

what happened to the repo? and chance can share?