Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atari/shuuz.cpp: add missing sprite-to-playfield shadow effect #11799

Merged
merged 2 commits into from
Dec 2, 2023

Conversation

codefrog2002
Copy link
Contributor

Shuuz has been missing its sprite-shadow effect.
MO color 1 causes a PF palette shift + 0x200, if the mo has priority over the pf.

These shadows are visible at the feet of the round-card woman and the standing on-screen players.

Reference: https://farm5.staticflickr.com/4767/38913008994_3e2d2f6449_b.jpg
38913008994_3e2d2f6449_b

@codefrog2002 codefrog2002 changed the title shuuz - add missing sprite-to-playfield shadow effect atari/shuuz.cpp: add missing sprite-to-playfield shadow effect Nov 29, 2023
Comment on lines 187 to 188
int mopf = 0;
if ((!(pf[x] & 0x80) && ((mo[x] & 0xc0) != 0xc0) && ((mo[x] & 0x0e) != 0x00) && !o13) ||
((pf[x] & 0x80) && ((mo[x] & 0xc0) == 0xc0) && ((mo[x] & 0x0e) != 0x00) && !o13))
mopf = 1;
int mopf = ((!(pf[x] & 0x80) && ((mo[x] & 0xc0) != 0xc0) && !o13) ||
((pf[x] & 0x80) && ((mo[x] & 0xc0) == 0xc0) && !o13));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MO/PF signal here no longer matches the equations from the GAL shown above. Can you please link to the schematics for how this works?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don’t have schematics evidence. My change is based on

  1. photo and video evidence of the game running which shows the shadow effect
  2. the game code doing the work (preparing the high palette) to support the shadows
  3. the game MO roms contain the sprite data to use the effect
  4. the game looks correct when the effect is enabled
    Here’s an additional reference video
    https://www.instagram.com/p/CsWoVKPMyw8/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Annoyingly, there are no GAL dumps in the driver either, so it isn’t possible to check the actual equations.

@cuavas cuavas merged commit 82e34a8 into mamedev:master Dec 2, 2023
5 checks passed
Luigi30 pushed a commit to Luigi30/mame that referenced this pull request Dec 16, 2023
MO color 1 offsets playfield color by 0x200 if the playfield does not have priority.
einstein95 pushed a commit to einstein95/mame that referenced this pull request Mar 2, 2024
MO color 1 offsets playfield color by 0x200 if the playfield does not have priority.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants