switch glow sprite

This commit is contained in:
minjaesong
2024-03-03 21:18:23 +09:00
parent fbe887b039
commit 3959de68b1
3 changed files with 12 additions and 3 deletions

Binary file not shown.

View File

@@ -69,7 +69,7 @@ basegame
* e.g. 0x02010034 will be translated as 2.1.52 * e.g. 0x02010034 will be translated as 2.1.52
* *
*/ */
const val VERSION_RAW: Long = 0x0000_000004_000001 const val VERSION_RAW: Long = 0x0000_000004_000002
// Commit counts up to the Release 0.3.0: 2259 // Commit counts up to the Release 0.3.0: 2259
// Commit counts up to the Release 0.3.1: 2278 // Commit counts up to the Release 0.3.1: 2278
// Commit counts up to the Release 0.3.2: 2732 // Commit counts up to the Release 0.3.2: 2732
@@ -77,9 +77,9 @@ basegame
// Commit counts up to the Release 0.4.0: 3631 // Commit counts up to the Release 0.4.0: 3631
// Commit counts up to the Release 0.4.1: 3678 // Commit counts up to the Release 0.4.1: 3678
// val VERSION_SNAPSHOT = Snapshot(0) // for normal dev val VERSION_SNAPSHOT = Snapshot(0) // for normal dev
// val VERSION_SNAPSHOT = ForcedSnapshot("24w07d") // for snapshot release // val VERSION_SNAPSHOT = ForcedSnapshot("24w07d") // for snapshot release
val VERSION_SNAPSHOT = null // for the release // val VERSION_SNAPSHOT = null // for the release
const val VERSION_TAG: String = "" const val VERSION_TAG: String = ""

View File

@@ -28,6 +28,7 @@ class FixtureSignalSwitchManual : Electric {
init { init {
val itemImage = FixtureItemBase.getItemImageFromSingleImage("basegame", "sprites/fixtures/signal_switch.tga") val itemImage = FixtureItemBase.getItemImageFromSingleImage("basegame", "sprites/fixtures/signal_switch.tga")
val itemImage2 = FixtureItemBase.getItemImageFromSingleImage("basegame", "sprites/fixtures/signal_switch_glow.tga")
density = 1400.0 density = 1400.0
setHitboxDimension(TerrarumAppConfiguration.TILE_SIZE, TerrarumAppConfiguration.TILE_SIZE, 0, 1) setHitboxDimension(TerrarumAppConfiguration.TILE_SIZE, TerrarumAppConfiguration.TILE_SIZE, 0, 1)
@@ -37,6 +38,11 @@ class FixtureSignalSwitchManual : Electric {
it.currentFrame = variant it.currentFrame = variant
it.delays = floatArrayOf(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY) it.delays = floatArrayOf(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY)
} }
makeNewSpriteGlow(TextureRegionPack(itemImage2.texture, TerrarumAppConfiguration.TILE_SIZE, TerrarumAppConfiguration.TILE_SIZE)).let {
it.setRowsAndFrames(2,8)
it.currentFrame = variant
it.delays = floatArrayOf(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY)
}
actorValue[AVKey.BASEMASS] = FixtureLogicSignalEmitter.MASS actorValue[AVKey.BASEMASS] = FixtureLogicSignalEmitter.MASS