Testing superpong on win32
This commit is contained in:
parent
4578c8d767
commit
7437dd0b0f
2
milepost
2
milepost
|
@ -1 +1 @@
|
|||
Subproject commit ff5a57fb92c301bb706dc87adb55a0ea17ac18b3
|
||||
Subproject commit 1e34c3406fa681724ba071af9e79f378e777d13a
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue