Japanese
★ SGL User's Manual ★ PROGRAMMER'S TUTORIAL
▲ Back | Forward ▼
PROGRAMMER'S TUTORIAL 8.Scroll
Scroll refers to 2D graphics mainly used for game backgrounds and text display. In addition to 2D graphics in SGL, there is also something called sprites, but sprites are mainly used to express moving objects, and scrolls are mainly used to express stationary objects.
< Figure 8-1 Example of using scrolling >
| + | | = | |
a) Scroll (background) | | b) Polygon (moving object) | | c) Actual drawing |
Note: In this example, the scroll is displayed behind the polygon surface.
8-1. Scrolling in SGL
- SGL allows multiple scrolling surfaces to be displayed overlappingly on one screen. This allows, for example, to draw a scroll surface for displaying text on the front, a polygon surface in between, and a background scroll surface on the back.
This drawing priority is called priority, and it is possible to set the drawing priority for each display surface: scroll, sprite, and polygon (for details on priority, see “ 8-11 Priority ”).
< Figure 8-2 Screen configuration example>
▲ Back | Forward ▼
★ SGL User's Manual ★ PROGRAMMER'S TUTORIAL
Copyright SEGA ENTERPRISES, LTD., 1997