twn_rendering -> twn_draw
This commit is contained in:
@ -252,7 +252,7 @@ static void drawdef(Player *player) {
|
||||
.h = player->sprite_h,
|
||||
});
|
||||
|
||||
push_circle((Vec2) { 256, 128 },
|
||||
draw_circle((Vec2) { 256, 128 },
|
||||
24,
|
||||
(Color) { 255, 0, 0, 255 });
|
||||
}
|
||||
@ -268,10 +268,10 @@ static void drawdef_debug(Player *player) {
|
||||
/* .r = 0, .g = 0, .b = 0, .a = 255, */
|
||||
/* }; */
|
||||
|
||||
push_rectangle(player->collider_x,
|
||||
draw_rectangle(player->collider_x,
|
||||
(Color){ 0, 0, 255, 128 });
|
||||
|
||||
push_rectangle(player->collider_y,
|
||||
draw_rectangle(player->collider_y,
|
||||
(Color){ 0, 0, 255, 128 });
|
||||
}
|
||||
|
||||
|
@ -30,9 +30,9 @@ static void title_tick(State *state) {
|
||||
|
||||
const char *font = "fonts/kenney-pixel.ttf";
|
||||
int text_h = 32;
|
||||
int text_w = text_get_width(text_str, text_h, font);
|
||||
int text_w = draw_text_width(text_str, text_h, font);
|
||||
|
||||
push_rectangle(
|
||||
draw_rectangle(
|
||||
(Rect) {
|
||||
.x = 0,
|
||||
.y = 0,
|
||||
@ -41,7 +41,7 @@ static void title_tick(State *state) {
|
||||
},
|
||||
(Color) { 0, 0, 0, 255 }
|
||||
);
|
||||
push_text(
|
||||
draw_text(
|
||||
text_str,
|
||||
(Vec2){ 0, 0 },
|
||||
text_h,
|
||||
|
@ -39,7 +39,7 @@ static void drawdef_debug(struct World *world) {
|
||||
for (size_t i = 0; i < world->tilemap_height * world->tilemap_width; ++i) {
|
||||
if (world->tiles[i].type == TILE_TYPE_VOID) continue;
|
||||
|
||||
push_rectangle(to_frect(world->tiles[i].rect),
|
||||
draw_rectangle(to_frect(world->tiles[i].rect),
|
||||
(Color) { 255, 0, 255, 128 });
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user