summaryrefslogtreecommitdiffhomepage
path: root/src/sprite.c
diff options
context:
space:
mode:
authorarngo <[email protected]>2023-05-27 18:19:22 -0400
committerarngo <[email protected]>2023-05-27 18:19:22 -0400
commit95ac4162cb0b29be6d3cea07af37d0c6eafe6ac2 (patch)
tree8c31c8c584a1808275ea85d41c2b1400d5f162a5 /src/sprite.c
parenta0dc49aa2f18b7454de89cf8fb103688d6a24162 (diff)
downloadrodeo_sample_game-95ac4162cb0b29be6d3cea07af37d0c6eafe6ac2.tar.gz
rodeo_sample_game-95ac4162cb0b29be6d3cea07af37d0c6eafe6ac2.zip
fix bullet offset
Diffstat (limited to 'src/sprite.c')
-rw-r--r--src/sprite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sprite.c b/src/sprite.c
index c1c88f6..a46f1d0 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,// - ((float)sprite->config.width * scale / 2),
+ .y = y,// - ((float)sprite->config.height * scale / 2),
.width = (float)sprite->config.width * scale,
.height = (float)sprite->config.height * scale
},