Skip to content

Instantly share code, notes, and snippets.

@demonixis
Created May 21, 2012 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demonixis/2760710 to your computer and use it in GitHub Desktop.
Save demonixis/2760710 to your computer and use it in GitHub Desktop.
YNA Framework - Game and engine initialization
using System;
using System.Collections.Generic;
using Yna;
using Yna.Display;
namespace Yna.Test
{
public class Game2 : Yna.YnGame
{
public Game2() : base(600, 400)
{
this.Window.Title = "YNA Framework - Exemples";
}
protected override void Initialize()
{
base.Initialize();
SwitchState(new MenuState());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment