Search found 26 matches

by civicdude95
Sun Feb 27, 2011 7:30 pm
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2680

Re: Need help with c++/sdl and drawing

Hey guys thanks for helping me out with this problem. I'm glad we were finally able to figure it out.
by civicdude95
Sun Feb 27, 2011 1:03 pm
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2680

Re: Need help with c++/sdl and drawing

Wow, that's weird. What in the world would cause that to happen? Is there another way to set the transparency color that would make it work properly? I have not ever seen this problem before *EDIT* Ok, so I modified my LoadImage() method to be like the following: SDL_Surface* Game::LoadImage(const c...
by civicdude95
Sun Feb 27, 2011 9:38 am
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2680

Re: Need help with c++/sdl and drawing

Sure I'm putting in my Google docs account.

Here is the link for the zip
https://docs.google.com/leaf?id=0B-7lPg ... y=CMSKkpQF
by civicdude95
Sun Feb 27, 2011 8:30 am
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2680

Re: Need help with c++/sdl and drawing

Ok I tried commenting out the SDL_Blit() for the gameplay background and replaced the menuScreen draw function with the background draw and it still had the black at the top. After that I tried making a completely new background image and it won't even draw that at all! I made it gray and a PNG (jus...
by civicdude95
Sat Feb 26, 2011 10:20 pm
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2680

Re: Need help with c++/sdl and drawing

Yes (after I commented out the code to limit his vertical movement to the bottom third of the screen) and the pills are being drawn in the black area also (as opposed to the black being drawn on top of the pills) By the way, how is your platformer coming along? I liked the video you posted in your t...
by civicdude95
Sat Feb 26, 2011 9:57 pm
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2680

Re: Need help with c++/sdl and drawing

I'm not quite sure :/ One nitpick though, how come you aren't using SDL_DisplayFormatAlpha(surface); ? It probably won't have anything to do with it , but you've been very error safe with the rest of your code Which drawing statement are you talking about specifically? And the answer is because 1. ...
by civicdude95
Sat Feb 26, 2011 7:18 pm
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2680

Re: Need help with c++/sdl and drawing

it is an image that is defined as a surface SDL_Surface *bkground; bkground = game.LoadImage("bkground.png"); And here's my LoadImage() function from Game.h SDL_Surface* Game::LoadImage(const char *filename) { SDL_Surface *image = IMG_Load(filename); if (image == NULL) { std::cerr << "...
by civicdude95
Sat Feb 26, 2011 9:03 am
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2680

Re: Need help with c++/sdl and drawing

Ok sure, warning: it's kind of long. while(!gameOver) { ......///////////////Update Stuff////////////////////////////..... . . . . . //////////////////////////// DRAW STUFF \\\\\\\\\\\\\\\\\\\\\\\\\\\\ if (screen == 1){ ////// FOR MENU SCREEN \\\\\\\\\ if (SDL_FillRect( game.GetBuffer(), NULL, SDL_M...
by civicdude95
Fri Feb 25, 2011 9:51 pm
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2680

[Solved] Need help with c++/sdl and drawing

Hey guys, so I'm making a very simple c++/sdl gather-collect-things game and I currently have two screens (main menu and gameplay). I'm in the process of cleaning up my code and moving things out of main.cpp into other files/methods and it seems like my gameplay screen is not displaying properly. At...
by civicdude95
Fri Feb 25, 2011 1:13 pm
Forum: Game Development
Topic: Our platform game!
Replies: 7
Views: 1859

Re: Our platform game!

Very nice demo. It's looking pretty good. Quick question, what language are you writing the editor in? He said c++/sdl. You can also tell from the video :P Yes, it's c++ and SDL for both the engine and the editor. I was going to throw in OpenGL but the features aren't really needed ( We are going f...
by civicdude95
Mon Feb 21, 2011 10:38 am
Forum: Game Development
Topic: Our platform game!
Replies: 7
Views: 1859

Re: Our platform game!

Very nice demo. It's looking pretty good. Quick question, what language are you writing the editor in?