hh_tms1k: added svg layout for einvader (nw)

This commit is contained in:
hap 2017-01-18 17:11:35 +01:00
parent 2d742ef130
commit 0fac76b27a
2 changed files with 24 additions and 71 deletions

View File

@ -158,7 +158,7 @@
#include "ebball3.lh"
#include "ebaskb2.lh"
#include "efootb4.lh"
#include "einvader.lh" // test-layout(but still playable)
#include "einvader.lh"
#include "elecbowl.lh"
#include "elecdet.lh"
#include "esbattle.lh"
@ -2901,8 +2901,6 @@ MACHINE_CONFIG_END
TMS1100, the second more widespread release runs on a COP400. There are
also differences with the overlay mask.
NOTE!: MAME external artwork is required
***************************************************************************/
class einvader_state : public hh_tms1k_state
@ -2990,6 +2988,11 @@ static MACHINE_CONFIG_START( einvader, einvader_state )
MCFG_TMS1XXX_WRITE_R_CB(WRITE16(einvader_state, write_r))
MCFG_TMS1XXX_WRITE_O_CB(WRITE16(einvader_state, write_o))
/* video hardware */
MCFG_SCREEN_SVG_ADD("screen", "svg")
MCFG_SCREEN_REFRESH_RATE(50)
MCFG_SCREEN_SIZE(939, 1080)
MCFG_SCREEN_VISIBLE_AREA(0, 939-1, 0, 1080-1)
MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_tms1k_state, display_decay_tick, attotime::from_msec(1))
MCFG_DEFAULT_LAYOUT(layout_einvader)
@ -8038,6 +8041,9 @@ ROM_START( einvader )
ROM_LOAD( "tms1100_common2_micro.pla", 0, 867, CRC(7cc90264) SHA1(c6e1cf1ffb178061da9e31858514f7cd94e86990) )
ROM_REGION( 365, "maincpu:opla", 0 )
ROM_LOAD( "tms1100_einvader_output.pla", 0, 365, CRC(490158e1) SHA1(61cace1eb09244663de98d8fb04d9459b19668fd) )
ROM_REGION( 44398, "svg", 0)
ROM_LOAD( "einvader.svg", 0, 44398, CRC(48de88fd) SHA1(56a2b9c997a447277b45902ab542eda54e7d5a2f) ) // by hap, ver. 23 mar 2016
ROM_END
@ -8528,7 +8534,7 @@ CONS( 1979, ebball, 0, 0, ebball, ebball, driver_device, 0, "Ent
CONS( 1979, ebball2, 0, 0, ebball2, ebball2, driver_device, 0, "Entex", "Electronic Baseball 2 (Entex)", MACHINE_SUPPORTS_SAVE )
CONS( 1980, ebball3, 0, 0, ebball3, ebball3, driver_device, 0, "Entex", "Electronic Baseball 3 (Entex)", MACHINE_SUPPORTS_SAVE )
CONS( 1979, esbattle, 0, 0, esbattle, esbattle, driver_device, 0, "Entex", "Space Battle (Entex)", MACHINE_SUPPORTS_SAVE )
CONS( 1980, einvader, 0, 0, einvader, einvader, driver_device, 0, "Entex", "Space Invader (Entex, TMS1100 version)", MACHINE_SUPPORTS_SAVE | MACHINE_REQUIRES_ARTWORK )
CONS( 1980, einvader, 0, 0, einvader, einvader, driver_device, 0, "Entex", "Space Invader (Entex, TMS1100 version)", MACHINE_SUPPORTS_SAVE )
CONS( 1980, efootb4 , 0, 0, efootb4, efootb4, driver_device, 0, "Entex", "Color Football 4 (Entex)", MACHINE_SUPPORTS_SAVE )
CONS( 1980, ebaskb2 , 0, 0, ebaskb2, ebaskb2, driver_device, 0, "Entex", "Electronic Basketball 2 (Entex)", MACHINE_SUPPORTS_SAVE )
CONS( 1980, raisedvl, 0, 0, raisedvl, raisedvl, driver_device, 0, "Entex", "Raise The Devil", MACHINE_SUPPORTS_SAVE )

View File

@ -4,82 +4,29 @@
<!-- define elements -->
<element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element>
<element name="static_white"><rect><color red="0.8" green="0.8" blue="0.8" /></rect></element>
<element name="text_score"><text string="SCORE"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="digit" defstate="0">
<led7seg><color red="1.0" green="0.20" blue="0.22" /></led7seg>
</element>
<element name="led" defstate="0">
<disk state="0"><color red="0.2" green="0.04" blue="0.05" /></disk>
<disk state="1"><color red="1.0" green="0.20" blue="0.22" /></disk>
<led7seg><color red="1.0" green="0.165" blue="0.165" /></led7seg>
</element>
<!-- build screen -->
<view name="Test Layout">
<bounds left="0" right="12" top="0" bottom="28" />
<bezel element="static_black">
<bounds left="0" right="12" top="0" bottom="28" />
</bezel>
<view name="Internal Layout">
<bounds left="-0.1" right="20.1" top="4.6" bottom="33.1" />
<screen index="0">
<bounds x="0" y="10" width="20" height="23" />
</screen>
<bezel name="digit9" element="digit"><bounds x="0" y="0" width="4" height="6" /></bezel>
<bezel name="digit8" element="digit"><bounds x="4" y="0" width="4" height="6" /></bezel>
<bezel name="digit7" element="digit"><bounds x="8" y="0" width="4" height="6" /></bezel>
<!-- led matrix -->
<bezel name="lamp0" element="led"><bounds x="0" y="10" width="1" height="1" /></bezel>
<bezel name="lamp1" element="led"><bounds x="2" y="10" width="1" height="1" /></bezel>
<bezel name="lamp2" element="led"><bounds x="4" y="10" width="1" height="1" /></bezel>
<bezel name="lamp3" element="led"><bounds x="6" y="10" width="1" height="1" /></bezel>
<bezel name="lamp4" element="led"><bounds x="8" y="10" width="1" height="1" /></bezel>
<bezel name="lamp5" element="led"><bounds x="10" y="10" width="1" height="1" /></bezel>
<bezel name="lamp10" element="led"><bounds x="0" y="12" width="1" height="1" /></bezel>
<bezel name="lamp11" element="led"><bounds x="2" y="12" width="1" height="1" /></bezel>
<bezel name="lamp12" element="led"><bounds x="4" y="12" width="1" height="1" /></bezel>
<bezel name="lamp13" element="led"><bounds x="6" y="12" width="1" height="1" /></bezel>
<bezel name="lamp14" element="led"><bounds x="8" y="12" width="1" height="1" /></bezel>
<bezel name="lamp15" element="led"><bounds x="10" y="12" width="1" height="1" /></bezel>
<bezel name="lamp20" element="led"><bounds x="0" y="14" width="1" height="1" /></bezel>
<bezel name="lamp21" element="led"><bounds x="2" y="14" width="1" height="1" /></bezel>
<bezel name="lamp22" element="led"><bounds x="4" y="14" width="1" height="1" /></bezel>
<bezel name="lamp23" element="led"><bounds x="6" y="14" width="1" height="1" /></bezel>
<bezel name="lamp24" element="led"><bounds x="8" y="14" width="1" height="1" /></bezel>
<bezel name="lamp25" element="led"><bounds x="10" y="14" width="1" height="1" /></bezel>
<bezel name="lamp30" element="led"><bounds x="0" y="16" width="1" height="1" /></bezel>
<bezel name="lamp31" element="led"><bounds x="2" y="16" width="1" height="1" /></bezel>
<bezel name="lamp32" element="led"><bounds x="4" y="16" width="1" height="1" /></bezel>
<bezel name="lamp33" element="led"><bounds x="6" y="16" width="1" height="1" /></bezel>
<bezel name="lamp34" element="led"><bounds x="8" y="16" width="1" height="1" /></bezel>
<bezel name="lamp35" element="led"><bounds x="10" y="16" width="1" height="1" /></bezel>
<bezel name="lamp40" element="led"><bounds x="0" y="18" width="1" height="1" /></bezel>
<bezel name="lamp41" element="led"><bounds x="2" y="18" width="1" height="1" /></bezel>
<bezel name="lamp42" element="led"><bounds x="4" y="18" width="1" height="1" /></bezel>
<bezel name="lamp43" element="led"><bounds x="6" y="18" width="1" height="1" /></bezel>
<bezel name="lamp44" element="led"><bounds x="8" y="18" width="1" height="1" /></bezel>
<bezel name="lamp45" element="led"><bounds x="10" y="18" width="1" height="1" /></bezel>
<bezel name="lamp50" element="led"><bounds x="0" y="20" width="1" height="1" /></bezel>
<bezel name="lamp51" element="led"><bounds x="2" y="20" width="1" height="1" /></bezel>
<bezel name="lamp52" element="led"><bounds x="4" y="20" width="1" height="1" /></bezel>
<bezel name="lamp53" element="led"><bounds x="6" y="20" width="1" height="1" /></bezel>
<bezel name="lamp54" element="led"><bounds x="8" y="20" width="1" height="1" /></bezel>
<bezel name="lamp55" element="led"><bounds x="10" y="20" width="1" height="1" /></bezel>
<bezel name="lamp6" element="led"><bounds x="2" y="22" width="1" height="1" /></bezel>
<bezel name="lamp7" element="led"><bounds x="8" y="22" width="1" height="1" /></bezel>
<bezel name="lamp60" element="led"><bounds x="0" y="24" width="1" height="1" /></bezel>
<bezel name="lamp61" element="led"><bounds x="2" y="24" width="1" height="1" /></bezel>
<bezel name="lamp62" element="led"><bounds x="4" y="24" width="1" height="1" /></bezel>
<bezel name="lamp63" element="led"><bounds x="6" y="24" width="1" height="1" /></bezel>
<bezel name="lamp64" element="led"><bounds x="8" y="24" width="1" height="1" /></bezel>
<bezel name="lamp65" element="led"><bounds x="10" y="24" width="1" height="1" /></bezel>
<bezel element="static_white"><bounds x="6.6" y="4.59" width="6.8" height="3.81" /></bezel>
<bezel element="static_black"><bounds x="6.8" y="4.8" width="6.4" height="3.4" /></bezel>
<bezel element="text_score"><bounds x="2" y="5.75" width="4.6" height="1.5" /></bezel>
<bezel name="digit9" element="digit"><bounds x="7" y="5" width="2" height="3" /></bezel>
<bezel name="digit8" element="digit"><bounds x="9" y="5" width="2" height="3" /></bezel>
<bezel name="digit7" element="digit"><bounds x="11" y="5" width="2" height="3" /></bezel>
</view>
</mamelayout>