Practice parallel and perpendicular lines and secant, tangent and external lines in a gameified way!
Practice parallel and perpendicular lines and secant, tangent and external lines in a gameified way!
I made a game to practice line-line and circle-line intersections!
I made it so the correct answer gets stored and called back when pressing a button to pick the right or wrong answer, I also moved the main generation to functions and also added a display of the functions on the left, now the goal is probably polishing, adding gamemodes, scores and maybe making so the numbers generated are not irrational.
Log in to leave a comment
Finally got to the hardest part of the project, the problem generation, So how this works is that it picks between a Line-Line intersection or Circle-Line intersection problem, then chooses one of its variants (Secant, tangent, perpendicular and those), then with careful random numbers everything is tweaked to have the desired values and be visible on screen.
I also did some more testing on Desmos and I added a “Point” shape, I don’t think Ill use it but it is helpful for testing graphing.
Log in to leave a comment
So this is a weird, one, and it actually was longer than one hour, maybe like two, because a lot of time I spent testing and brainstorming a way to generate all “test cases” i need for the questions, here you can see a system I made to generate line secant intersections and some bloopers, you can also see the new question scene where the questions will be loaded, sorry for the spanish.
I discovered a way to generate all cases and practically depends of setting the origin point of the line, spining it and using tan(angle)for the slope and offseting the line so it is just off-center, and I can follow a similar process for line-line intersections, I may or may not work on it tomorrow, if i get that working only play functions and UI design would be left!
Log in to leave a comment

So, this is a huge update! I finally fixed the grid and axis intervals, I also made it so that the way objects are rendered is through the children of the renderer, inside the new Circle and Line objects which extend the Shape class there are new helper functions to help with the math.
Next I need to add the gameplay and problem generation!
Also I attached a Blooper / Bugged version, looked interesting!
Log in to leave a comment
I added the funcionality to graph circumferences from their radius and position, I also added a way to calculate line-line and circumference-line intersections, I also added a way to graph points, which unlike the rest of the graphics do not warp (perfectly circular always), I also made the viewport be the size of the screen so that the warping only happens if forced, finally I removed the grid because it did not work, now the problem generation, modes and main gameplay is left.
I had to manually solve for the circumference-line intersection (well I didn’t have to I just wanted), so I used this source for the base steps then manually solved it in desmos, I also did the same with the line-line intersection but that one was easier.
Log in to leave a comment