eco2d/code/game/source/platform_text.c

32 lines
421 B
C
Raw Normal View History

2021-01-11 20:11:03 +00:00
#include "platform.h"
#include <stdio.h>
2021-01-11 21:12:26 +00:00
uint8_t is_running;
2021-01-11 20:11:03 +00:00
void platform_init() {
printf("eco2d-cli\n");
2021-01-11 21:12:26 +00:00
is_running = 1;
2021-01-11 20:11:03 +00:00
}
void platform_shutdown() {
2021-01-11 21:12:26 +00:00
printf("\nBye!\n");
is_running = 0;
2021-01-11 20:11:03 +00:00
}
2021-05-07 12:27:51 +00:00
void platform_input() {
}
2021-01-11 20:11:03 +00:00
uint8_t platform_is_running() {
2021-01-11 21:12:26 +00:00
return is_running;
2021-01-11 20:11:03 +00:00
}
2021-05-10 07:10:26 +00:00
float platform_frametime() {
return 1.0f;
}
2021-01-11 20:11:03 +00:00
void platform_render() {
2021-01-11 21:12:26 +00:00
zpl_printf("o");
zpl_sleep_ms(1000);
2021-01-11 20:11:03 +00:00
}