add color overlay

This commit is contained in:
Michaël Banaan Ananas 2012-03-30 00:47:00 +00:00
parent 6868c25d00
commit 6d02b96974
4 changed files with 50 additions and 2 deletions

1
.gitattributes vendored
View file

@ -4074,6 +4074,7 @@ src/mame/layout/polepos.lay svneol=native#text/plain
src/mame/layout/pulltabs.lay svneol=native#text/plain
src/mame/layout/pyramid.lay svneol=native#text/plain
src/mame/layout/quintoon.lay svneol=native#text/plain
src/mame/layout/quizshow.lay svneol=native#text/plain
src/mame/layout/radr.lay svneol=native#text/plain
src/mame/layout/re800.lay svneol=native#text/plain
src/mame/layout/re900.lay svneol=native#text/plain

View file

@ -11,13 +11,16 @@ TODO:
- discrete sound (should be simple to those that know how)
- is timing accurate?
- correct gfx roms
- color overlay
- fix color inverted tiles (8*12 instead of 8*8!)
***************************************************************************/
#include "emu.h"
#include "cpu/s2650/s2650.h"
#include "quizshow.lh"
#define MASTER_CLOCK XTAL_12_096MHz
#define PIXEL_CLOCK (MASTER_CLOCK/2)
@ -408,4 +411,4 @@ ROM_START( quizshow )
ROM_END
GAME( 1976, quizshow, 0, quizshow, quizshow, 0, ROT0, "Atari", "Quiz Show", GAME_NO_SOUND | GAME_NOT_WORKING )
GAMEL( 1976, quizshow, 0, quizshow, quizshow, 0, ROT0, "Atari", "Quiz Show", GAME_NO_SOUND | GAME_NOT_WORKING, layout_quizshow )

View file

@ -0,0 +1,42 @@
<?xml version="1.0"?>
<mamelayout version="2">
<element name="overlay">
<rect>
<bounds left="0" top="0" right="256" bottom="240" />
<color red="1" green="1" blue="1" />
</rect>
<rect>
<bounds left="0" top="28" right="256" bottom="60" />
<color red="1" green="0.2" blue="0.125" />
</rect>
<rect>
<bounds left="0" top="60" right="256" bottom="108" />
<color red="0.125" green="1" blue="0.33" />
</rect>
<rect>
<bounds left="0" top="108" right="256" bottom="140" />
<color red="1" green="0.66" blue="0.125" />
</rect>
<rect>
<bounds left="0" top="140" right="256" bottom="172" />
<color red="0.125" green="0.66" blue="1" />
</rect>
<rect>
<bounds left="0" top="172" right="256" bottom="204" />
<color red="0.66" green="0.125" blue="1" />
</rect>
<rect>
<bounds left="0" top="204" right="256" bottom="240" />
<color red="1" green="1" blue="0.33" />
</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>

View file

@ -2079,6 +2079,8 @@ $(DRIVERS)/polepos.o: $(LAYOUT)/polepos.lh \
$(DRIVERS)/qix.o: $(LAYOUT)/elecyoyo.lh
$(DRIVERS)/quizshow.o: $(LAYOUT)/quizshow.lh
$(DRIVERS)/re900.o: $(LAYOUT)/re900.lh
$(DRIVERS)/roul.o: $(LAYOUT)/roul.lh