ciao!creando un video gioco con la libreia allegro.h tramite il il libroProgrammare un video gioco passo per passo con Allegro.h del sito www.bertinettobartolomeodavide.it/sono usciti i seguenti errori come risolvo?
codice:
BITMAP buf, sprite,scrolling, screen,buffer, buffer2,immagine ; // mi esce l'erorre BITMAP' does not name a type
PALETTE colori; //mi esce l'erorre PALETTE' does not name a type
DATAFILE dati; //mi esce l'erorre DATAFILE' does not name a type
void doppiobuffering(){
vsync(); // mi esce l'errore `vsync' was not declared in this scope
blit(buffer2, screen, 0, 0, 0, 0, 640, 480); `blit' was not declared in this scope
clear(buffer2); // mi esce l'errore clear was not declared in this scope
}
void player() {
if (morto==1) {
draw_sprite(buf, sprite, x, y33 )`draw_sprite' was not declared in this scope
}
}
void presentazione() {
if (go==1) {
while (!key[KEY_SPACE]) { // mi esce l'errore KEY_SPACE was not declared in this scope
blit(dati[presetazione].dat, screen, 0, 0, 0, 0, 1024, 768);// mi esce `dati' was not declared in this scope
}
}
go=0;
}
textout(buf, "GAME OVER", 480, 370, 215);// mi esce l'errore `textout was not declared in this scope