samedi 10 décembre 2016

AS3 - How to calculate intersection between drawing and bitmap

I'm trying to create a handwriting game with AS3 on Adobe Animate. I've created my board, functions(drawing, erasing, saving, printing and color pannel) so far. But i need to show a score. To do it i thought if i can calculate the percentege of intersection between drawing and a bitmap image(which is my background for now).

Is there any way to do it? Or can you at least tell me with which function should i try that? Thanks a lot.

Note: Here is 2 images from my game. You can easily understand what am i trying to explain and do.

players will try to draw correctly(drawn board)

Empty Board

Aucun commentaire:

Enregistrer un commentaire