diff options
| author | realtradam <[email protected]> | 2023-05-27 18:17:05 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-05-27 18:17:05 -0400 |
| commit | adbd4bf423647fbab111434b08058c3c130df020 (patch) | |
| tree | 0e2da07207814d444d63783b2e18f2186d45bcbc /src/sprite.c | |
| parent | 6a6a9ff8f989896fa7af7132d50b116a07e6b44c (diff) | |
| download | TOJam2023-adbd4bf423647fbab111434b08058c3c130df020.tar.gz TOJam2023-adbd4bf423647fbab111434b08058c3c130df020.zip | |
centered target sprite
Diffstat (limited to 'src/sprite.c')
| -rw-r--r-- | src/sprite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sprite.c b/src/sprite.c index c1c88f6..41ed692 100644 --- a/src/sprite.c +++ b/src/sprite.c @@ -7,8 +7,8 @@ draw_sprite(sprite_t *sprite, float x, float y, float scale) { rodeo_texture_2d_draw( &(rodeo_rectangle_t){ - .x = x - ((float)sprite->config.width * scale / 2), - .y = y - ((float)sprite->config.height * scale / 2), + .x = x, + .y = y, .width = (float)sprite->config.width * scale, .height = (float)sprite->config.height * scale }, |
