Re: sprite clipping

From: John (
Date: 1998-03-19 21:49:52

MagerValp writes:

>I'm working on the graphics engine for a tile-based game where the
>characters and other movable objects are represented by sprites (now
>that's original :). Since the game area doesn't cover the whole screen
>I'm faced with the problem of clipping the sprites so that they slide
>in and out gracefully.

Store 24 copies of each sprite, with progressively fewer pixels in each.
When it gets near the edge, display the appropriate sprite.

A huge waste of memory, but it is the most CPU-friendly solution I can
think of.

John West

Archive generated by hypermail 2.1.1.