Posted By: wraggster
Philip Corner has posted a release of Maelstrom A game based on "Tempest":
Much of the code for MaelstromDS is the same as that in the original GBA version, the major change being that the DS has 3D hardware built in, and therefore there is no need for the code to transform the scene into 2D lines.
Additionally, the view can be moved by touching and dragging the screen. This is accomplished by capturing the initial touch position, and using this point as the "origin" from which translations are measured. The origin is subtracted from the current touch position, and this value used to determine the rotation (pitch and yaw) to apply to the scene. The value used is actually the average of the last two readings. This avoids shaking of the picture caused by slightly different values being read each frame, which occurs even when not dragging.
Finally, the transparency of the outside of the tunnel is achieved by drawing the tunnel twice. Once with the polygons set to solid and the front faces drawn, then with the polygons set to half transparent and the back faces drawn. This is necessary because the DS cannot correctly handle multiple transparent polygons drawn on top of each other.
Download and Give Feedback Via Comments