#include #include #include #include #include "project/utils/utils.h" #define TILECOUNT 3 const char*TILES[TILECOUNT] = {"VOID","WALL","GRASS",}; int lookupReferenceTile(char*tileName) { for (int j=0;j=0)?currentcol-1:7); }break; } } if (clock()-lastTime>FRAMETIME) { if (resizeOccured) { resizeOccured=false; clear(); delwin(messageBox); messageBox=newwin(4,cols-2,rows-5,1); } //mvprintw(5,7,"There are %dx%d squares. (%d)",cols,rows,frameCount++); drawBackground(¤tcol,0,0,0,cols-1,rows); if (messageBox!=NULL) { drawBorder(messageBox); mvwprintw(messageBox,0,0,"There are %dx%d squares. (%d) It is good!",cols,rows,frameCount); } for (int i=0;i<25;i++) { if (keyLog[i]>0) { mvprintw(6+i,2,"Key %d was pressed.",keyLog[i]); short r,g,b; color_content(currentcol,&r,&g,&b); mvprintw(6+i,30,"%d %d %d",r,g,b); } } refresh(); wrefresh(messageBox); lastTime=clock(); frameCount++; } } free(keyLog); endwin();*/ return 0; }