Loop after solving maze
This commit is contained in:
parent
bf145830cc
commit
aaf400d881
5
main.c
5
main.c
@ -12,6 +12,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define MAZE_SIZE 24
|
||||
|
||||
@ -168,6 +169,7 @@ int main(void)
|
||||
XNextEvent(dpy, &evt);
|
||||
while (MapNotify != evt.type);
|
||||
|
||||
while (1) {
|
||||
// Draw black box for walls
|
||||
XClearWindow(dpy, window);
|
||||
XSetForeground(dpy, ctx, wall_col);
|
||||
@ -197,6 +199,9 @@ int main(void)
|
||||
XFillRectangle(dpy, window, ctx, x, y, PX(1), PX(1));
|
||||
XFlush(dpy);
|
||||
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
// Wait for window exit
|
||||
bool is_del = false;
|
||||
do {
|
||||
|
Loading…
x
Reference in New Issue
Block a user