summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2011-03-21 23:53:04 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2011-03-21 23:53:04 +0000
commit0501ea5e896753e70bd7c23effce10d165c4a52d (patch)
treeaaec40a46ef010519a14805e35424a9b9b396547
parent28d3603e7b923dea5b1153586fc16a4fc08b3ae1 (diff)
fixed zigzag sprites: http://www.mametesters.org/view.php?id=1665
-rw-r--r--src/mame/drivers/galaxian.c5
-rw-r--r--src/mame/includes/galaxian.h1
-rw-r--r--src/mame/video/galaxian.c11
3 files changed, 17 insertions, 0 deletions
diff --git a/src/mame/drivers/galaxian.c b/src/mame/drivers/galaxian.c
index 21acf11fdf4..d6a7b1554d4 100644
--- a/src/mame/drivers/galaxian.c
+++ b/src/mame/drivers/galaxian.c
@@ -2122,6 +2122,10 @@ static MACHINE_CONFIG_DERIVED( zigzag, galaxian_base )
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_PROGRAM_MAP(galaxian_map_base) /* no discrete sound */
+ /* video hardware */
+ MCFG_SCREEN_MODIFY("screen")
+ MCFG_SCREEN_UPDATE(zigzag)
+
/* sound hardware */
MCFG_SOUND_ADD("aysnd", AY8910, 1789750)
@@ -2886,6 +2890,7 @@ static DRIVER_INIT( zigzag )
/* video extensions */
common_init(machine, NULL, galaxian_draw_background, NULL, NULL);
+ galaxian_draw_bullet_ptr = NULL;
/* make ROMs 2 & 3 swappable */
memory_install_read_bank(space, 0x2000, 0x2fff, 0, 0, "bank1");
diff --git a/src/mame/includes/galaxian.h b/src/mame/includes/galaxian.h
index 1fbf0d2f2f9..49935c75e7d 100644
--- a/src/mame/includes/galaxian.h
+++ b/src/mame/includes/galaxian.h
@@ -45,6 +45,7 @@ PALETTE_INIT( moonwar );
VIDEO_START( galaxian );
SCREEN_UPDATE( galaxian );
+SCREEN_UPDATE( zigzag );
WRITE8_HANDLER( galaxian_videoram_w );
WRITE8_HANDLER( galaxian_objram_w );
diff --git a/src/mame/video/galaxian.c b/src/mame/video/galaxian.c
index bf00805a688..be19ad68e97 100644
--- a/src/mame/video/galaxian.c
+++ b/src/mame/video/galaxian.c
@@ -516,6 +516,17 @@ SCREEN_UPDATE( galaxian )
}
+SCREEN_UPDATE( zigzag )
+{
+ SCREEN_UPDATE_CALL(galaxian);
+
+ /* zigzag has an extra sprite generator instead of bullets */
+ sprites_draw(screen->machine, bitmap, cliprect, &screen->machine->generic.spriteram.u8[0x60]);
+
+ return 0;
+}
+
+
/*************************************
*