return screen_res;
}
+void lrts_init(void) {
+}
+
int lrts_main(int argc, char **argv) {
+ lrts_init();
+
p_io_init();
lrts_getopt(argc, argv, lrts_cfg());
void r_draw_solid_isometric_tile(i32 x, i32 y, r_color color, r_color outline_color) {
u32 i = 0;
u32 j = 0;
+ i32 ox = 0;
+ i32 oy = 0;
+
+ /* converted origin point in isometric space */
+ ox = (x * R_TILE_W / 2) + (y * R_TILE_W / 2);;
+ oy = (y * R_TILE_H / 2) - (x * R_TILE_H / 2);
LRTS_UNUSED(outline_color);
LRTS_UNUSED(x);
LRTS_UNUSED(y);
-
+
+ /* draw a tile texture from origin */
for (i = 0; i < R_TILE_W; i++) {
for (j = 1; j < R_TILE_H-1; j++) {
- r_draw_pixel(&r_framebuffer, x+i, y+j, color);
+ r_draw_pixel(&r_framebuffer, ox, oy, color);
}
}
}