Advertisement

Enabling midline raster effects and layered rendering for the Gameduino

Enabling midline raster effects and layered rendering for the Gameduino This video demonstrates a mod to the Gameduino FPGA code to add some features that allow more fine grained control of how the Gameduino draws into the line buffer (which will then be displayed while the next line is being drawn).

With the mod, the j1 coprocessor in the Gameduino can set up the grapics pipeline to draw a tile background and range of sprites within a given range of x coordinates. The coprocessor can wait until the drawing is done, update the drawing window and some registers, and start a new drawing pass on the same line.

This allows to create effects akin to midline raster effects, and to draw multiple layers on top of each other (as long as you have the time to draw them, and the memory to store them).

The video first demonstrates a number of the draw control features separately. Then, some combination effects using the j1 coprocessor are shown:
- Using different sprite ranges for one sprite layer behind the background, and one in front of it
- Changing background settings between different regions of the same horizontal line
- Two tile layers, with sprites in between
The video uses the 320x240 graphics mode to get enough tile map space for two tile layers with attributes. (The graphics mode and tile maps with attributes were introduced in earlier mods.)

The source code for the mod is available under a BSD license at where a more detailed description of the mod can also be found.

The Gameduino logo seen in the video is included in the Gameduino source code.
For information about Gameduino, see

Gameduino

Post a Comment

0 Comments