![PoGa 4DGL Reference Manual Download Page 61](http://html1.mh-extra.com/html/poga/4dgl/4dgl_reference-manual_1570571061.webp)
Portable Game Console
PoGa-4DGL Reference Manual
Then click the “Comp'n'Load” button, and if all is well you should see the following in the Workshop
information panel, and you should see the sprite displayed on the PoGa.
Now alter the program to the following by adding the lines marked in red, this will demonstrate the
transparent effect.
Make the changes then click the “Comp'n'load” button.
© 2011 4D Systems
www.4dsystems.com.au
Page 61 of 87
#platform "PoGa-GOLDELOX"
#inherit "4DGL_16bitColours.fnc" // we need to colour list for the sprites CLUT
#inherit "Demo.inc" // inherit the demo sprite bitmaps
func main()
gfx_RectangleFilled(0,0,127,40,DARKGRAY); // set a background colour
gfx_SpriteSet(demo_sprites, demo_colors, demo_palette); // pointers for the sprite generator
gfx_BlitSprite(S_Cherry, P_Cherry, 56, 10, NORTH); // display the cherry sprite at 56,50
gfx_TransparentColour(BLACK);
gfx_Transparency(ON);
gfx_BlitSprite(S_Cherry, P_Cherry, 86, 10, NORTH); // display at 86,50, transparently
repeat forever
endfunc