summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tiles.h
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-23 17:07:46 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-23 17:07:46 +0000
commitb25208caa5f84ac6c370314945c6f110261d2c70 (patch)
treec477c16395f409c901bc7d405b14db67ff4a4d90 /crawl-ref/source/tiles.h
parent02bae5372f40ac282701831cc61deb2483938876 (diff)
downloadcrawl-ref-b25208caa5f84ac6c370314945c6f110261d2c70.tar.gz
crawl-ref-b25208caa5f84ac6c370314945c6f110261d2c70.zip
RLTiles complete code rewrite: now much more robust and functional.
Added PNG and non-palettized image input. Added PNG output. Added better tile packing and support for tiles of different sizes. Converted all BMPs to PNGs (for space and explicit transparency reasons.) Added the 48x32 pandemonium demon tiles, but these are not yet used in game. Added Bill B.'s portal tile (finally). The Win32 makefiles are not updated quite yet and thus will not build. Sorry. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6850 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tiles.h')
-rw-r--r--crawl-ref/source/tiles.h35
1 files changed, 6 insertions, 29 deletions
diff --git a/crawl-ref/source/tiles.h b/crawl-ref/source/tiles.h
index 1245633b57..7fa011ed17 100644
--- a/crawl-ref/source/tiles.h
+++ b/crawl-ref/source/tiles.h
@@ -10,16 +10,18 @@
#ifdef USE_TILE
-#include "tiledef.h"
-#include "beam.h"
+#include "tiledef-main.h"
+#include "tiledef-demon.h"
+#include "tiledef-dngn.h"
+#include "tiledef-player.h"
-#include "tiledef-p.h"
+#include "beam.h"
struct dolls_data
{
dolls_data() { memset(parts, 0, sizeof(parts)); }
- int parts[TILEP_PARTS_TOTAL];
+ int parts[TILEP_PART_MAX];
};
//*tile1.cc: get data from core part and drives tile drawing codes
@@ -190,34 +192,9 @@ const char *get_parts_name(int part, int idx);
int get_parts_idx(int part, char *name);
#endif
-// Dungeon view window size
-#define TILE_DAT_XMAX 35
-#define TILE_DAT_YMAX 35
// normal tile size in px
#define TILE_X 32
#define TILE_Y 32
-// Unit size
-// iso mode screen size
-#define TILE_XMAX_ISO 24
-#define TILE_YMAX_ISO 13
-// iso tile size in px
-#define TILE_X_EX_ISO 64
-#define TILE_Y_EX_ISO 64
-
-// iso mode unit grid size in px
-#define TILE_UX_ISO (TILE_X_EX_ISO/2)
-#define TILE_UY_ISO (TILE_X_EX_ISO/2)
-
-// screen size in grids
-#define TILE_XMAX_NORMAL 17
-#define TILE_YMAX_NORMAL 17
-// grid size in px
-#define TILE_UX_NORMAL TILE_X
-#define TILE_UY_NORMAL TILE_Y
-
-#define TILEP_BOOTS_NAGA_BARDING (N_PART_BOOTS + 1)
-#define TILEP_BOOTS_CENTAUR_BARDING (N_PART_BOOTS + 2)
-
#endif // USE_TILES
#endif