Portable Game Console
PoGa-4DGL Reference Manual
Change TARGET to include a Movie when the target is hit.
Open Target.4DG in workshop (if it isn’t still open).
Add the following code at the start of the main procedure (immediately after the vars) .
repeat
pause(200);
gfx_Cls();
if(media_Init()) break; // initialise and test the uSD card
putstr("No Disk");
forever
Change the KaBoom function as follows.
func kaboom()
beep(200,2000) ;
gfx_Set(CLIPPING,ON) ;
media_SetSector(0,0);
media_Video(xtgt-39,ytgt-60) ;
endfunc
Remove the uSD card from your computer and insert it into your PoGa.
Save this as TARGET-VID and compile and download.
Note:
For an in depth treatment of Graphics composer See section 4.2.
© 2011 4D Systems
www.4dsystems.com.au
Page 14 of 87