added a bunch of TODOs
This commit is contained in:
parent
8330e9dfef
commit
5d2b3b0c95
4 changed files with 10 additions and 1 deletions
|
@ -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 <curses.h>
|
||||
|
||||
int zom_scrinit(void) {
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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'},
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue