Add death drop

This commit is contained in:
2020-07-28 18:13:38 +02:00
parent 9c1fef7a86
commit 847b5cbd8e
2 changed files with 22 additions and 11 deletions
+2 -1
View File
@@ -334,7 +334,8 @@ public:
setTexture(texture);
}
virtual void render() {
SDL_RenderCopy(renderer->getRendererPtr(), texture->getTexturePtr(), NULL, &rect);
if(texture != NULL)
SDL_RenderCopy(renderer->getRendererPtr(), texture->getTexturePtr(), NULL, &rect);
}
virtual void move(int ticks) {
auto dimension = renderer->getSmallerSide();