Quoterhyno_dagreatThanks! But why are the x's right shifted by 1? Shifting 1 to the right is the same as dividing the number by two. I'm not sure if that's why the shift was used though.by ltkerr0r - Coding
QuoteArikadoQuotedaniel_c_wDidn't he say, he is compiling for windows? Erm, he did. So just ignore my previous comment everyone. Unfortunately, I made the mistake of assuming that everything posted in the coding section is for making Wii Programs (like it should be). With that in mind... Topic moved. Since he's using SDL, he's most likely just trying to get some base code running oby ltkerr0r - Offtopic
Here's the answer to your problem. Click first result. int main(int argc, char *argv[])by ltkerr0r - Offtopic
You can also print out "check points" to a log file. "after init; inside main; before draw; after draw;" ...etcby ltkerr0r - Coding
On wii you have to load from the root directory. So load the image by "/apps/yourapp/pic.bmp" or possibly "sd:/apps/yourapp/pic.bmp". Or in the meantime you can just throw those pics in the root of your SD and it should work fine.by ltkerr0r - Coding
Are you using an IDE or just compiling text files? I only get 1 error from compiling those two code snippets. expected unqualified-id at end of input expected `,' or `;' at end of input That's from your Linkman class. You need to put a semicolon after the class definition. class Linkman { public: Linkman(); ~Linkman(); void SetX(int xx) {x = xx;} void SetY(int yyby ltkerr0r - Coding
It's your loop. I changed it to: { get input handle input draw } works #include #include "SDL/SDL.h" #include "SDL/SDL_image.h" #include using namespace std; //Screen attributes const int SCREEN_WIDTH = 640; const int SCREEN_HEIGHT = 480; const int SCREEN_BPP = 32; //The surfaces SDL_Surface *map1 = NULL; SDL_Surface *start = NULL; SDL_Surface *screen = NULL;by ltkerr0r - Coding