📄 pulirula.c
字号:
/******************************************************************************//* *//* PULIRULA (C) 1991 TAITO CORPORATION *//* *//******************************************************************************/#include "gameinc.h"#include "pulirula.h"#include "tc100scn.h"#include "tc200obj.h"#include "tc220ioc.h"#include "sasound.h" // sample support routines#include "taitosnd.h"#ifdef RAINE_DEBUG#include "debug.h"#endif/******************** PULIRULA (WORLD) ********************/static struct DIR_INFO pulirula_dirs[] ={ { "pulirula", }, { NULL, },};static struct ROM_INFO pulirula_roms[] ={ { "c98-06.rom", 0x00020000, 0x64a71b45, 0, 0, 0, }, { "c98-02.rom", 0x00100000, 0x4a2ad2b3, 0, 0, 0, }, { "c98-03.rom", 0x00100000, 0x589a678f, 0, 0, 0, }, { "c98-04.rom", 0x00100000, 0x0e1fe3b2, 0, 0, 0, }, { "c98-05.rom", 0x00080000, 0x9ddd9c39, 0, 0, 0, }, { "c98-01.rom", 0x00100000, 0x197f66f5, 0, 0, 0, }, { "c98-07.rom", 0x00020000, 0x90195bc0, 0, 0, 0, }, { "c98-12.rom", 0x00040000, 0x816d6cde, 0, 0, 0, }, { "c98-14.rom", 0x00020000, 0xa858e17c, 0, 0, 0, }, { "c98-16.rom", 0x00040000, 0x59df5c77, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct INPUT_INFO pulirula_inputs[] ={ { KB_DEF_COIN1, MSG_COIN1, 0x03A10E, 0x04, BIT_ACTIVE_0 }, { KB_DEF_COIN2, MSG_COIN2, 0x03A10E, 0x08, BIT_ACTIVE_0 }, { KB_DEF_TILT, MSG_TILT, 0x03A10E, 0x01, BIT_ACTIVE_0 }, { KB_DEF_SERVICE, MSG_SERVICE, 0x03A10E, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P1_START, MSG_P1_START, 0x03A104, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P1_UP, MSG_P1_UP, 0x03A104, 0x01, BIT_ACTIVE_0 }, { KB_DEF_P1_DOWN, MSG_P1_DOWN, 0x03A104, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P1_LEFT, MSG_P1_LEFT, 0x03A104, 0x04, BIT_ACTIVE_0 }, { KB_DEF_P1_RIGHT, MSG_P1_RIGHT, 0x03A104, 0x08, BIT_ACTIVE_0 }, { KB_DEF_P1_B1, MSG_P1_B1, 0x03A104, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P1_B2, MSG_P1_B2, 0x03A104, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P1_B3, MSG_P1_B3, 0x03A104, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P2_START, MSG_P2_START, 0x03A106, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P2_UP, MSG_P2_UP, 0x03A106, 0x01, BIT_ACTIVE_0 }, { KB_DEF_P2_DOWN, MSG_P2_DOWN, 0x03A106, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P2_LEFT, MSG_P2_LEFT, 0x03A106, 0x04, BIT_ACTIVE_0 }, { KB_DEF_P2_RIGHT, MSG_P2_RIGHT, 0x03A106, 0x08, BIT_ACTIVE_0 }, { KB_DEF_P2_B1, MSG_P2_B1, 0x03A106, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P2_B2, MSG_P2_B2, 0x03A106, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P2_B3, MSG_P2_B3, 0x03A106, 0x40, BIT_ACTIVE_0 }, { 0, NULL, 0, 0, 0 },};static struct DSW_DATA dsw_data_pulirula_0[] ={ { MSG_DSWA_BIT1, 0x01, 0x02 }, { MSG_OFF, 0x01, 0x00 }, { MSG_ON, 0x00, 0x00 }, { MSG_SCREEN, 0x02, 0x02 }, { MSG_NORMAL, 0x02, 0x00 }, { MSG_INVERT, 0x00, 0x00 }, { MSG_TEST_MODE, 0x04, 0x02 }, { MSG_OFF, 0x04, 0x00 }, { MSG_ON, 0x00, 0x00 }, { MSG_DEMO_SOUND, 0x08, 0x02 }, { MSG_ON, 0x08, 0x00 }, { MSG_OFF, 0x00, 0x00 }, { MSG_COIN1, 0x30, 0x04 }, { MSG_1COIN_1PLAY, 0x30, 0x00 }, { MSG_2COIN_1PLAY, 0x20, 0x00 }, { MSG_3COIN_1PLAY, 0x10, 0x00 }, { MSG_4COIN_1PLAY, 0x00, 0x00 }, { MSG_COIN2, 0xC0, 0x04 }, { MSG_1COIN_2PLAY, 0xC0, 0x00 }, { MSG_1COIN_3PLAY, 0x80, 0x00 }, { MSG_2COIN_1PLAY, 0x40, 0x00 }, { MSG_2COIN_3PLAY, 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_DATA dsw_data_pulirula_1[] ={ { MSG_DIFFICULTY, 0x03, 0x04 }, { MSG_NORMAL, 0x03, 0x00 }, { MSG_EASY, 0x02, 0x00 }, { MSG_HARD, 0x01, 0x00 }, { MSG_HARDEST, 0x00, 0x00 }, { "Magic", 0x0C, 0x04 }, { "3", 0x0C, 0x00 }, { "4", 0x08, 0x00 }, { "5", 0x04, 0x00 },// { "5", 0x00, 0x00 }, { MSG_LIVES, 0x30, 0x04 }, { "3", 0x30, 0x00 }, { "2", 0x20, 0x00 }, { "4", 0x10, 0x00 }, { "5", 0x00, 0x00 }, { MSG_DSWB_BIT7, 0x40, 0x02 }, { MSG_OFF, 0x40, 0x00 }, { MSG_ON, 0x00, 0x00 }, { "Upright Controls", 0x80, 0x02 }, { "Dual", 0x80, 0x00 }, { "Single", 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_INFO pulirula_dsw[] ={ { 0x03A100, 0xFF, dsw_data_pulirula_0 }, { 0x03A102, 0xFF, dsw_data_pulirula_1 }, { 0, 0, NULL, },};/*static struct ROMSW_DATA romsw_data_pulirula_0[] ={ { "Taito (Japanese)", 0x01 }, { "Taito America", 0x02 }, { "Taito Japan", 0x03 }, { NULL, 0 },};static struct ROMSW_INFO pulirula_romsw[] ={ { 0x07FFFF, 0x01, romsw_data_pulirula_0 }, { 0, 0, NULL },};*/static struct VIDEO_INFO pulirula_video ={ draw_pulirula, 320, 224, 32, VIDEO_ROTATE_NORMAL| VIDEO_ROTATABLE,};struct GAME_MAIN game_pulirula ={ pulirula_dirs, pulirula_roms, pulirula_inputs, pulirula_dsw, NULL, load_pulirula, clear_pulirula, &pulirula_video, execute_pulirula_frame, "pulirula", "Pulirula", "僾儕儖儔", COMPANY_ID_TAITO, "C98", 1991, taito_ym2610_sound, GAME_BEAT,};/******************** PULIRULA (JAPAN) ********************/static struct DIR_INFO pulirula_jp_dirs[] ={ { "pulirula_jp", }, { "pulirulj", }, { ROMOF("pulirula"), }, { CLONEOF("pulirula"), }, { NULL, },};static struct ROM_INFO pulirula_jp_roms[] ={ { "c98-06.rom", 0x00020000, 0x64a71b45, 0, 0, 0, }, { "c98-02.rom", 0x00100000, 0x4a2ad2b3, 0, 0, 0, }, { "c98-03.rom", 0x00100000, 0x589a678f, 0, 0, 0, }, { "c98-04.rom", 0x00100000, 0x0e1fe3b2, 0, 0, 0, }, { "c98-05.rom", 0x00080000, 0x9ddd9c39, 0, 0, 0, }, { "c98-01.rom", 0x00100000, 0x197f66f5, 0, 0, 0, }, { "c98-07.rom", 0x00020000, 0x90195bc0, 0, 0, 0, }, { "c98-12.rom", 0x00040000, 0x816d6cde, 0, 0, 0, }, { "c98-14.rom", 0x00020000, 0xa858e17c, 0, 0, 0, }, { "c98-13", 0x00040000, 0xb7d13d5b, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct DSW_DATA dsw_data_pulirula_jp_0[] ={ { MSG_DSWA_BIT1, 0x01, 0x02 }, { MSG_OFF, 0x01, 0x00 }, { MSG_ON, 0x00, 0x00 }, { MSG_SCREEN, 0x02, 0x02 }, { MSG_NORMAL, 0x02, 0x00 }, { MSG_INVERT, 0x00, 0x00 }, { MSG_TEST_MODE, 0x04, 0x02 }, { MSG_OFF, 0x04, 0x00 }, { MSG_ON, 0x00, 0x00 }, { MSG_DEMO_SOUND, 0x08, 0x02 }, { MSG_ON, 0x08, 0x00 }, { MSG_OFF, 0x00, 0x00 }, { MSG_COIN1, 0x30, 0x04 }, { MSG_1COIN_1PLAY, 0x30, 0x00 }, { MSG_1COIN_2PLAY, 0x20, 0x00 }, { MSG_2COIN_1PLAY, 0x10, 0x00 }, { MSG_3COIN_1PLAY, 0x00, 0x00 }, { MSG_COIN2, 0xC0, 0x04 }, { MSG_1COIN_1PLAY, 0xC0, 0x00 }, { MSG_1COIN_2PLAY, 0x80, 0x00 }, { MSG_2COIN_1PLAY, 0x40, 0x00 }, { MSG_3COIN_1PLAY, 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_INFO pulirula_jp_dsw[] ={ { 0x03A100, 0xFF, dsw_data_pulirula_jp_0 }, { 0x03A102, 0xFF, dsw_data_pulirula_1 }, { 0, 0, NULL, },};struct GAME_MAIN game_pulirula_jp ={ pulirula_jp_dirs, pulirula_jp_roms, pulirula_inputs, pulirula_jp_dsw, NULL, load_pulirula, clear_pulirula, &pulirula_video, execute_pulirula_frame, "pulirulj", "Pulirula (Japan)", "僾儕儖儔", COMPANY_ID_TAITO, "C98", 1991, taito_ym2610_sound, GAME_BEAT,};static UINT8 *RAM_VIDEO;static UINT8 *RAM_SCROLL;static UINT8 *RAM_OBJECT;static UINT8 *RAM_COLOUR;static UINT8 *RAM_INPUT;static UINT8 *GFX_BG0;static UINT8 *GFX_BG0_SOLID;static UINT8 *GFX_SPR;static UINT8 *GFX_SPR_SOLID;static void BadWriteWord(UINT32 address, UINT16 data){#ifdef RAINE_DEBUG if(address!=0xA00000) print_debug("Ww(%06x,%04x) [%06x]\n",address,data,s68000context.pc);#endif}void load_pulirula(void){
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -