This is a course assignment from HKUST(GZ) CMA5001. This mini application is to help people know whether their friends have slept or not. The motivation of this application is to help people sleep early and have a healthy life.
๐ Show friends sleeping status
๐ You can slightly tap your friend to kindly remind him/her to sleep
โณ Show you are going to sleep
๐ Show your sleeping history which can be seen by your friends
- show sleeping status
- client-server communication
- show sleeping status
- distinguish users: icons and users are corresponding, show names
- show username under the button
- Beautify the user interface
- ๐ house icon on buttons
- ๐ก bulb icon on buttons
- disable buttons which not belong to the user
- Share multitouch data between exactly two players.
This is just like the normal "sketch.js" you usually have in p5.js projects, but it also includes code that talks to the server.
This is the server code, which receives each client's data and transmits that to other client(s).
- p5.js
- socket.io
- express
First time using Glitch? Check out these Glitch tips