All pastes #994157 Raw Edit

Mine

public text v1 · immutable
#994157 ·published 2008-04-23 04:35 UTC
rendered paste body
#include<iostream>
#include<allegro.h>

//pointers for all graphics
BITMAP *GameBoard;

using namespace std;

//function prototypes
void DrawGBoard();
int Spiner(int x, int y);


int main()
{
    allegro_init();
    install_keyboard();
    set_color_depth(16);
    set_gfx_mode(GFX_AUTODETECT, 400, 300, 0,0);
    
    //the primary game loop
    while (!key[KEY_ESC])
    {    
         DrawGBoard();   
    }
    
    return 0;
}
END_OF_MAIN();

//draw the basic game board
void DrawGBoard()
{
    GameBoard = load_bitmap( "GBoard.bmp", NULL);
    
    acquire_screen();
    draw_sprite(screen, GameBoard, 0,0);
    release_screen();
    
}
//spin the spinner thingys
int Spiner(int x, int y)
{
}