55 lines
1.3 KiB
C
55 lines
1.3 KiB
C
// Copyright © 2017 Project Golan, all rights reserved.
|
||
#include "g_object.h"
|
||
|
||
#include <Doominati.h>
|
||
|
||
#include <stdio.h>
|
||
|
||
// Static Functions ----------------------------------------------------------|
|
||
|
||
//
|
||
// Draw
|
||
//
|
||
static void Draw(ulfra delta)
|
||
{
|
||
DGE_Font_Bind(DGE_Font_Get(s"myfont"));
|
||
DGE_Draw_Text(20, 20,
|
||
u8"hello, world!? こんにちは、世界さん!?\n"
|
||
u8"¿¡hola, mundo!? 你好,世界!?\n"
|
||
u8"γειά σου κόσμε!? hej verden!?");
|
||
}
|
||
|
||
// Extern Functions ----------------------------------------------------------|
|
||
|
||
extern void G_Player_Think(DGE_Entity);
|
||
|
||
//
|
||
// main
|
||
//
|
||
[[__extern("asm")]] DGE_Callback
|
||
void main(void)
|
||
{
|
||
printf("\n=====================\n"
|
||
u8"オミ:影響の目 1.0\n"
|
||
u8"Copyright © 2017 Project Golan, all rights reserved.\n\n");
|
||
|
||
DGE_Renderer_SetVirtualRes(640, 480);
|
||
|
||
printf("Loading object function table...\n");
|
||
G_ObjDef_Init();
|
||
G_ObjDef_loadFunc(G_Player_Think);
|
||
|
||
printf("Loading object definitions...\n");
|
||
G_ObjDef_Load("objdefs.dod");
|
||
|
||
printf("Creating fonts...\n");
|
||
DGE_Font_Create(s"myfont", "fonts/base.ttf", 24);
|
||
|
||
printf("Registering callbacks...\n");
|
||
DGE_Callback_Register(DGE_CB_Draw, (DGE_CallbackType)Draw);
|
||
|
||
printf("Ready.\n");
|
||
}
|
||
|
||
// EOF
|