bool zombieType::offScreen(camera &cam) { return !( x > cam.getX()-36 && x < cam.getX() + SCREEN_RIGHT+36 && y > cam.getY()-36 && y < cam.getY() + SCREEN_BOTTOM+36); }
void zombieType::render(int i,camera &cam,bool unrender) { animate(); oamSet(&oamMain, i+10, x-cam.getX(), y-cam.getY(), 0, 0, SpriteSize_32x32, SpriteColorFormat_256Color, sprite_gfx_mem, -1, false, unrender, false, false, false); }