mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
enough resources to test impl the thing
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -3,3 +3,4 @@
|
|||||||
*.tga filter=lfs diff=lfs merge=lfs -text
|
*.tga filter=lfs diff=lfs merge=lfs -text
|
||||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
*.opus filter=lfs diff=lfs merge=lfs -text
|
*.opus filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|||||||
BIN
assets/graphics/blocks/init.tga
LFS
BIN
assets/graphics/blocks/init.tga
LFS
Binary file not shown.
BIN
assets/mods/basegame/blocks/148.tga
LFS
Normal file
BIN
assets/mods/basegame/blocks/148.tga
LFS
Normal file
Binary file not shown.
@@ -20,7 +20,9 @@ object CreateTileAtlas {
|
|||||||
lateinit var atlasAutumn: Pixmap
|
lateinit var atlasAutumn: Pixmap
|
||||||
lateinit var atlasWinter: Pixmap
|
lateinit var atlasWinter: Pixmap
|
||||||
lateinit var atlasSpring: 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
|
var initialised = false
|
||||||
private set
|
private set
|
||||||
|
|
||||||
@@ -39,6 +41,7 @@ object CreateTileAtlas {
|
|||||||
operator fun invoke(updateExisting: Boolean = false) { if (updateExisting || !initialised) {
|
operator fun invoke(updateExisting: Boolean = false) { if (updateExisting || !initialised) {
|
||||||
|
|
||||||
tags = HashMap<Int, RenderTag>()
|
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)
|
atlas = Pixmap(256 * TILE_SIZE, 256 * TILE_SIZE, Pixmap.Format.RGBA8888)
|
||||||
atlasAutumn = 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
|
initialised = true
|
||||||
} }
|
} }
|
||||||
|
|
||||||
|
fun getRenderTag(blockID: Int): RenderTag {
|
||||||
|
return tags.getOrDefault(blockID, defaultRenderTag)
|
||||||
|
}
|
||||||
|
|
||||||
private fun fileToAtlantes(it: FileHandle) {
|
private fun fileToAtlantes(it: FileHandle) {
|
||||||
val tilesPixmap = Pixmap(it)
|
val tilesPixmap = Pixmap(it)
|
||||||
val blockID = it.nameWithoutExtension().toInt()
|
val blockID = it.nameWithoutExtension().toInt()
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
work_files/dynamic_shape_2_0.pdf
LFS
Normal file
BIN
work_files/dynamic_shape_2_0.pdf
LFS
Normal file
Binary file not shown.
BIN
work_files/graphics/terrain/glass_crude.psd
LFS
Normal file
BIN
work_files/graphics/terrain/glass_crude.psd
LFS
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user