Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdbool.h>
- #include <string.h>
- #include <stdio.h>
- #include <math.h>
- #include <time.h>
- #include "cab202_graphics.h"
- #include "cab202_sprites.h"
- #include "cab202_timers.h"
- int main(int argc, char* argv[]) {
- setup_screen();
- clear_screen();
- char key;
- while (true) {
- key = get_char();
- if (' ' == key) {
- clear_screen();
- draw_formatted(0, 0, "%s", "Space pressed");
- show_screen();
- }
- else if ('q' == key) {
- break;
- }
- timer_pause(1L);
- }
- cleanup_screen();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment