Issue How can I change the size of the displayed font to display the following entry: al_draw_textf(font, al_map_rgb(204, 255, 255), WIDTH / 2, 50,\ ALLEGRO_ALIGN_CENTER, "%d : %d", pl1.scope, pl2.scope); Created a standard ASCII font which I am trying to
Continue readingTag: allegro
[SOLVED] How can I increase the size of the displayed text using a library like Allegro? C
Issue How can I change the size of the displayed font to display the following entry: al_draw_textf(font, al_map_rgb(204, 255, 255), WIDTH / 2, 50,\ ALLEGRO_ALIGN_CENTER, "%d : %d", pl1.scope, pl2.scope); Created a standard ASCII font which I am trying to
Continue reading[SOLVED] ALLEGRO5 change pixel color of text based on background
Issue First attempt: void Tower::_DrawHealthBarText(std::string text, int x, int y, ALLEGRO_FONT* font) { al_set_new_bitmap_flags(ALLEGRO_MEMORY_BITMAP); ALLEGRO_BITMAP* bmp = al_create_bitmap(196, 17); int bmpIndex[196][17] = { }; al_set_target_bitmap(bmp); al_draw_rectangle(5, 20, 200, 20 + 15, al_map_rgb(255, 255, 255), 1.0f); al_draw_filled_rectangle(5, 20, 5 – 195.0f
Continue reading