diff --git a/src/linux.h b/src/linux.h index dcad307..936a5fd 100644 --- a/src/linux.h +++ b/src/linux.h @@ -1,3 +1,7 @@ +//TODO these header files should be split into 2 files file.c and file.h +//file.h will just contain the decleration and file.c will contain the code + +//TODO This file should have time aswell #include int zom_scrinit(void) { diff --git a/src/map.h b/src/map.h index a34c176..cdd63ff 100644 --- a/src/map.h +++ b/src/map.h @@ -1,9 +1,10 @@ char readmap(int x, int y) { - return maptest[y][x]; + return maptest[y][x]; //TODO make it be able to rrad feom multiple maps but idk how to do that } int render_map(void) { int x; int y; + //I think this is broken but maybe with with the border code idk TODO fix for(y = 0; y < 40; y++) { for(x = 0; x < 80; x++) { zom_putcharat(x, y, readmap(x, y)); diff --git a/src/maptest.h b/src/maptest.h index 90642d9..5c0af1e 100644 --- a/src/maptest.h +++ b/src/maptest.h @@ -1,3 +1,4 @@ +//TODO make this read from a file instead of from this array pile char maptest[40][80] = { {'1', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '2'}, {'2', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '2'}, diff --git a/src/movement.h b/src/movement.h index 85ad779..21842c9 100644 --- a/src/movement.h +++ b/src/movement.h @@ -1,3 +1,6 @@ +//TODO fix this bug +//there is a bug with the units arg +//it doesnt check weather EVERY spot in its path is vaiid so it allows the possibity of going thru walls if units is more than 1 int attempt_move(int x, int y, int units, int direction) { int xfuture = x; int yfuture = y;