dest.w = src.w;
dest.h = src.h;
- SDL_BlitSurface(gown_upset.sdl_surface, &src, screen, &dest);
+ texture_draw_part(&gown_upset,src.x,src.y,dest.x,dest.y,dest.w,dest.h,NO_UPDATE);
height[j] = height[j] - height_speed[j];
void player_draw(player_type* pplayer)
{
-
if (!timer_started(&pplayer->safe_timer) || (frame % 2) == 0)
{
if (pplayer->size == SMALL)
}
}
}
-
}
void player_collision(player_type* pplayer, void* p_c_object, int c_object)
dest.w = 32;
dest.h = pupgrade->base.height;
- src.x = 0;
- src.y = 0;
- src.w = 32;
- src.h = pupgrade->base.height;
-
if (pupgrade->kind == UPGRADE_MINTS)
- SDL_BlitSurface(img_mints.sdl_surface, &src, screen, &dest);
+ texture_draw_part(&img_mints,0,0,dest.x,dest.y,dest.w,dest.h,NO_UPDATE);
else if (pupgrade->kind == UPGRADE_COFFEE)
- SDL_BlitSurface(img_coffee.sdl_surface, &src, screen, &dest);
+ texture_draw_part(&img_coffee,0,0,dest.x,dest.y,dest.w,dest.h,NO_UPDATE);
else if (pupgrade->kind == UPGRADE_HERRING)
- SDL_BlitSurface(img_golden_herring.sdl_surface, &src, screen, &dest);
+ texture_draw_part(&img_golden_herring,0,0,dest.x,dest.y,dest.w,dest.h,NO_UPDATE);
}
else
{
dest.w = 16;
dest.h = 16;
- SDL_BlitSurface(img_brick[0].sdl_surface, &src, screen, &dest);
+ texture_draw_part(&img_brick[0],src.x,src.y,dest.x,dest.y,dest.w,dest.h,NO_UPDATE);
}
}