2017-09-20 08:42:57 -07:00
|
|
|
|
// Copyright © 2017 Project Golan, all rights reserved.
|
|
|
|
|
#include "g_object.h"
|
|
|
|
|
|
|
|
|
|
#include <Doominati.h>
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
// Static Functions ----------------------------------------------------------|
|
|
|
|
|
|
|
|
|
|
//
|
2017-09-20 19:36:30 -07:00
|
|
|
|
// Draw
|
2017-09-20 08:42:57 -07:00
|
|
|
|
//
|
2017-09-20 19:36:30 -07:00
|
|
|
|
static void Draw(ulfra delta)
|
2017-09-20 08:42:57 -07:00
|
|
|
|
{
|
2017-09-20 19:36:30 -07:00
|
|
|
|
DGE_Font_Bind(DGE_Font_Get(s"myfont"));
|
|
|
|
|
DGE_Draw_Text(20, 20,
|
|
|
|
|
u8"hello, world!? こんにちは、世界さん!?\n"
|
|
|
|
|
u8"¿¡hola, mundo!? 你好,世界!?\n"
|
|
|
|
|
u8"γειά σου κόσμε!? hej verden!?");
|
2017-09-20 08:42:57 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Extern Functions ----------------------------------------------------------|
|
|
|
|
|
|
2017-09-20 19:36:30 -07:00
|
|
|
|
extern void G_Player_Think(DGE_Entity);
|
|
|
|
|
|
2017-09-20 08:42:57 -07:00
|
|
|
|
//
|
|
|
|
|
// 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");
|
|
|
|
|
|
2017-09-20 19:35:19 -07:00
|
|
|
|
DGE_Renderer_SetVirtualRes(640, 480);
|
2017-09-20 08:42:57 -07:00
|
|
|
|
|
|
|
|
|
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");
|
|
|
|
|
|
2017-09-20 19:36:30 -07:00
|
|
|
|
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);
|
2017-09-20 08:42:57 -07:00
|
|
|
|
|
2017-09-20 19:36:30 -07:00
|
|
|
|
printf("Ready.\n");
|
2017-09-20 08:42:57 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// EOF
|