📄 rainbow.c
字号:
/******************************************************************************//* *//* RAINBOW ISLANDS/EXTRA (C) 1988 TAITO CORPORATION *//* *//******************************************************************************/#include "gameinc.h"#include "rainbow.h"#include "tc100scn.h"#include "tc002obj.h"#include "sasound.h" // sample support routines#include "taitosnd.h"#include "2203intf.h"#ifdef RAINE_DEBUG#include "debug.h"#endifstatic struct DIR_INFO jumping_islands_dirs[] ={ { "jumping_islands", }, { "jumping", }, { ROMOF("rainbow"), }, { CLONEOF("rainbow"), }, { NULL, },};static struct ROM_INFO jumping_islands_roms[] ={ { "ri_m03.rom", 0x00020000, 0x3ebb0fb8, 0, 0, 0, }, { "ri_m04.rom", 0x00020000, 0x91625e7f, 0, 0, 0, }, { "jb1_cd67", 0x00010000, 0x8527c00e, 0, 0, 0, }, { "jb1_f89", 0x00010000, 0x0810d327, 0, 0, 0, }, { "jb1_h4", 0x00010000, 0x3fab6b31, 0, 0, 0, }, { "jb1_h8", 0x00010000, 0x8c878827, 0, 0, 0, }, { "jb1_i4", 0x00010000, 0x443492cf, 0, 0, 0, }, { "jb1_i8", 0x00010000, 0xed33bae1, 0, 0, 0, }, { "jb2_ic14", 0x00010000, 0x9fdc6c8e, 0, 0, 0, }, { "jb2_ic13", 0x00010000, 0x06226492, 0, 0, 0, }, { "jb2_ic12", 0x00010000, 0x312700ca, 0, 0, 0, }, { "jb2_ic11", 0x00010000, 0xde3b0b88, 0, 0, 0, }, { "jb2_ic10", 0x00010000, 0xe61933fb, 0, 0, 0, }, { "jb2_ic9", 0x00010000, 0xed031eb2, 0, 0, 0, }, { "jb2_ic8", 0x00010000, 0x65b76309, 0, 0, 0, }, { "jb2_ic7", 0x00010000, 0x43a94283, 0, 0, 0, }, { "jb2_ic78", 0x00010000, 0x925865e1, 0, 0, 0, }, { "jb2_ic77", 0x00010000, 0xb09695d1, 0, 0, 0, }, { "jb2_ic76", 0x00008000, 0x41937743, 0, 0, 0, }, { "jb2_i119", 0x00008000, 0x7e1d58d8, 0, 0, 0, }, { "jb2_i120", 0x00010000, 0x7c4e893b, 0, 0, 0, }, { "jb2_i121", 0x00010000, 0x93df1e4d, 0, 0, 0, }, { "jb2_ic62", 0x00010000, 0x8548db6c, 0, 0, 0, }, { "jb2_ic61", 0x00010000, 0x37c5923b, 0, 0, 0, }, { "jb2_ic93", 0x00010000, 0xf644eeab, 0, 0, 0, }, { "jb2_ic92", 0x00010000, 0x3fbccd33, 0, 0, 0, }, { "jb2_ic91", 0x00008000, 0xd886c014, 0, 0, 0, }, { "jb2_ic60", 0x00008000, 0x662a2f1e, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct INPUT_INFO jumping_islands_inputs[] ={ { KB_DEF_COIN1, MSG_COIN1, 0x01B104, 0x01, BIT_ACTIVE_0 }, { KB_DEF_COIN2, MSG_COIN2, 0x01B104, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P1_START, MSG_P1_START, 0x01B104, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P1_LEFT, MSG_P1_LEFT, 0x01B106, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P1_RIGHT, MSG_P1_RIGHT, 0x01B106, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P1_B1, MSG_P1_B1, 0x01B106, 0x02, BIT_ACTIVE_0 }, { KB_DEF_P1_B2, MSG_P1_B2, 0x01B106, 0x04, BIT_ACTIVE_0 }, { KB_DEF_P2_START, MSG_P2_START, 0x01B104, 0x20, BIT_ACTIVE_0 }, { 0, NULL, 0, 0, 0 },};static struct DSW_DATA dsw_data_jumping_islands_0[] ={ { "Game Style", 0x01, 0x02 }, { "Cocktail", 0x01, 0x00 }, { "Upright", 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_1COIN_4PLAY, 0x40, 0x00 }, { MSG_1COIN_6PLAY, 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_DATA dsw_data_jumping_islands_1[] ={ { MSG_DIFFICULTY, 0x03, 0x04 }, { "B", 0x03, 0x00 }, { "C", 0x02, 0x00 }, { "D", 0x01, 0x00 }, { "A", 0x00, 0x00 }, { "Bonus", 0x04, 0x02 }, { "100k/1000k", 0x04, 0x00 }, { "None", 0x00, 0x00 }, { "Complete Bonus", 0x08, 0x02 }, { "1Up", 0x08, 0x00 }, { "None", 0x00, 0x00 }, { "Lives", 0x30, 0x04 }, { "3", 0x30, 0x00 }, { "1", 0x20, 0x00 }, { "4", 0x10, 0x00 }, { "2", 0x00, 0x00 }, { "Language", 0x40, 0x02 }, { "Japanese", 0x40, 0x00 }, { "English", 0x00, 0x00 }, { "Coin Type", 0x80, 0x02 }, { "Type 1", 0x80, 0x00 }, { "Type 2", 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_INFO jumping_islands_dsw[] ={ { 0x01B100, 0xFF, dsw_data_jumping_islands_0 }, { 0x01B102, 0xBF, dsw_data_jumping_islands_1 }, { 0, 0, NULL, },};static struct VIDEO_INFO rainbow_islands_video ={ DrawRainbow, 320, 224, 32, VIDEO_ROTATE_NORMAL,};static struct YM2203interface ym2203_interface ={ 2, 4000000, { 0x00ff2040, 0x00ff2040 }, { 0 }, { 0 }, { NULL, NULL }, { NULL, NULL }, { NULL, NULL }};struct SOUND_INFO jumping_sound[] ={ { SOUND_YM2203, &ym2203_interface, }, { 0, NULL, },};struct GAME_MAIN game_jumping_islands ={ jumping_islands_dirs, jumping_islands_roms, jumping_islands_inputs, jumping_islands_dsw, NULL, LoadJumping, ClearRainbow, &rainbow_islands_video, ExecuteRainbowFrame, "jumping", "Jumping Islands", "僕儍儞僺儞僌傾僀儔儞僪", COMPANY_ID_BOOTLEG, NULL, 1989, jumping_sound, GAME_PLATFORM,};static struct DIR_INFO rainbow_islands_dirs[] ={ { "rainbow_islands", }, { "rainbow", }, { NULL, },};static struct ROM_INFO rainbow_islands_roms[] ={ { "ri_m01.rom", 0x00080000, 0xb76c9168, 0, 0, 0, }, { "ri_m02.rom", 0x00080000, 0x1b87ecf0, 0, 0, 0, }, { "ri_m03.rom", 0x00020000, 0x3ebb0fb8, 0, 0, 0, }, { "ri_m04.rom", 0x00020000, 0x91625e7f, 0, 0, 0, }, { "b22-08", 0x00010000, 0x962fb845, 0, 0, 0, }, { "b22-09", 0x00010000, 0xf43efa27, 0, 0, 0, }, { "b22-10", 0x00010000, 0x3b013495, 0, 0, 0, }, { "b22-11", 0x00010000, 0x80041a3d, 0, 0, 0, }, { "b22-12", 0x00010000, 0x67a76dc6, 0, 0, 0, }, { "b22-13", 0x00010000, 0x2fda099f, 0, 0, 0, }, { "b22-14", 0x00010000, 0x113c1a5b, 0, 0, 0, }, { "jb1_f89", 0x00010000, 0x0810d327, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};static struct INPUT_INFO rainbow_islands_inputs[] ={ { KB_DEF_COIN1, MSG_COIN1, 0x020009, 0x01, BIT_ACTIVE_1 }, { KB_DEF_COIN2, MSG_COIN2, 0x020009, 0x02, BIT_ACTIVE_1 }, { KB_DEF_TILT, MSG_TILT, 0x02000B, 0x01, BIT_ACTIVE_0 }, { KB_DEF_SERVICE, MSG_SERVICE, 0x020007, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P1_START, MSG_P1_START, 0x020007, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P1_LEFT, MSG_P1_LEFT, 0x02000B, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P1_RIGHT, MSG_P1_RIGHT, 0x02000B, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P1_B1, MSG_P1_B1, 0x02000B, 0x40, BIT_ACTIVE_0 }, { KB_DEF_P1_B2, MSG_P1_B2, 0x02000B, 0x80, BIT_ACTIVE_0 }, { KB_DEF_P2_START, MSG_P2_START, 0x020007, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P2_LEFT, MSG_P2_LEFT, 0x02000D, 0x08, BIT_ACTIVE_0 }, { KB_DEF_P2_RIGHT, MSG_P2_RIGHT, 0x02000D, 0x10, BIT_ACTIVE_0 }, { KB_DEF_P2_B1, MSG_P2_B1, 0x02000D, 0x20, BIT_ACTIVE_0 }, { KB_DEF_P2_B2, MSG_P2_B2, 0x02000D, 0x40, BIT_ACTIVE_0 }, { 0, NULL, 0, 0, 0 },};static struct DSW_DATA dsw_data_rainbow_islands_0[] ={ { "Game Style", 0x01, 0x02 }, { "Cocktail", 0x01, 0x00 }, { "Upright", 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_1COIN_4PLAY, 0x40, 0x00 }, { MSG_1COIN_6PLAY, 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_DATA dsw_data_rainbow_islands_1[] ={ { MSG_DIFFICULTY, 0x03, 0x04 }, { "B", 0x03, 0x00 }, { "C", 0x02, 0x00 }, { "D", 0x01, 0x00 }, { "A", 0x00, 0x00 }, { "Bonus", 0x04, 0x02 }, { "100k/1000k", 0x04, 0x00 }, { "None", 0x00, 0x00 }, { "Complete Bonus", 0x08, 0x02 }, { "1Up", 0x08, 0x00 }, { "None", 0x00, 0x00 }, { "Lives", 0x30, 0x04 }, { "3", 0x30, 0x00 }, { "1", 0x20, 0x00 }, { "4", 0x10, 0x00 }, { "2", 0x00, 0x00 }, { "Language", 0x40, 0x02 }, { "Japanese", 0x40, 0x00 }, { "English", 0x00, 0x00 }, { "Coin Type", 0x80, 0x02 }, { "Type 1", 0x80, 0x00 }, { "Type 2", 0x00, 0x00 }, { NULL, 0, 0, },};static struct DSW_INFO rainbow_islands_dsw[] ={ { 0x01B012, 0xFF, dsw_data_rainbow_islands_0 }, { 0x01B014, 0xBF, dsw_data_rainbow_islands_1 }, { 0, 0, NULL, },};static struct ROMSW_DATA romsw_data_rainbow_islands_0[] ={ { "Taito America", 0x01 }, { "Taito Japan", 0x02 }, { "Taito America (Romstar)", 0x03 }, { "Taito Worldwide (Phoenix)", 0x04 }, { "Taito Worldwide", 0x05 }, { NULL, 0 },};static struct ROMSW_INFO rainbow_islands_romsw[] ={ { 0x02FFFF, 0x00, romsw_data_rainbow_islands_0 }, { 0, 0, NULL },};struct GAME_MAIN game_rainbow_islands ={ rainbow_islands_dirs, rainbow_islands_roms, rainbow_islands_inputs, rainbow_islands_dsw, rainbow_islands_romsw, LoadRainbow, ClearRainbow, &rainbow_islands_video, ExecuteRainbowFrame, "rainbow", "Rainbow Islands", "儗僀儞儃乕傾僀儔儞僪", COMPANY_ID_TAITO, "B22", 1987, taito_ym2151_sound, GAME_PLATFORM,};static struct DIR_INFO rainbow_islands_alt_dirs[] ={ { "rainbow_islands_alt", }, { "rainbowa", }, { ROMOF("rainbow"), }, { CLONEOF("rainbow"), }, { NULL, },};static struct ROM_INFO rainbow_islands_alt_roms[] ={ { "ri_m01.rom", 0x00080000, 0xb76c9168, 0, 0, 0, }, { "ri_m02.rom", 0x00080000, 0x1b87ecf0, 0, 0, 0, }, { "ri_m03.rom", 0x00020000, 0x3ebb0fb8, 0, 0, 0, }, { "ri_m04.rom", 0x00020000, 0x91625e7f, 0, 0, 0, }, { "b22_08-1", 0x00010000, 0x15d6e17a, 0, 0, 0, }, { "b22_09-1", 0x00010000, 0x454e66bc, 0, 0, 0, }, { "b22_10-1", 0x00010000, 0xe34a50ca, 0, 0, 0, }, { "b22_11-1", 0x00010000, 0x6a31a093, 0, 0, 0, }, { "b22-12", 0x00010000, 0x67a76dc6, 0, 0, 0, }, { "b22-13", 0x00010000, 0x2fda099f, 0, 0, 0, }, { "b22-14", 0x00010000, 0x113c1a5b, 0, 0, 0, }, { "jb1_f89", 0x00010000, 0x0810d327, 0, 0, 0, }, { NULL, 0, 0, 0, 0, 0, },};struct GAME_MAIN game_rainbow_islands_alt ={ rainbow_islands_alt_dirs, rainbow_islands_alt_roms, rainbow_islands_inputs, rainbow_islands_dsw, rainbow_islands_romsw, LoadRainbowA, ClearRainbow, &rainbow_islands_video, ExecuteRainbowFrame, "rainbowa", "Rainbow Islands (alternate)", "儗僀儞儃乕傾僀儔儞僪", COMPANY_ID_TAITO, "B22", 1987, taito_ym2151_sound, GAME_PLATFORM,};static struct DIR_INFO rainbow_islands_extra_dirs[] ={ { "rainbow_islands_extra", }, { "rainbowe", }, { ROMOF("rainbow"), }, { CLONEOF("rainbow"), }, { NULL, },};static struct ROM_INFO rainbow_islands_extra_roms[] ={
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -