Can now add lines to ui and draw.

This commit is contained in:
Sheldon Lee
2020-07-09 23:58:17 +01:00
parent 41db31e121
commit 3df203c588
4 changed files with 31 additions and 12 deletions
+5 -2
View File
@@ -8,6 +8,7 @@
// game
#include "game.h"
#include "log.h"
#include "ui.h"
int main()
@@ -15,8 +16,8 @@ int main()
// framerate of the game
const int FRAME_RATE = 30;
const float FRAME_TIME = 1.f/(float)FRAME_RATE;
startLog("log.txt");
startLog("log.txt");
initGame();
float t = 0;
@@ -27,8 +28,9 @@ int main()
handleInput(ch);
drawGame();
drawLastPressed(ch);
//drawLastPressed(ch);
drawCurPos();
drawUI();
refresh();
@@ -38,6 +40,7 @@ int main()
t = (float) (clock()-start_t) / (float) CLOCKS_PER_SEC;
}
endUI();
endGame();
endLog();
return 0;