Capcom CPS-1 Frog Feast source code
I've decided to release the source code to Frog Feast for the Capcom CPS-1. I've benefited from the
source code released by many people in the arcade development community, and would like to give back
to the community.
To compile the code, you will need to download the stripped down NeoDev
compiler. This must be extracted to "C:\" or the makefiles will need
to be modified.
Included in the NeoDev package are Bin2elf and Gcc2Ms.
Bin2elf converts any file to an elf object file. This is used for the graphics and maps.
Gcc2Ms (by Loser) allows the error messages to be
properly displayed in Visual Studio.
If you are not using Visual Studio 6, you will also need to download
nmake.
You will also need to download a copy of
SNASM68K. This needs to be
placed somewhere in your path.
If the build fails, ensure there is a Debug Folder in the CPS1Src directory and ensure there is a
ffight folder in the \Mame\Roms directory.
To convert the graphics, you will need the Capcom CPS-1 tools. This
converts files from PCX and Mappy to formats used
on the Capcom CPS-1.
These need to be placed somewhere in your path. The "NeoDev\bin\" directory would be a good
choice.
All of the sound stuff was done with
Cool Edit Pro, but any audio editor should work.
The audio files are converted to a 16 bit 8000 hz 4 Bit Dialogic ADPCM format.
To build the game you will need to:
- Add the "NeoDev\bin" directory to your path. This can be down with the setmvs.bat in the
NeoDev directory.
- Change to the source directory and run "gfxmake.bat". You will need the above mentioned tools
in your path.
- Run "gfx.bat". This requires that Bin2Elf.exe be you path.
- Run "snd.bat". This requires that Bin2Elf.exe be you path.
- Compile the source code using either Visual Studio or NMAKE. You need to do a rebuild all if
changes are made to "GamePlay.c" or "GamePlay.h" or any related header files. The debug build is
the only valid build, as the release build wasn't updated.
To build with NMAKE, type "nmake FrogDebug.mak". To rebuild all, delete the files in the "Debug"
directory.
- To test the code, run it under
MAME.
To create replacement screens, for Screen1 or Background, under Mappy:
- Create a new screen1 or background map:
Each tile is 32 pixels wide and 32 pixels high
The map is 12 tiles wide and 7 tiles high.
Colours is Paletted (8bit).
- Under Map Tools->Useful Functions select "Create map from big picture".
Select a 384x224 image with a color depth of 16 colors. Mappy may require that the image contain
256 colors, but only the first 16 can be used.
- Save As "CPS1Src\Graphics\Screenname.map".
The filename should be "Screen1.map" or "Back.map".
- Export tiles by selecting "File->Export..."
Check Graphics Blocks as picture (?.BMP).
Enter 16 Blocks a row (optional)
Check Skip block 0.
Click "OK".
- To add the new picture into the game:
Run "gfxmake.bat"
Run "gfx.bat"
Do a rebuild all on the source code.
To create replacement screens, for the Title, under Mappy:
- Create a new map:
Each tile is 16 pixels wide and 16 pixels high
The map is 24 tiles wide and 14 tiles high.
Colours is Paletted (8bit).
- Under Map Tools->Useful Functions select "Create map from big picture".
Select a 384x224 image with a color depth of 16 colors. Mappy may require that the image contain
256 colors, but only the first 16 can be used.
- Save As "CPS1Src\Graphics\Screenname.map".
The filename should be "title.map".
- Export tiles by selecting "File->Export..."
Check Graphics Blocks as picture (?.BMP).
Enter 16 Blocks a row (optional)
Check Skip block 0.
Click "OK".
- To add the new picture into the game:
Run "gfxmake.bat"
Run "gfx.bat"
Do a rebuild all on the source code.
Download the source code.
The source code for Capcom CPS-1 Frog Feast is copyright 2006 by Charles Doty.
You may use any/all of the enclosed code in any freeware/commercial
application. You can also create and distribute a modified version of Frog Feast.
I would appreciate a credit in your product, but it is not required.
Copyright 2005-10 RasterSoft