Add font loader
This commit is contained in:
@ -49,10 +49,10 @@ void game_update() {
|
||||
ellipse_x0 += ellipse_dx0;
|
||||
if (ellipse_x0 < 0 || ellipse_x0 > DEVICE_W * 4) { ellipse_dx0 *= -1; }
|
||||
ellipse_y0 += ellipse_dy0;
|
||||
if (ellipse_y0 < 0 || ellipse_y0 > DEVICE_W * 4) { ellipse_dy0 *= -1; }
|
||||
if (ellipse_y0 < 0 || ellipse_y0 > DEVICE_H * 4) { ellipse_dy0 *= -1; }
|
||||
|
||||
ellipse_x1 += ellipse_dx1;
|
||||
if (ellipse_x1 < 0 || ellipse_x1 > DEVICE_H * 4) { ellipse_dx1 *= -1; }
|
||||
if (ellipse_x1 < 0 || ellipse_x1 > DEVICE_W * 4) { ellipse_dx1 *= -1; }
|
||||
ellipse_y1 += ellipse_dy1;
|
||||
if (ellipse_y1 < 0 || ellipse_y1 > DEVICE_H * 4) { ellipse_dy1 *= -1; }
|
||||
}
|
||||
@ -89,4 +89,6 @@ void game_draw() {
|
||||
sys_circ_draw_ext(x0, y0, 6, 248, false);
|
||||
sys_circ_draw_ext(x0, y0, 8, 244, false);
|
||||
sys_line_draw(x0, y0, x1, y1, 254);
|
||||
|
||||
sys_print("Hello, blood\nsources!", x1, y1, 224);
|
||||
}
|
||||
|
Reference in New Issue
Block a user