Skip to content

Commit

Permalink
Cleanup LevelMapConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jobe-m committed Jul 29, 2024
1 parent 04a9339 commit 2fb3c51
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import korlibs.korge.fleks.components.*
import korlibs.korge.fleks.entity.*
import korlibs.korge.fleks.entity.EntityFactory.EntityConfig
import korlibs.korge.fleks.tags.*
import kotlinx.serialization.Serializable
import kotlinx.serialization.*


/**
Expand All @@ -17,7 +17,7 @@ import kotlinx.serialization.Serializable
*
* This class creates a level map background entity which is used for various backgrounds in the game and intro.
*/
@Serializable
@Serializable @SerialName("LevelMapConfig")
data class LevelMapConfig(
override val name: String,

Expand All @@ -38,8 +38,8 @@ data class LevelMapConfig(
TileMapType.TILED -> it += TiledLevelMapComponent(assetName)
}
it += PositionComponent(
x = this@LevelMapConfig.x,
y = this@LevelMapConfig.y
x = x,
y = y
)
it += SizeComponent() // Size of level map needs to be set after loading of map is finished
it += RgbaComponent().apply {
Expand Down

0 comments on commit 2fb3c51

Please sign in to comment.