1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
void apply_tiles(bool board[])
{
//a
apply_surface( 0, 0, a1, screen );
apply_surface( 50, 0, a2, screen );
apply_surface( 100, 0, a3, screen );
apply_surface( 150, 0, a4, screen );
apply_surface( 200, 0, a5, screen );
apply_surface( 250, 0, a6, screen );
//b
apply_surface( 50, 0, b1, screen );
apply_surface( 50, 50, b2, screen );
apply_surface( 50, 100, b3, screen );
apply_surface( 50, 150, b4, screen );
apply_surface( 50, 200, b5, screen );
apply_surface( 50, 250, b6, screen );
//c
apply_surface( 100, 0, c1, screen );
apply_surface( 100, 50, c2, screen );
apply_surface( 100, 100, c3, screen );
apply_surface( 100, 150, c4, screen );
apply_surface( 100, 200, c5, screen );
apply_surface( 100, 250, c6, screen );
//d
apply_surface( 150, 0, d1, screen );
apply_surface( 150, 50, d2, screen );
apply_surface( 150, 100, d3, screen );
apply_surface( 150, 150, d4, screen );
apply_surface( 150, 200, d5, screen );
apply_surface( 150, 250, d6, screen );
//e
apply_surface( 200, 0, e1, screen );
apply_surface( 200, 50, e2, screen );
apply_surface( 200, 100, e3, screen );
apply_surface( 200, 150, e4, screen );
apply_surface( 200, 200, e5, screen );
apply_surface( 200, 250, e6, screen );
//f
apply_surface( 250, 0, f1, screen );
apply_surface( 250, 50, f2, screen );
apply_surface( 250, 100, f3, screen );
apply_surface( 250, 150, f4, screen );
apply_surface( 250, 200, f5, screen );
apply_surface( 250, 250, f6, screen );
}
//Actual Program below! Work On it!
int main ( int argc, char* args[] )
{
if (init == false)
{
return 1;
}
bool quit = false;
border = load_image("background.png");
apply_surface(0,0,border,screen);
setup(board);
SDL_Delay(5000);
//settiles(board);
cleanup();
}
| |