#include "config.h" #include "background.h" #include #include #include #include extern struct Map map_Level2; Background::Background( ) { } Background::~Background( ) { } void Background::Render( void ) { int x0 = (int) xlevel; int xshifttile = (int) (16*xlevel.frac()); int y0 = (int) ylevel; int yshifttile = (int) (16*ylevel.frac()); for(int u=0; umap_Level2.h-14) ylevel=libnum::num(map_Level2.h-14); } int Background::GetXCoordinate( void ) { return (int) xlevel; } int Background::GetYCoordinate( void ) { return (int) ylevel; }