Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
55 lines (43 sloc)
1.27 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef _MAP_H | |
| #define _MAP_H | |
| #define MAP_W 26 | |
| #define MAP_H 26 | |
| #define MAP_X 2 | |
| #define MAP_Y 1 | |
| #define MAP_PIXEL_X (MAP_X << 3) | |
| #define MAP_PIXEL_Y (MAP_Y << 3) | |
| #define MAP_LEN (MAP_W * MAP_H) | |
| #define MAP_COMPRESSED_LEN ((MAP_LEN/4+1)/2) | |
| #define MAP_GAMEMODE_FALSE 0 | |
| #define MAP_GAMEMODE_COMPRESSED 1 | |
| #define MAP_GAMEMODE_UNCOMPRESSED 2 | |
| #define MAP_START_MENU 0 | |
| #define MAP_GAMEOVER 1 | |
| #define MAP_SCORE1 2 | |
| #define MAP_SCORE2 3 | |
| #define MAP_GAME_MAP 4 | |
| #define MAP_AVAILABLE 35 | |
| //#define MAP_COUNT 70 | |
| #define START_X_PL_A 8 | |
| #define START_Y_PL_A 24 | |
| #define START_X_PL_B 16 | |
| #define START_Y_PL_B 24 | |
| #define START_X_EN_A 0 | |
| #define START_X_EN_B (MAP_W / 2 - 1) | |
| #define START_X_EN_C (MAP_W - 2) | |
| #define START_X_ST 12 | |
| #define START_Y_ST 24 | |
| extern const u8 map_objects[]; | |
| extern u16 current_map[]; | |
| void setMap(VDPPlan plan, const u8 *map, u8 game_mode); | |
| void setMapEx(VDPPlan plan, const u8 *map, u8 game_mode, u8 fake); | |
| void setFakeMap(const u8 *map, u8 game_mode); | |
| void setMapLevel(u8 lvl); | |
| void setFakeMapLevel(u8 lvl); | |
| void setMapsData(const u8 *map); | |
| void mapSetTile(u16 val, u8 x, u8 y); | |
| u16 mapGetTile(u16 x, u16 y); | |
| void mapRepaint(); | |
| void openScreenEffect(); | |
| void closeScreenEffect(); | |
| #endif /* _MAP_H */ | |