1 module minimum;
2 
3 import dxlib_d;
4 
5 int main()
6 
7 	do
8 	{
9 		version (Windows) {
10 			ChangeWindowMode(TRUE);
11 		}
12 
13 		version (ANSI) {
14 			SetUseCharCodeFormat(DX_CHARCODEFORMAT_UTF8);
15 		}
16 
17 		if (DxLib_Init() == -1) {
18 			return 1;
19 		}
20 
21 		scope (exit) {
22 			DxLib_End();
23 		}
24 
25 		DrawString(10, 10, "Hello, World!", GetColor(255, 255, 255));
26 
27 		WaitKey();
28 
29 		return 0;
30 	}