eliminat el punter al renderer de 50.000 llocs

This commit is contained in:
2024-07-28 10:45:14 +02:00
parent 7501b4936f
commit 2948684ad3
58 changed files with 492 additions and 401 deletions

View File

@@ -2,9 +2,9 @@
#include "item.h"
// Constructor
Item::Item(int kind, float x, float y, Texture *texture, std::vector<std::string> *animation, SDL_Renderer *renderer)
Item::Item(int kind, float x, float y, Texture *texture, std::vector<std::string> *animation)
{
sprite = new AnimatedSprite(texture, renderer, "", animation);
sprite = new AnimatedSprite(texture, "", animation);
this->kind = kind;
enabled = true;