Heyeveryone,
I am about to remake a poorly coded 2d game i made earlier this year. I would like som guidance in regards of the classes i will need. I want the to be proper OOP.
I am using c++, SDL and opengl.
There is a 2d square, who just complete levels by moving along yellow lines without touching red lines. He can jump, but for only a certain amount of air-time. There map is also read from a text file, because i am using glQuads to draw the lines, i just need 4 coordinates, which loop through a txt that i make.
Basically there is:
- a character
- a level :containing good and bad platforms
- the platforms are stored in a document - the .txt could look like this:
23 10 10 12 // first platform
12 100 13 109 //second platform
et.c
So it loops through in 4's, drawing them.
- a jumping mechanism.
Thankyou very much, I have all these ideas but can never make them, and this is something i am really eager to do. I wuold be sooooo grateful to recieve a response.