Lines banner

Lines

11 devlogs
9h 34m 54s

Practice parallel and perpendicular lines and secant, tangent and external lines in a gameified way!

Demo Repository

Loading README...

SalticHash

Shipped this project!

I made a game to practice line-line and circle-line intersections!

SalticHash

Results screen

I added a counter for correct and wrong questions, and a timer, I also added a button to exit from the game, this way you can exit after you did a specific amount of time or questions, this is for your teacher to grade / use the app.

Changelog

0
SalticHash

Main Menu

I made the main menu let you choose between game modes, made the buttons and title have the appropriate language and text content added a language button and made the Math Renderer resize with the window so it doesn’t stretch.

Changelog

0
SalticHash

Add main gameplay

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.

Changelog

0
SalticHash

Problem generation!

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.

Changelog

Attachment
0
SalticHash

Question Scene, math!

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!

Changelog

Attachment
Attachment
Attachment
0
SalticHash

Added Banner, Fixed Grid, Added more helpers

Banner
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!

Changelog

0
SalticHash

Intersections & Circumferece Graph

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.

Changelog

0
SalticHash

I worked more on the Math renderer, for now it can only graph linear functions but for this project’s scope it is only missing circle and intersection rendering.

Changelog

0