Niestety nie potrafię sobie z tym poradzić.. Mam taki program
#include <iostream>
#include <allegro.h>
using namespace std;
int mx = 0, my = 0, mb = 0;
void myszka()
{
if( mx != mouse_x || my != mouse_y || mb != mouse_b )
{
mx = mouse_x;
my = mouse_y;
mb = mouse_b;
}
};
int main(){
int x=0;
int y=0;
allegro_init();
install_keyboard();
set_color_depth( 16 );
set_gfx_mode( GFX_AUTODETECT_WINDOWED, 528, 528, 0, 0 );
clear_to_color( screen, makecol( 128, 128, 128 ) );
BITMAP * rurka = NULL;
BITMAP * bufor = create_bitmap( 44, 44 );
rurka = load_bmp( "rurka1.bmp", default_palette );
for (int i=0; i<=11; i++)
{
blit( rurka, screen, 0, 0, x, y, 44, 44);
y=y+44;
}
readkey();
destroy_bitmap (bufor);
destroy_bitmap( rurka );
allegro_exit();
return 0;
}
END_OF_MAIN();
i nie wiem w którym miejscu wkleić coś takiego.. o ile trzeba to tak zrobić
if (mb == 1)
{
rotate_sprite( bufor, rurka, 0, 0, ftofix( 64 ) );
blit( bufor, screen, 0, 0, x, y, 44, 44);
}
byłbym bardzo wdzięczny za pomoc