Search found 9 matches

by Irony
Thu Mar 24, 2011 1:50 pm
Forum: Programming Discussion
Topic: Trouble using SDL_DisplayFormat()
Replies: 7
Views: 1146

Re: Trouble using SDL_DisplayFormat()

SDL_DisplayFormat works by converting the target surface to a surface compatible with the current display. So, you cannot call it before you have called SDL_SetVideoMode. Load your image after that call, and everything should work fine. Also, use SDL_DisplayFormatAlpha on images loaded using IMG_Lo...
by Irony
Wed Mar 23, 2011 8:44 pm
Forum: Programming Discussion
Topic: Trouble using SDL_DisplayFormat()
Replies: 7
Views: 1146

Re: Trouble using SDL_DisplayFormat()

Yes. I made sure SDL_Init was called first, in this function: int initializeGraphics() { // Initialize the SDL if(SDL_Init(SDL_INIT_EVERYTHING) == -1) return 5; // Load the graphics files (TODO: Read this information from a text file) string fileName = "newTerrain.png"; SDL_Rect imgSize; i...
by Irony
Wed Mar 23, 2011 6:15 pm
Forum: Programming Discussion
Topic: Trouble using SDL_DisplayFormat()
Replies: 7
Views: 1146

Trouble using SDL_DisplayFormat()

Hey, so I've been trying to implement the SDL library, but I've run into a problem: SDL_DisplayFormat() isn't working! I stepped through my code, and the image seems to be loaded into temp, but when it gets passed to SDL_DisplayFormat, the function returns NULL. Any idea why this is? Or is there a w...
by Irony
Mon Feb 21, 2011 12:45 pm
Forum: Art, Music, and Design
Topic: Pixel Art Tutorials
Replies: 28
Views: 25213

Re: Pixel Art Tutorials

Les Forges Pixel Art Course is also a good one.
by Irony
Wed Feb 16, 2011 12:01 am
Forum: Programming Discussion
Topic: What's a good C++ Reference Book?
Replies: 4
Views: 509

What's a good C++ Reference Book?

Hey, I'm looking at getting some sort of C++ Reference Book. The web resources I've found so far are nice, but I'd really like to have the physical book to look through. Do you guys have any suggestions? I've been looking at "C++: The Complete Reference, 4th Edition by Herbert Schildt," si...
by Irony
Mon Jan 31, 2011 10:52 pm
Forum: Programming Discussion
Topic: OODT
Replies: 8
Views: 891

Re: OODT

But its not a theoy if it exist OOD exists so why is it a theory? Oh. You're confusing the meaning of "Theory." The type of theory that you're thinking of is a scientific theory. That's the sort of theory where you have an idea of the way things are/work, and you are trying to find eviden...
by Irony
Mon Jan 31, 2011 9:28 pm
Forum: Programming Discussion
Topic: OODT
Replies: 8
Views: 891

Re: OODT

Why is called "Object Oriented Design Theory"? It exists, people created it if I make a design of a building do I call it "My Building Design Theory"? I'll be honest, I'm not quite sure what you are asking. If you made up a set of standards or rules which explained how best to b...
by Irony
Fri Jan 28, 2011 12:53 pm
Forum: Programming Discussion
Topic: Best Practices?
Replies: 6
Views: 597

Re: Best Practices?

First off, thanks for the quick replies! I must be seriously misusing the term "engine." All my "engine" is is a manager class that handles most of the game logic. I'll consult Google about that and OOP. Any resources that you guys would recommend? If this is your first game, wou...
by Irony
Fri Jan 28, 2011 2:59 am
Forum: Programming Discussion
Topic: Best Practices?
Replies: 6
Views: 597

Best Practices?

Hey folks, So I'm designing this new, ultra cool, massively multiplayer game where players get to hit a little ball with two paddles on either side of the screen! So yeah, I'm making "Pong." I'm trying something simple in order to try and figure out how this game design thing works. I'm us...