Finally Starting Shooter For My Final In Class...
Posted: Sat Mar 20, 2010 7:51 pm
I remember making a thread long time ago that I needed to start my final for my AP class... but never got started.
I just DLed Code::Blocks and got rid of DevC++ today, and I got it to set up SDL right and blah blah... Now I drew up the Class lay out thing and I am ready to get started.
I was thinking of doing destructible environment similar to Space invaders, like how they did it with the shields.
The game will be a top down view shooter similar to endless war (http://www.maxgames.com/game/endless-war-4.html) but not as hectic and bigger maps and ect.
So far I think I have to focus on formatting the classes right, since last attempts failed and had to reformat. I think the draw class will have a constructor that loads the sprite sheets. So a new draw object has to be initialized for the enemies and players and map. Would you say that its the wisest choice? or have the individual classes have their own sprite stored in as an object and have the draw function take in the coordinates and the SDL_Surface as arguments? I personally don't like functions taking in more than 3 arguments though...
Also how would I go about rotating the player in 360 degrees? I was thinking of making a sprite for every 22 degree angles and getting the slope of the mouse and the player and getting the tan of that, but that will use up more memory. I won't be venturing into OpenGL, I tried, I got lost...
I just DLed Code::Blocks and got rid of DevC++ today, and I got it to set up SDL right and blah blah... Now I drew up the Class lay out thing and I am ready to get started.
I was thinking of doing destructible environment similar to Space invaders, like how they did it with the shields.
The game will be a top down view shooter similar to endless war (http://www.maxgames.com/game/endless-war-4.html) but not as hectic and bigger maps and ect.
So far I think I have to focus on formatting the classes right, since last attempts failed and had to reformat. I think the draw class will have a constructor that loads the sprite sheets. So a new draw object has to be initialized for the enemies and players and map. Would you say that its the wisest choice? or have the individual classes have their own sprite stored in as an object and have the draw function take in the coordinates and the SDL_Surface as arguments? I personally don't like functions taking in more than 3 arguments though...
Also how would I go about rotating the player in 360 degrees? I was thinking of making a sprite for every 22 degree angles and getting the slope of the mouse and the player and getting the tan of that, but that will use up more memory. I won't be venturing into OpenGL, I tried, I got lost...