Scrolling and mapper 7 demo

A place where you can keep others updated about your NES-related projects through screenshots, videos or information in general.

Moderator: Moderators

Post Reply
User avatar
Bregalad
Posts: 7890
Joined: Fri Nov 12, 2004 2:49 pm
Location: Chexbres, VD, Switzerland

Scrolling and mapper 7 demo

Post by Bregalad » Sat Dec 01, 2012 4:19 am

This demo is sort of a combo of a scrolling demo and a demo that shows how to use mappers which swap a single bank of 32kb PRG with trampoline code that is as transparent as possible.

It also shows how to scroll horizontally without using vertical mirroring while minimizing the attribute clashes on the side borders. Most games usually shows off 8 or more pixels of garbage on the sides. Here it shows max. 3 pixels of garbage at the left OR max. 4 pixels of garbage to the right (never simultaneously). On PAL consoles, only max. 2 pixels of garbage are visible on the right.
Graphics ripped of SMB3 save states.

The scrolling code is particularly clean and robust (at least in my opinion), as the part that controls the camera, moves the camera, and updates the scrolling are completely independant. I was going to make it multi-directional scrolling but I gave up after doing horizontal scrolling.
Attachments
multiscroll.7z
(13.68 KiB) Downloaded 293 times

Post Reply