From 4bf2726cd8b9156f9c10be786be8a5ad47df8e99 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Thu, 28 Feb 2019 05:17:32 +0900 Subject: [PATCH] dynamic shape: added metadata doc sililar to the one used in the game's font --- .../torvald/terrarum/worlddrawer/BlocksDrawerNew.kt | 13 +++++++++++++ work_files/dynamic_shape_2_0.psd | 4 ++-- work_files/dynamic_shape_2_0_attachment.psd | 4 ++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/net/torvald/terrarum/worlddrawer/BlocksDrawerNew.kt b/src/net/torvald/terrarum/worlddrawer/BlocksDrawerNew.kt index 6e13c92d9..828b629d3 100644 --- a/src/net/torvald/terrarum/worlddrawer/BlocksDrawerNew.kt +++ b/src/net/torvald/terrarum/worlddrawer/BlocksDrawerNew.kt @@ -175,6 +175,19 @@ internal object BlocksDrawer { printdbg(this, "init() exit") } + /** + * See work_files/dynamic_shape_2_0.psd + * + * bits position: (0 being LSB) + * + * 5 6 7 + * 4 @ 0 + * 3 2 1 + * + * size of this LUT must be equal to 256. + */ + private val connectLut = intArrayOf(17,1,17,1,2,3,2,14,17,1,17,1,2,3,2,14,9,7,9,7,4,5,4,35,9,7,9,7,16,37,16,15,17,1,17,1,2,3,2,14,17,1,17,1,2,3,2,14,9,7,9,7,4,5,4,35,9,7,9,7,16,37,16,15,8,10,8,10,0,12,0,43,8,10,8,10,0,12,0,43,11,13,11,13,6,20,6,34,11,13,11,13,36,33,36,46,8,10,8,10,0,12,0,43,8,10,8,10,0,12,0,43,30,42,30,42,38,26,38,18,30,42,30,42,23,40,23,31,17,1,17,1,2,3,2,14,17,1,17,1,2,3,2,14,9,7,9,7,4,5,4,35,9,7,9,7,16,37,16,15,17,1,17,1,2,3,2,14,17,1,17,1,2,3,2,14,9,7,9,7,4,5,4,35,9,7,9,7,16,37,16,15,8,28,8,28,0,41,0,21,8,28,8,28,0,41,0,21,11,44,11,44,6,27,6,45,11,44,11,44,36,19,36,32,8,28,8,28,0,41,0,21,8,28,8,28,0,41,0,21,30,29,30,29,38,39,38,25,30,29,30,29,23,24,23,22) + /** * Connectivity group 01 : artificial tiles * It holds different shading rule to discriminate with group 02, index 0 is single tile. diff --git a/work_files/dynamic_shape_2_0.psd b/work_files/dynamic_shape_2_0.psd index 5ed74be1c..56a28dc82 100644 --- a/work_files/dynamic_shape_2_0.psd +++ b/work_files/dynamic_shape_2_0.psd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:516b66b533f65a1094a3e9ffd6db7299cfea63fb4a7d69daf91efe54283469c6 -size 2868539 +oid sha256:f4e4ee1b92bfbaef5f3896e60fe64569a572b7df72bdf4c891deb5254ae088f2 +size 3230751 diff --git a/work_files/dynamic_shape_2_0_attachment.psd b/work_files/dynamic_shape_2_0_attachment.psd index 985391c9b..8375b12d2 100644 --- a/work_files/dynamic_shape_2_0_attachment.psd +++ b/work_files/dynamic_shape_2_0_attachment.psd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:72f025b2ce4a3c5eac2560c42f62f83f768abed0d2943650182fb46be444cd8e -size 42552 +oid sha256:e7124c7f32a6e7f4ca5c8ae5fd9e58f1f32cb98c897f6cc7eb9a9654058b398c +size 42782