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

Add support for Sega Master System and Game Gear #54

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

lidnariq
Copy link
Contributor

@lidnariq lidnariq commented Dec 3, 2024

Here's tested support for Sega's Master System and Game Gear VDP layouts

case Mode::gg:
v.push_back(entry.tile_index & 0xff);
v.push_back(((entry.tile_index >> 8) & 0x01) | (entry.flip_h << 1) | (entry.flip_v << 2) | ((entry.palette_index << 3) & 0x8));
// SMS and GG support depth information per tile in tilemap, instead of per sprite. But superfamiconv doesn't provide that rope?
Copy link
Owner

Choose a reason for hiding this comment

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

You got me there!

Copy link
Owner

Choose a reason for hiding this comment

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

I will have to look into the specifics and see if that's something that can be supported.

src/Mode.h Outdated
case Mode::sms:
v.push_back(((color >> 12) & 0x30) | ((color >> 6) & 0x0C) | (color & 3));
break;
case Mode::pv1k:
Copy link
Owner

Choose a reason for hiding this comment

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

What's this mode? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's how you know I didn't re-build after cherry-picking the SMS support away from the PV-1000 support :sigh:

@Optiroc
Copy link
Owner

Optiroc commented Dec 4, 2024

Thanks for the PR! Looking good, but there's one stray reference to Mode::pv1k that seems quite out of place.

@Optiroc Optiroc merged commit d8cdb19 into Optiroc:main Dec 4, 2024
3 checks passed
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.

2 participants