|
allegro 4.4.2 draw_sprite not working properly |
douglas yamasaki
Member #16,871
July 2018
|
I`m trying to print a array in allegro with this code: for (i=0;i<LINES;i++){ draw_sprite (buffer,labirinto,0,0); it was working for lines = 30 , colums = 30 , but when i changed to 30 lines and 40 colums it only render a 30x30. if this helps : each bitmap "saida" "chao" "parede" have 20 x 20 px https://prnt.sc/k1dn5r -> print of the image result. (theres no interference with next drawnings , only that doesnt work |
Edgar Reynaldo
Major Reynaldo
May 2007
|
douglas yamasaki said: if this helps : BITMAP *buffer = create_bitmap(LINES*20,COLUMS*20); BITMAP *labirinto = create_bitmap(LINES*20,COLUMS*20);
You should swap LINES and COLUMS there. They are backwards. BITMAP* buffer = create_bitmap(COLUMNS*20 , LINES*20); BITMAP* labirinto = create_bitmap(COLUMNS*20 , LINES*20);
My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|