Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

9 years ago by FredrikJ

Hello,
I would like to make a 3D card flip in a card-based game when the cards are dealt, like in the examples below. Is this possible to do in impact.js?

http://css3playground.com/flip-card.php
http://jsfiddle.net/nicooprat/GDdtS/

9 years ago by Philip

No and yes. Impact doesn't provide a simple solution to this, cause it's a 2D engine.

But you can do it manually. You just have to write the 3d transform yourself. There are some frameworks out there that provide 3d math for the 2d canvas. Like http://threejs.org/
Page 1 of 1
« first « previous next › last »