integrated the xlimited source file

This commit is contained in:
Wei-ju Wu
2016-06-14 13:55:51 -07:00
parent 2f8620b020
commit 53a3302492
5 changed files with 682 additions and 36 deletions
+41
View File
@@ -0,0 +1,41 @@
#pragma once
#ifndef __GLOBAL_DEFS_H__
#define __GLOBAL_DEFS_H__
#define ARG_TEMPLATE "SPEED/S,NTSC/S,HOW/S,SKY/S,FMODE/N/K"
#define ARG_SPEED 0
#define ARG_NTSC 1
#define ARG_HOW 2
#define ARG_SKY 3
#define ARG_FMODE 4
#define NUM_ARGS 5
#define MAPNAME "maps/large.raw"
#define BLOCKSNAME "blocks/demoblocks.raw"
#define SCREENWIDTH 320
#define SCREENHEIGHT 256
#define EXTRAWIDTH 32
#define SCREENBYTESPERROW (SCREENWIDTH / 8)
#define BITMAPHEIGHT SCREENHEIGHT
#define BLOCKSWIDTH 320
#define BLOCKSHEIGHT 256
#define BLOCKSDEPTH 4
#define BLOCKSCOLORS (1L << BLOCKSDEPTH)
#define BLOCKWIDTH 16
#define BLOCKHEIGHT 16
#define BLOCKSBYTESPERROW (BLOCKSWIDTH / 8)
#define BLOCKSPERROW (BLOCKSWIDTH / BLOCKWIDTH)
#define NUMSTEPS BLOCKWIDTH
#define DIWSTART 0x2981
#define DIWSTOP 0x29C1
#define PALSIZE (BLOCKSCOLORS * 2)
#endif /* __GLOBAL_DEFS_H__ */