Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            GameWindow g = new GameWindow();

            Story s = new Story(g, "res");

            s.LoadNew();

            //Scene s = new Scene(null);
            //g.Scene = s;

            //NarrationDialog d = new NarrationDialog(50, 400, 700, 200);
            //d.ResetAnimation();

            //s.AddLayer(d);

            //s.KeyDown += new EventHandler<KeyEventArgs>((o, e) =>
            //{
            //    d.Visible = true;
            //    string[] lines = new string[] { "Hello", "I am a narration dialog", "wahaha", "こんにちは","私は今日あなたのゲームのナレータです。ここから私の声だけを聞こえます。","ご協力してくれてありがとうございました" };
            //    d.SetNarration(lines);
            //});

            Application.Run(g);
        }
Beispiel #2
0
 public void Execute(Story state)
 {
     Type t = asm.GetType("EmeraldDream." + name);
     MethodInfo mi = t.GetMethod("Main");
     mi.Invoke(null, new object[] { state });
 }