We have tiles
This commit is contained in:
parent
4e46d50e58
commit
5f0a2b06c2
2 changed files with 32 additions and 0 deletions
|
@ -4,6 +4,7 @@ import org.hexworks.zircon.api.color.TileColor
|
|||
|
||||
object GameColors {
|
||||
//TODO: Change these colors to our own custom theme
|
||||
//We set some colors for tiles
|
||||
val WALL_FOREGROUND = TileColor.fromString("#75715E")
|
||||
val WALL_BACKGROUND = TileColor.fromString("#3E3D32")
|
||||
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
package group.ouroboros.potrogue.builders
|
||||
|
||||
import group.ouroboros.potrogue.builders.GameColors.FLOOR_BACKGROUND
|
||||
import group.ouroboros.potrogue.builders.GameColors.FLOOR_FOREGROUND
|
||||
import group.ouroboros.potrogue.builders.GameColors.WALL_BACKGROUND
|
||||
import group.ouroboros.potrogue.builders.GameColors.WALL_FOREGROUND
|
||||
import org.hexworks.zircon.api.data.CharacterTile
|
||||
import org.hexworks.zircon.api.data.Tile
|
||||
import org.hexworks.zircon.api.graphics.Symbols
|
||||
|
||||
object GameTileRepository {
|
||||
//Factory for creating tile objects, we use basic CharacterTiles here but Zircon can indeed use GraphicalTiles(textured) which will come later.
|
||||
|
||||
//Empty Tile
|
||||
val EMPTY: CharacterTile = Tile.empty()
|
||||
|
||||
//Floor Tile
|
||||
val FLOOR: CharacterTile = Tile.newBuilder()
|
||||
.withCharacter(Symbols.INTERPUNCT)
|
||||
.withForegroundColor(FLOOR_FOREGROUND)
|
||||
.withBackgroundColor(FLOOR_BACKGROUND)
|
||||
.buildCharacterTile()
|
||||
|
||||
//Wall Tile
|
||||
val WALL: CharacterTile = Tile.newBuilder()
|
||||
.withCharacter('#')
|
||||
.withForegroundColor(WALL_FOREGROUND)
|
||||
.withBackgroundColor(WALL_BACKGROUND)
|
||||
.buildCharacterTile()
|
||||
|
||||
}
|
Loading…
Reference in a new issue