Esempio n. 1
0
        public static void DrawMap(JuFramework.TileMap tileMap, int layerId, IntRect cells, Vector2f position)
        {
            var tileLayer = tileMap.tileLayers[layerId];
            var tileSet   = tileLayer.GetTileSet();

            RebuildMesh(tileLayer, cells, position, tileSet);

            mapMaterial.Set("_MainTex", tileSet.texture);
            mapMaterial.Use();

            Core.graphics.DrawMesh(meshCache);
        }
Esempio n. 2
0
        public static void DrawMap(JuFramework.TileMap tileMap, int layerId, Vector2f position)
        {
            var tileLayer = tileMap.tileLayers[layerId];

            DrawMap(tileMap, layerId, new IntRect(0, 0, tileLayer.width, tileLayer.height), position);
        }
Esempio n. 3
0
        //-----------------------------------------------------------------------

        public static void DrawMap(JuFramework.TileMap tileMap, int layerId)
        {
            DrawMap(tileMap, layerId, Vector2f.zero);
        }