r/Frontend • u/dulajkavinda • Feb 18 '21
online multi-player pictionary game built using react and socketio
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
6
3
2
u/MrQuickLine Feb 18 '21
Am I crazy? You switched the color of the marker but it kept drawing in black?
4
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
2
Feb 19 '21
Is this essentially the same thing as skribbl.io ?
14
1
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
1
u/PiGuyInTheSky Feb 18 '21
Out of curiosity, what are you using to make the particle background? Looks great!
2
1
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
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
1
1
1
1
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
1
10
u/dulajkavinda Feb 18 '21
Repo : https://github.com/dulajkavinda/pictionary-online-sl
Live : https://secret-ravine-42870.herokuapp.com/