Let’s Code MS DOS 0x36: Sprites & Occlusion

In the last video we learned how to make 2D sprites with transparency and scaling. This time around we also make our Guybrush automatically scale with the background, limit his ability to move into nonsensical parts of the scene, and most important: Walk in front and behind objects.

Source Code: https://codeberg.org/root42/VSPRITES/src/branch/feature/mask-and-scaling

Let’s Code MS DOS 0x35: Sprites & Scaling

Adventure games like Monkey Island utilized sprites that could be moved and scaled arbitrarily on the screen. How does this work on a machine that doesn’t have support hardware sprites? We will work our way from simple sprites with no transparency, to ones that are clipped, have transparency and can be scaled down arbitrarily.