Personally, I would have all the processing in the main.cpp, and then have an input file to load the level layout..
Also, if you feel good about it, build a level creator (makes life so much easyer) :D
Thanks xD. What are you making your game about?
I think I'm gonna go try and write a half decent collision detection so i have something to use in any other games I make in the future. the collision detection in this game is really messed up and unreusable(and caused me a lot of grief).
Stupidly I started with a too complex game for a beginner and am making a platformer. I've been working on it for months and i've had to rebuild it from scratch like 3 times now.
Collision detection is a right pain isn't it. Ha. I still haven't managed to get it working exactly as i want it but its close. It's only rectangular aswell. I would hate to have to do other shapes or god forbid, curves!:P
hehe cool. i didnt realize my mouse moved the ball. i started it up and lost 3 seconds later. took me a few times. at least you didnt have to worry about graphics in this one. nice work though.
@chr15chr15 Oh, first one i tryed was also a platformer.........i gave up after a month of working on still about 5 nonfuctional functions. the idea idea i tryed for collsion dectection in that one was to use linear systems to calculate if the vector of movment and the surface intersect. I messed up in too many places so it didnt work out too well for me :(
the collision dectection in this one is bad and not actually a circle. it only uses the point at the bottom of the circle for collisions xD.
@acorn Thanks xD. I though about writing that you use the mouse to move the ball, but I was like naahh xD.
By Proccessing (may not be the right word) but i mean have an "interperator" in the main loop that takes a "map" file and turns it into all the blocks and such.
If your game involves heavy physics, check out box2D
its what im using now for my platformer (started last week) and so far so good!