Testing superpong on win32

This commit is contained in:
martinfouilleul 2023-07-05 18:25:14 +02:00
parent 4578c8d767
commit 7437dd0b0f
2 changed files with 14 additions and 1 deletions

@ -1 +1 @@
Subproject commit ff5a57fb92c301bb706dc87adb55a0ea17ac18b3
Subproject commit 1e34c3406fa681724ba071af9e79f378e777d13a

View File

@ -76,6 +76,19 @@ ORCA_EXPORT void OnInit(void)
ballImage = mg_image_create_from_data(surface, loadFile(mem_scratch(), STR8("/ball.png")), false);
paddleImage = mg_image_create_from_data(surface, loadFile(mem_scratch(), STR8("/wall.png")), false);
if(mg_image_is_nil(waterImage))
{
log_error("coulnd't load ball image\n");
}
if(mg_image_is_nil(ballImage))
{
log_error("coulnd't load ball image\n");
}
if(mg_image_is_nil(paddleImage))
{
log_error("coulnd't load paddle image\n");
}
str8 fontStr = loadFile(mem_scratch(), STR8("/Literata-SemiBoldItalic.ttf"));
unicode_range ranges[5] = {UNICODE_RANGE_BASIC_LATIN,
UNICODE_RANGE_C1_CONTROLS_AND_LATIN_1_SUPPLEMENT,