summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author Robert Hildinger <rdh_pub@me.com>2019-11-03 03:16:45 -0600
committer Vas Crabb <cuavas@users.noreply.github.com>2019-11-03 20:16:45 +1100
commit74ade68194006625397f4ef8aa1fdf223d633ba3 (patch)
treee5b12ef937d27d4f0304e91a6ff4d2a7f622c4b2 /scripts
parent3cc8a8558057991df4da0c3ace1966ce59c64f0b (diff)
galaga: Implement accurate starfield based on reverse eng. 05xx (#5824)
* galaga: Implement accurate starfield based on reverse eng. 05xx ---------------------------------------------------------------- This commit implements an accurate starfield for Galaga and Bosconian based on reverse engineering the Namco 05xx chip. Documentation and notes have been added inline to the code for the galaga video driver. Changes in this commit: 1. Regenerates starfield colors based on LFSR state for every frame 2. Pixel accurate to Namco original 05xx 3. Restores one line horizontal starfield shift for every 256 vertical pixel shifts 4. Properly handles LFSR reset (_STARCLR) 5. Restores missing 4 stars from previous implementations 6. Fixes potential issue with the number of stars on screen at any one time 7. Restores 4 pixel/line scrolling capability (not currently used for any driver) * galaga: inplement accurate starfield - change request 1 ------------------------------------------------------- 1. Remove stdlib.h from src/mame/video/galaga.cpp * galaga: inplement accurate starfield - change request 2 ------------------------------------------------------- 1. Refactor starfield generator into stand-alone video device 2. Simplify Bosconian and Galaga video drivers 3. Add in documentation about different LFSR form used by Wolfgang Scherr and Jindřich Makovička. * galaga: inplement accurate starfield - change request 3 --------------------------------------------------------- Minor changes from pull request review
Diffstat (limited to 'scripts')
-rw-r--r--scripts/target/mame/arcade.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/target/mame/arcade.lua b/scripts/target/mame/arcade.lua
index e3254b6b096..b4a95fae8e1 100644
--- a/scripts/target/mame/arcade.lua
+++ b/scripts/target/mame/arcade.lua
@@ -2798,6 +2798,8 @@ files {
MAME_DIR .. "src/mame/video/galaga.cpp",
MAME_DIR .. "src/mame/video/bosco.cpp",
MAME_DIR .. "src/mame/includes/bosco.h",
+ MAME_DIR .. "src/mame/video/starfield_05xx.cpp",
+ MAME_DIR .. "src/mame/video/starfield_05xx.h",
MAME_DIR .. "src/mame/video/digdug.cpp",
MAME_DIR .. "src/mame/includes/digdug.h",
MAME_DIR .. "src/mame/machine/xevious.cpp",