aboutsummaryrefslogtreecommitdiff
path: root/sprite_system.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-03 07:32:34 +1000
committerquou <quou@disroot.org>2023-05-03 07:32:34 +1000
commit199a5e6e9ddb13af0bb557b6ebbb2c4b8f4ce873 (patch)
tree2253af9926b3d0d1e3065d910cf16db957b2eedf /sprite_system.c
parent65fa1051585f5345c3270db73ab53b7a0dbbaa50 (diff)
Basic player movement.
Diffstat (limited to 'sprite_system.c')
-rw-r--r--sprite_system.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sprite_system.c b/sprite_system.c
index 99360fc..526c097 100644
--- a/sprite_system.c
+++ b/sprite_system.c
@@ -1,6 +1,7 @@
#include "asset.h"
#include "components.h"
#include "render.h"
+#include "standard.h"
#include "world.h"
void sprite_system(const World* world) {
@@ -17,7 +18,7 @@ void sprite_system(const World* world) {
sprite = &world->sprites[i];
b = get_bitmap(sprite->id);
- render_bitmap(b, pos->x, pos->y, &sprite->rect);
+ render_bitmap(b, pos->x >> fbits, pos->y >> fbits, &sprite->rect);
}
}
}