1
0
mirror of https://github.com/weiju/amiga-stuff synced 2025-12-08 14:58:33 +00:00

moved the map reading function to common

This commit is contained in:
Wei-ju Wu
2016-06-14 20:53:18 -07:00
parent c18ccf30b7
commit 79d09d1184
5 changed files with 71 additions and 89 deletions

View File

@ -18,7 +18,26 @@ struct FetchInfo
WORD scrollpixels;
};
struct RawMap
{
WORD mapwidth;
WORD mapheight;
WORD maplayers;
WORD blockwidth;
WORD blockheight;
BYTE bytesperblock;
BYTE transparentblock;
UBYTE data[1];
};
struct LevelMap {
LONG width, height;
UBYTE *data;
struct RawMap *raw_map;
};
extern ULONG get_mode_id(BOOL option_how, BOOL option_ntsc);
extern BOOL get_arguments(struct PrgOptions *options, char *s);
extern BOOL read_level_map(struct LevelMap *level_map, char *s);
#endif /* __COMMON_H__ */