home *** CD-ROM | disk | FTP | other *** search
- #include "lives.h"
- #include "gfx.h"
-
- void Lives::initialize()
- {
- load_gfxlib( "ss.gfx" );
- }
-
- void Lives::draw(void)
- {
- static boolean init=FALSE;
- static int width;
- if ( !init )
- {
- width=get_image_width( LIFE );
- int len=(width*lives)+((lives-1)*3);
- x=(320/2)-(len/2), y=3;
- init=TRUE;
- }
- int tx=x;
- for ( int i=0; i<lives; i++ )
- {
- show_image( tx, y, LIFE );
- tx+=width+3;
- }
- }
-
-