Exemplo n.º 1
0
        public static Dictionary <string, BaseRenderObject> GetDefaultActorObjects(Vector v)
        {
            var mDic = new Dictionary <string, BaseRenderObject>();

            //Add color block that shows dimensions of this actor
            var cBlock = new BlockGraphic(v)
            {
                FillColor   = Color.Red,
                RenderLayer = RenderLayer.Player
            };

            mDic.Add("main_block", cBlock);

            //Add circle to indicate position/center of object
            var cCircle = new BlockGraphic(new Vector(2, 2))
            {
                FillColor   = Color.Coral,
                RenderLayer = RenderLayer.Player,
                ZLevel      = 2
            };

            mDic.Add("center", cCircle);

            return(mDic);
        }
Exemplo n.º 2
0
        public static Dictionary <string, BaseRenderObject> GetDefaultSceneObjects(Vector v)
        {
            var mDic  = new Dictionary <string, BaseRenderObject>();
            var block = new BlockGraphic(v)
            {
                FillColor   = Color.Purple,
                RenderLayer = RenderLayer.LevelObject
            };

            mDic.Add("main_block", block);

            var cCircle = new BlockGraphic(new Vector(2, 2))
            {
                FillColor   = Color.Coral,
                RenderLayer = RenderLayer.LevelObject,
                ZLevel      = 2
            };

            mDic.Add("center", cCircle);

            return(mDic);
        }