using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SFML;
using SFML.Graphics;
using SFML.Window;
namespace Gemuzzle
{
partial class Program
{
protected static void Intro()
{
Framework.mWindow.KeyPressed += new EventHandler<KeyEventArgs>(IntroOnKeyPressed);
String2D Text = new String2D("Gemuzzle", Framework.mFont_Text,36);
while (Framework.mGamestate == eGamestates.INTRO)
{
// Process events
Framework.mWindow.DispatchEvents();
//logic
//graphic
Framework.mWindow.Clear(SFML.Graphics.Color.Black);
Framework.mWindow.Draw(Text);
Framework.mWindow.Display();
}
}
static void IntroOnKeyPressed(object sender, KeyEventArgs e)
{
Window window = (Window)sender;
if (e.Code == KeyCode.Return)
Framework.mGamestate = eGamestates.MAINMENU;
}
}
}