This sample game demo uses the G2D library. This game demo demonstrates the following:
For details about this library, refer to the 2D Graphics Library (G2D) in the Revolution Graphics Programmer's Guide.
| Functions | Parameters | Description |
G2DinitSprite |
sprite | Pointer to the G2DSprite structure. |
|
sprite | Pointer to the G2DSprite structure. |
| po | Pointer to the G2DPosOri structure to which the position and orientation of the sprite have been passed. |
|
|
layer |
Pointer to the G2DLayer structure. |
aSortBuffer |
Pointer to work buffer. | |
|
po | Pointer to the G2DPosOri structure to which the position and orientation of the camera have been passed. |
|
nWorldX |
Width of world space in pixels. |
nWorldY |
Height of world space in pixels. | |
|
nLeft |
The left side of the screen space coordinates for viewport. |
nTop |
The upper side of the screen space coordinates for viewport. | |
nWidth |
Width of viewport in screen space coordinates. | |
nHeight |
Height of viewport in screen space coordinates. | |
|
X, Z |
x- and z-coordinates of vertex (used by G2D.c rather than the sample demo). |
The following is a summary of the control methods:
| Button | Normal / Bounce Mode |
| START | Exits the demo. |
| Control Stick | Move ship. |
| L and R | Rotate ship. |
| A | No function. |
| B | Brake ship. |
| Y | Cycles mode. |
| X | No function. |

Requires g2d-00.tpl from the $REVOLUTION_SDK_ROOT/dvddata/gxTests directory.
2006/03/01 Initial version.
CONFIDENTIAL