Exemplo n.º 1
0
 public override void Initialize()
 {
     SpriteBatch = new SpriteBatch2D();
     Menu        = new UIMenu();
     Menu.Load("MainMenu.xml", "Templates.xml");
     Menu.AddUIEventHandler(this);
 }
Exemplo n.º 2
0
 // only called once ever
 public override void Initialize()
 {
     SpriteBatch = new SpriteBatch2D();
     Font        = AssetManager.LoadSpriteFont("LatoBlack.ttf");
 }
Exemplo n.º 3
0
 public static void Render(Group group, SpriteBatch2D spriteBatch)
 {
     foreach (var entity in group.Entities)
     {
         ref var transform = ref entity.GetComponent <TransformComponent>();
         ref var drawable  = ref entity.GetComponent <DrawableComponent>();
Exemplo n.º 4
0
 public override void Initialize()
 {
     SpriteBatch = new SpriteBatch2D();
     Menu        = new UIMenu();
     Menu.Load("Loading.xml", "Templates.xml");
 }