Hello guys, I've lately been thinking of making a "Math game", based on straight lines and angles between them, so, the idea is as follows:-
-I want to make a grid where each intersection of two x and y lines creates a point, and I want each point to have a certain coordinate.
-Player 1 starts by selecting a point, the point's coordinates are saved in a text file, and then the player 1 selects another point, the coordinates are saved as well.
-The length of the straight line by units is calculated.
-Player 2 selects a point on the straight line.
-Player 1 is moved to that point.
-The slope of the straight line is calculated
-The equation of the straight line is calculated
-From the equation and the point selected by player 2, the length of the perpendicular to the straight line is calculated, the perpendicular is drawn, and the player is moved till the end of that perpendicular.
-Player 2 forms a new straight line.
-Player 1 is projected in the angle between the 2 straight lines, if the angle is 45 or 135 degrees, the player is moved 5 steps.
-And so on, until player one reaches a trap X (loses) or O (wins)
So, the question is, how can I get started making that game? I know all the formulas I will need, but I don't know how to make the grid or make each point have a coordinate on it, I know how to save in a text file, but I don't know how I can perform the operations on them without interference from the players and function calls, I don't how how I can start making it, so if someone could guide me in the right direction, I'd greatly appreciate it.
Also, I only want to make this project to get used to the Maths and the Physics I will need for making games and stuff, and maybe I can have fun playing it sometimes too, lol. If it's not worth it, please let me know, if it's too complex for me, also let me know, if I have logical errors, I'd greatly appreciate it if you tell me.Thanks guys! :)
EDIT: I'm sorry for being vague, to answer your questions: I am a beginner and I made a few simple games in C++ and Allegro5, like pong, arkanoid,a game where a car tries to get away from falling objects which speed up over time, a game with two balls representing players trying to get each others in a black circle. I still haven't started working on the project yet. I have no experience using OpenGL or D3D, I don't know if this is a suitable project to start using them.