enough resources to test impl the thing

This commit is contained in:
minjaesong
2019-03-01 03:21:08 +09:00
parent 8589847e3d
commit dfb9d0d8d9
16 changed files with 22 additions and 1294 deletions

1
.gitattributes vendored
View File

@@ -3,3 +3,4 @@
*.tga filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.opus filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text

Binary file not shown.

Binary file not shown.

View File

@@ -20,7 +20,9 @@ object CreateTileAtlas {
lateinit var atlasAutumn: Pixmap
lateinit var atlasWinter: Pixmap
lateinit var atlasSpring: Pixmap
lateinit var tags: HashMap<Int, RenderTag>
internal lateinit var tags: HashMap<Int, RenderTag>
private set
private val defaultRenderTag = RenderTag(3, RenderTag.CONNECT_SELF, RenderTag.MASK_NA) // 'update' block
var initialised = false
private set
@@ -39,6 +41,7 @@ object CreateTileAtlas {
operator fun invoke(updateExisting: Boolean = false) { if (updateExisting || !initialised) {
tags = HashMap<Int, RenderTag>()
tags[0] = RenderTag(0, RenderTag.CONNECT_SELF, RenderTag.MASK_NA)
atlas = Pixmap(256 * TILE_SIZE, 256 * TILE_SIZE, Pixmap.Format.RGBA8888)
atlasAutumn = Pixmap(256 * TILE_SIZE, 256 * TILE_SIZE, Pixmap.Format.RGBA8888)
@@ -89,6 +92,10 @@ object CreateTileAtlas {
initialised = true
} }
fun getRenderTag(blockID: Int): RenderTag {
return tags.getOrDefault(blockID, defaultRenderTag)
}
private fun fileToAtlantes(it: FileHandle) {
val tilesPixmap = Pixmap(it)
val blockID = it.nameWithoutExtension().toInt()

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
work_files/dynamic_shape_2_0.pdf LFS Normal file

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long