Пример #1
0
 public override void Initialize()
 {
     SpriteBatch = new SpriteBatch2D();
     Menu        = new UIMenu();
     Menu.Load("MainMenu.xml", "Templates.xml");
     Menu.AddUIEventHandler(this);
 }
Пример #2
0
 // only called once ever
 public override void Initialize()
 {
     SpriteBatch = new SpriteBatch2D();
     Font        = AssetManager.LoadSpriteFont("LatoBlack.ttf");
 }
Пример #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>();
Пример #4
0
 public override void Initialize()
 {
     SpriteBatch = new SpriteBatch2D();
     Menu        = new UIMenu();
     Menu.Load("Loading.xml", "Templates.xml");
 }