lucasb-eyer / mwdns

Memory Which Does Not Suck - play turn-based and realtime memory with your friends in the browser.
12 stars 2 forks source link

Implement card rotation #12

Closed lucasb-eyer closed 11 years ago

lucasb-eyer commented 11 years ago

A third coordinate goes along with x,y: phi. It is already carried along almost everywhere but needs to be applied to the cards!

maybe through the "transform: rotate(phi deg)" css property? But it has many variants, like "-webkit-transform" etc. Maybe we should use a jquery plugin for that?

lucasb-eyer commented 11 years ago

Two places where this needs to happen are marked with TODO in objects.js

But there also needs to be control for the user to rotate cards.

vsupalov commented 11 years ago

Card rotations are animated now.

lucasb-eyer commented 11 years ago

Now we only need to make some interaction, control-click&drag?

vsupalov commented 11 years ago

Implemented in dcf60179e30fe3ab3a3f3eac9643651f6ab7ca94