From 199a5e6e9ddb13af0bb557b6ebbb2c4b8f4ce873 Mon Sep 17 00:00:00 2001 From: quou Date: Wed, 3 May 2023 07:32:34 +1000 Subject: Basic player movement. --- sprite_system.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sprite_system.c') 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); } } } -- cgit v1.2.3-54-g00ecf