How to save drawing angles c#

Asked

Viewed 46 times

0

In my game users are supposed to draw pictures that I show, I want to save the angles of the drawings to compare with the data that I already have stored in a database and see if what the user has drawn is acceptable.

From the moment the user starts drawing the picture can not lift the finger of the mouse button, otherwise lose if the picture is not completed or does not match anything found in the database I’ll use the method system.drawing

  • 1

    What happens if the user draws a circle?

  • 1

    The question seemed to me very broad. Could you be more specific? Demonstrate better what you want and where this your problem.

  • How does the user enter with the drawing? It is through a brush or through a set of points picked at each click?

  • @Renan because I’ve thought about this problem and also do not know how to solve, but in case I do not know at the moment simply do not include in the game because I am the one who gives the figures, but this is a point to consider.

  • @Jeffersonquesado yes I will use Pen, my idea is to randomly pass some figures selected by me in a specific area of the screen and the user tries to do the same, let’s imagine that it is a square, in case they start at the base line and then move to the sides, i think it is at this point that X and/or Y have a dramatic change in the value that I should mark a point, and when I have 2 or 3 (including the point that I mark as soon as the person presses the mouse to start drawing) calculate the angle

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.