added a bunch of TODOs

This commit is contained in:
zombie maniac 2022-03-08 08:36:06 -05:00
parent 8330e9dfef
commit 5d2b3b0c95
Signed by: nbrooks211
GPG key ID: F43C85C0DF0C334E
4 changed files with 10 additions and 1 deletions

View file

@ -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) {

View file

@ -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));

View file

@ -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'},

View file

@ -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;