For this project, I took my garden project from assignment 3, and expanded it into a multiuser experience.
To begin, I took my original code from the singular portion of the assignment (posted here). I then added socket.io capability. In order to manipulate my code and actually see it update, I ran it on a local server.
From there, I adjusted my server.js code so that it contained websocket events, and could receive data from both a client and a server at the same time – allowing for two people to create a collaborative drawing together. In my case, this is the planting of a garden, where both users can make additional flowers appear together, from different sides, as you can see below.
Watch the garden at work: