forked from jaildesigner-jailgames/jaildoctors_dilemma
Transició a surface: ending.cpp fet
This commit is contained in:
@@ -62,6 +62,12 @@ void SMovingSprite::render()
|
||||
surface_->render(pos_.x, pos_.y, &clip_, flip_);
|
||||
}
|
||||
|
||||
// Muestra el sprite por pantalla
|
||||
void SMovingSprite::render(Uint8 source_color, Uint8 target_color)
|
||||
{
|
||||
surface_->renderWithColorReplace(pos_.x, pos_.y, source_color, target_color, &clip_, flip_);
|
||||
}
|
||||
|
||||
// Establece la posición y_ el tamaño del objeto
|
||||
void SMovingSprite::setPos(SDL_Rect rect)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user