⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bublbobl.c

📁 十七种模拟器源代码 非常有用的作课程设计不可缺少的
💻 C
字号:
/******************************************************************************//*                                                                            *//*                  BUBBLE BOBBLE (C) 1984 TAITO CORPORATION.                 *//*                                                                            *//*  Driver by Richard Mitton (richard.mitton@bigfoot.com)                     *//*  Similiar hardware is used by Bobble Bobble, and Tokio/Scramble Formation. *//******************************************************************************/#include "gameinc.h"#include "bublbobl.h"#include "sasound.h"		// sample support routines#include "taitosnd.h"#include "2203intf.h"#include "3812intf.h"#ifdef RAINE_DEBUG#include "debug.h"#endif#include "savegame.h"/*changes/spindizzy:- put English/Japanese language switch back (?!)- fixed 2P controls- fixed EXTEND letters- removed VIDEO_INFO struct and inserted SetScreenBitmap() :-P- added sound (YM3812 doesn't work when using Raine functions though,               only using inport/outport directly)- well bugger me. The sound stops once you lose the game. Bummer.- cleaned some bits up- /me thinks it's time Antiriad had a lesson in whitespace/indentation...- AAARGH!! Raine wants the MCU to be able to save it's state! (it doesn't)           Moon on a friggin' stick, that's what you want...- swapped buttons 1/2 for the inputs*//*changes/antiriad:- remove SetScreenBitmap() and insert VIDEO_INFO sturct- fixed it drawing over the edges of the screen bitmap (naughty)! :)- removed procedure calls for common ram access (use raine modified mz80 for  direct access)- changed a few lines here and there (looking for the bug)...- hmm, added 100 cpu slices per frame, and the game seems to run now =)- improved the screen update (flipping, clipping, solid mask data, refresh  palette when needed)- er, stuck in some dsw and inputs, the inputs are far from complete, but  the joystick will work too now anyway :).- fixed ym3812 playing, you have to set multiple soundchips with saaddsound().  don't ask me why, hiroshi coded it this way ;).- added mz80 raine-customized bank switching, no more memcpy :).- bankswitch is updated in loadgame callback.27-August-99:- Added Bobble Bobble and Super Bobble Bobble bootleg sets.- Changed date from 1984 to 1986 (oops!).- Removed up/down from inputs (unused, like rainbow islands).- Cpu slices is now 16 per frame, or the music breaks on the bootlegs.- I think it's safe to remove the FAKE_MCU stuff now 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -