mirror of
https://github.com/holub/mame
synced 2025-05-19 12:18:56 +03:00
change from hardcoded palette overlay to layout overlay (also changed hustle from yellow to green: there's only 1 flyer pic that shows greenish yellow images, other flyers are green)
This commit is contained in:
parent
30fee2ea0e
commit
ea0ccbda32
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -3312,6 +3312,7 @@ src/mame/layout/bfm_sc1.lay svneol=native#text/plain
|
||||
src/mame/layout/bfm_sc2.lay svneol=native#text/plain
|
||||
src/mame/layout/bigdeal.lay svneol=native#text/plain
|
||||
src/mame/layout/blckjack.lay svneol=native#text/plain
|
||||
src/mame/layout/blockade.lay svneol=native#text/plain
|
||||
src/mame/layout/buckrog.lay svneol=native#text/plain
|
||||
src/mame/layout/buggybjr.lay svneol=native#text/plain
|
||||
src/mame/layout/buggyboy.lay svneol=native#text/plain
|
||||
|
@ -34,6 +34,8 @@
|
||||
#include "sound/samples.h"
|
||||
#include "sound/discrete.h"
|
||||
|
||||
#include "blockade.lh"
|
||||
|
||||
#define BLOCKADE_LOG 0
|
||||
#define MASTER_CLOCK XTAL_20_079MHz
|
||||
|
||||
@ -439,22 +441,10 @@ static GFXDECODE_START( blasto )
|
||||
GFXDECODE_ENTRY( "gfx1", 0x0000, blasto_layout, 0, 1 )
|
||||
GFXDECODE_END
|
||||
|
||||
|
||||
static PALETTE_INIT( green )
|
||||
static PALETTE_INIT( blockade )
|
||||
{
|
||||
palette_set_color(machine,0,MAKE_RGB(0x00,0x00,0x00)); /* BLACK */
|
||||
palette_set_color(machine,1,MAKE_RGB(0x00,0xff,0x00)); /* GREEN */ /* overlay (Blockade) */
|
||||
}
|
||||
|
||||
static PALETTE_INIT( yellow )
|
||||
{
|
||||
palette_set_color(machine,0,MAKE_RGB(0x00,0x00,0x00)); /* BLACK */
|
||||
palette_set_color(machine,1,MAKE_RGB(0xff,0xff,0x20)); /* YELLOW */ /* overlay (Hustle) */
|
||||
}
|
||||
static PALETTE_INIT( bw )
|
||||
{
|
||||
palette_set_color(machine,0,MAKE_RGB(0x00,0x00,0x00)); /* BLACK */
|
||||
palette_set_color(machine,1,MAKE_RGB(0xff,0xff,0xff)); /* WHITE */ /* Comotion/Blasto */
|
||||
palette_set_color(machine,1,MAKE_RGB(0xff,0xff,0xff)); /* WHITE */
|
||||
}
|
||||
|
||||
|
||||
@ -502,7 +492,7 @@ static MACHINE_CONFIG_START( blockade, blockade_state )
|
||||
MCFG_GFXDECODE(blockade)
|
||||
MCFG_PALETTE_LENGTH(2)
|
||||
|
||||
MCFG_PALETTE_INIT(green)
|
||||
MCFG_PALETTE_INIT(blockade)
|
||||
MCFG_VIDEO_START(blockade)
|
||||
MCFG_VIDEO_UPDATE(blockade)
|
||||
|
||||
@ -518,18 +508,8 @@ static MACHINE_CONFIG_START( blockade, blockade_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( comotion, blockade )
|
||||
MCFG_PALETTE_INIT(bw)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( blasto, blockade )
|
||||
MCFG_GFXDECODE(blasto)
|
||||
MCFG_PALETTE_INIT(bw)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( hustle, blockade )
|
||||
MCFG_GFXDECODE(blasto)
|
||||
MCFG_PALETTE_INIT(yellow)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
/*************************************
|
||||
@ -610,9 +590,9 @@ ROM_END
|
||||
*
|
||||
*************************************/
|
||||
|
||||
GAME( 1976, blockade, 0, blockade, blockade, 0, ROT0, "Gremlin", "Blockade", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
|
||||
GAME( 1976, comotion, 0, comotion, comotion, 0, ROT0, "Gremlin", "Comotion", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
|
||||
GAME( 1978, blasto, 0, blasto, blasto, 0, ROT0, "Gremlin", "Blasto", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
|
||||
GAME( 1977, hustle, 0, hustle, hustle, 0, ROT0, "Gremlin", "Hustle", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
|
||||
GAMEL(1976, blockade, 0, blockade, blockade, 0, ROT0, "Gremlin", "Blockade", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_blockade )
|
||||
GAMEL(1976, comotion, 0, blockade, comotion, 0, ROT0, "Gremlin", "Comotion", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_blockade )
|
||||
GAME( 1978, blasto, 0, blasto, blasto, 0, ROT0, "Gremlin", "Blasto", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) // b/w, no overlay
|
||||
GAMEL(1977, hustle, 0, blasto, hustle, 0, ROT0, "Gremlin", "Hustle", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_blockade )
|
||||
GAME( 1977, mineswpr, 0, blasto, mineswpr, 0, ROT0, "Amutech", "Minesweeper", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
|
||||
GAME( 1977, mineswpr4, mineswpr, blasto, mineswpr4,0, ROT0, "Amutech", "Minesweeper (4-Player)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
|
||||
|
18
src/mame/layout/blockade.lay
Normal file
18
src/mame/layout/blockade.lay
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<mamelayout version="2">
|
||||
<element name="overlay">
|
||||
<rect>
|
||||
<bounds left="0" top="0" right="256" bottom="224" />
|
||||
<color red="0.25" green="1.0" blue="0.125" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<view name="Color Overlay">
|
||||
<screen index="0">
|
||||
<bounds left="0" top="0" right="4" bottom="3" />
|
||||
</screen>
|
||||
<overlay name="overlay" element="overlay">
|
||||
<bounds left="0" top="0" right="4" bottom="3" />
|
||||
</overlay>
|
||||
</view>
|
||||
</mamelayout>
|
@ -1818,6 +1818,8 @@ $(DRIVERS)/bfm_sc2.o: $(LAYOUT)/bfm_sc2.lh \
|
||||
$(LAYOUT)/sltblgpo.lh \
|
||||
$(LAYOUT)/sltblgtk.lh
|
||||
|
||||
$(DRIVERS)/blockade.o: $(LAYOUT)/blockade.lh
|
||||
|
||||
$(DRIVERS)/buggychl.o: $(LAYOUT)/buggychl.lh
|
||||
|
||||
$(DRIVERS)/bzone.o: $(LAYOUT)/bzone.lh
|
||||
|
Loading…
Reference in New Issue
Block a user