Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool running = true;
- int width = al_get_display_width(display);
- while (running) {
- for (;;) {
- al_clear_to_color(al_map_rgb(255, 255, 255));
- al_draw_bitmap(bitmap, 0, 0, 0);
- al_draw_text(font, al_map_rgb(0, 0, 0), 760, 375, 0, "Play (Spacebar)");
- al_flip_display();
- al_rest(1.5);
- al_clear_to_color(al_map_rgb(255, 255, 255));
- al_draw_bitmap(bitmap, 0, 0, 0);
- al_flip_display();
- al_rest(0.5);
- }
- ALLEGRO_EVENT event;
- al_wait_for_event(queue, &event);
- if (event.type == ALLEGRO_EVENT_DISPLAY_CLOSE) {
- running = false;
- }
- }
Add Comment
Please, Sign In to add comment