mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-22 07:18:49 -05:00
Continue sprite drawing
This commit is contained in:
parent
fec51971fb
commit
569882ea29
11
main.c
11
main.c
@ -476,9 +476,14 @@ void SFG_drawScaledImage(
|
|||||||
|
|
||||||
for (int16_t x = x0, u = u0; x <= x1; ++x, ++u)
|
for (int16_t x = x0, u = u0; x <= x1; ++x, ++u)
|
||||||
for (int16_t y = y0, v = v0; y <= y1; ++y, ++v)
|
for (int16_t y = y0, v = v0; y <= y1; ++y, ++v)
|
||||||
SFG_setGamePixel(x,y,SFG_getTexel(image,
|
{
|
||||||
SFG_spriteSamplingPoints[u],
|
uint8_t color =
|
||||||
SFG_spriteSamplingPoints[v]));
|
SFG_getTexel(image,SFG_spriteSamplingPoints[u],
|
||||||
|
SFG_spriteSamplingPoints[v]);
|
||||||
|
|
||||||
|
if (color != SFG_TRANSPARENT_COLOR)
|
||||||
|
SFG_setGamePixel(x,y,color);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RCL_Unit SFG_texturesAt(int16_t x, int16_t y)
|
RCL_Unit SFG_texturesAt(int16_t x, int16_t y)
|
||||||
|
Loading…
Reference in New Issue
Block a user