diff src/main.c @ 20:51a0972fcf76

Move some tilemap/distance stuff out of creep.c and main.c into a separate source file
author Michael Pavone <pavone@retrodev.com>
date Sun, 12 Jan 2014 22:43:03 -0800
parents 60bb690233cf
children bb7dfb42b320
line wrap: on
line diff
--- a/src/main.c	Sun Jan 12 22:05:12 2014 -0800
+++ b/src/main.c	Sun Jan 12 22:43:03 2014 -0800
@@ -1,5 +1,6 @@
 #include <genesis.h>
 #include "creep.h"
+#include "map.h"
 
 // I now realize this should be one tile that uses the flipping flags.  oops.
 const u32 cursor_tiles[4*8] = {
@@ -46,7 +47,6 @@
 #define TOWER TILE_ATTR_FULL(1, 0, 0, 0, 'T'-32 + TILE_FONTINDEX)
 #define GOAL TILE_ATTR_FULL(1, 0, 0, 0, 'G'-32 + TILE_FONTINDEX)
 
-u16 tilemap[40*28];
 u16 countdown;
 
 int cursor_x = 0;  // tiles