Added a font registry, a text rendering helper, and an FPS counter function
This commit is contained in:
@@ -186,7 +186,7 @@ akerr_ErrorContext *character_load_json(char *filename)
|
||||
);
|
||||
CATCH(errctx, character_load_json_inner(json, obj));
|
||||
CATCH(errctx, get_json_integer_value(json, "movementspeed", (int *)&obj->movementspeed));
|
||||
obj->movementspeed = obj->movementspeed * 1000000;
|
||||
obj->movementspeed = obj->movementspeed * TIME_ONESEC_MS;
|
||||
CATCH(errctx, get_json_number_value(json, "velocity_x", &obj->vx));
|
||||
CATCH(errctx, get_json_number_value(json, "velocity_y", &obj->vy));
|
||||
} CLEANUP {
|
||||
|
||||
Reference in New Issue
Block a user