-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
44 lines (40 loc) · 1.54 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*============================================================================
Copyright (C) 2016 akitsu-sanae, ding, lenny-yusei.
https://github.com/AmusementCreators/2016summerGameJam-Roguelike
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
============================================================================*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _2WeeksGameJam_Roguelike
{
class Program
{
[STAThread]
static void Main(string[] args)
{
var result = System.Windows.Forms.MessageBox.Show(
"フルスクリーン?",
Resource.GameTitle,
System.Windows.Forms.MessageBoxButtons.YesNo
);
var option = new asd.EngineOption();
option.IsFullScreen = result == System.Windows.Forms.DialogResult.Yes;
asd.Engine.Initialize(Resource.GameTitle, 640, 480, option);
Resource.Init();
asd.Engine.ChangeScene(new Scene.Title());
while (asd.Engine.DoEvents())
{
if (asd.Engine.Keyboard.GetKeyState(asd.Keys.Escape) == asd.KeyState.Push)
break;
if (Resource.IsQuit)
break;
asd.Engine.Update();
}
asd.Engine.Terminate();
}
}
}