refactor: extreure helpers per reduir complexitat cognitiva (tidy net)

This commit is contained in:
2026-05-16 16:13:57 +02:00
parent b984e6041e
commit e1bc1b597f
31 changed files with 1145 additions and 1332 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
#include "game/sprite.hpp"
Sprite::Sprite(Jd8::Surface gfx)
: gfx(gfx) {}
: gfx_(gfx) {}
void Sprite::draw() {
const Frame& f = entitat.frames[entitat.animacions[o].frames[cur_frame]];
Jd8::blitCK(x, y, gfx, f.x, f.y, f.w, f.h, 255);
Jd8::blitCK(x, y, gfx_, f.x, f.y, f.w, f.h, 255);
}