Пример #1
0
        public override void LoadContent()
        {
            base.LoadContent();

            TheCoolOne = WorldElements["The Cool One"] as RectangleElementEntity;
        }
Пример #2
0
        private WorldEntity createTestWorld()
        {
            WorldEntity world = new WorldEntity();

            world.WorldInfo = new WorldInfoEntity();
            world.WorldInfo.Language = "en";
            world.WorldInfo.Name = "UnitTestLevel";
            world.WorldInfo.Description = "Test \n \"Description";

            world.PhysicsSettings = new PhysicsSettingsEntity();
            world.PhysicsSettings.Gravity = Vector2.Zero;

            RectangleElementEntity rectangle = new RectangleElementEntity();
            rectangle.FillColor = Color.Wheat;
            rectangle.OutlineColor = Color.Black;
            rectangle.Position = new Vector2(5, 5);
            rectangle.Width = 5;
            rectangle.Height = 5;

            world.WorldElements.Add(rectangle);

            return world;
        }
Пример #3
0
 public static void GenerateTexture(GraphicsDevice graphicsDevice, RectangleElementEntity entity)
 {
     //Texture2D texture = new Texture2D(graphicsDevice, entity.Size.X, entity.Size.Y, false, SurfaceFormat.Color);
 }