rupl / bustashape

Collaborative, real-time artboards
https://bustashape.art
MIT License
5 stars 3 forks source link

Ripping shapes #104

Open rupl opened 7 years ago

rupl commented 7 years ago

Long, long ago, @afragon suggested the ability to rip a shape into two pieces when grabbed by two people at the same time. Right now it actually displays this effect part-way, but we can detect these events on the server and perhaps clone a shape so that both people have new ones, and the old original is deleted.

To so this we'd make the following changes to socket events:

The effect flag specifies an effect when the shape appears. Currently it's hardcoded to kind of pop into place. We can set that to default, but allow the creation of shapes with no effect. That will let us control the visual effect of deleting and re-creating shapes on other clients when events like shape ripping happen.

rupl commented 4 years ago

We actually did document this in the beginning: #13