Catppuccify
This commit is contained in:
parent
f4c056c233
commit
a9013b30b0
3 changed files with 29 additions and 19 deletions
|
@ -3,14 +3,13 @@ package group.ouroboros.potrogue.builders
|
|||
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")
|
||||
val wallForegroundColor = TileColor.fromString("#1e1e2e")
|
||||
val wallBackgroundColor = TileColor.fromString("#cba6f7")
|
||||
|
||||
val FLOOR_FOREGROUND = TileColor.fromString("#75715E")
|
||||
val FLOOR_BACKGROUND = TileColor.fromString("#1e2320")
|
||||
val floorForegroundColor = TileColor.fromString("#1e1e2e")
|
||||
val floorBackgroundColor = TileColor.fromString("#11111b")
|
||||
|
||||
// Player Color?
|
||||
val ACCENT_COLOR = TileColor.fromString("#FFCD22")
|
||||
val accentColor = TileColor.fromString("#94e2d5")
|
||||
}
|
|
@ -1,10 +1,10 @@
|
|||
package group.ouroboros.potrogue.builders
|
||||
|
||||
import group.ouroboros.potrogue.builders.GameColors.ACCENT_COLOR
|
||||
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 group.ouroboros.potrogue.builders.GameColors.accentColor
|
||||
import group.ouroboros.potrogue.builders.GameColors.floorBackgroundColor
|
||||
import group.ouroboros.potrogue.builders.GameColors.floorForegroundColor
|
||||
import group.ouroboros.potrogue.builders.GameColors.wallBackgroundColor
|
||||
import group.ouroboros.potrogue.builders.GameColors.wallForegroundColor
|
||||
import org.hexworks.zircon.api.data.CharacterTile
|
||||
import org.hexworks.zircon.api.data.Tile
|
||||
import org.hexworks.zircon.api.graphics.Symbols
|
||||
|
@ -19,22 +19,22 @@ object GameTileRepository {
|
|||
//Floor Tile
|
||||
val FLOOR: CharacterTile = Tile.newBuilder()
|
||||
.withCharacter(Symbols.INTERPUNCT)
|
||||
.withForegroundColor(FLOOR_FOREGROUND)
|
||||
.withBackgroundColor(FLOOR_BACKGROUND)
|
||||
.withForegroundColor(floorForegroundColor)
|
||||
.withBackgroundColor(floorBackgroundColor)
|
||||
.buildCharacterTile()
|
||||
|
||||
//Wall Tile
|
||||
val WALL: CharacterTile = Tile.newBuilder()
|
||||
.withCharacter('▒')
|
||||
.withForegroundColor(WALL_FOREGROUND)
|
||||
.withBackgroundColor(WALL_BACKGROUND)
|
||||
.withForegroundColor(wallForegroundColor)
|
||||
.withBackgroundColor(wallBackgroundColor)
|
||||
.buildCharacterTile()
|
||||
|
||||
//Player Tile
|
||||
val PLAYER: CharacterTile = Tile.newBuilder()
|
||||
.withCharacter('☺')
|
||||
.withBackgroundColor(FLOOR_BACKGROUND)
|
||||
.withForegroundColor(ACCENT_COLOR)
|
||||
.withBackgroundColor(floorBackgroundColor)
|
||||
.withForegroundColor(accentColor)
|
||||
.buildCharacterTile()
|
||||
|
||||
}
|
|
@ -3,14 +3,15 @@ package group.ouroboros.potrogue.data.config
|
|||
import group.ouroboros.potrogue.GAME_ID
|
||||
import group.ouroboros.potrogue.GAME_VER
|
||||
import org.hexworks.zircon.api.CP437TilesetResources
|
||||
import org.hexworks.zircon.api.ColorThemes
|
||||
import org.hexworks.zircon.api.ColorThemes.newBuilder
|
||||
import org.hexworks.zircon.api.application.AppConfig
|
||||
import org.hexworks.zircon.api.color.TileColor
|
||||
import org.hexworks.zircon.api.data.Size3D
|
||||
|
||||
|
||||
object GameConfig {
|
||||
// look & feel
|
||||
var TILESET = CP437TilesetResources.rogueYun16x16()
|
||||
val THEME = ColorThemes.cyberpunk()
|
||||
|
||||
val WORLD_SIZE = Size3D.create(Config().windowWidth * 3, Config().windowHeight * 3 , Config().dungeonLevels)
|
||||
val GAME_AREA_SIZE = Size3D.create(
|
||||
|
@ -25,4 +26,14 @@ object GameConfig {
|
|||
.withTitle("$GAME_ID | $GAME_VER")
|
||||
.withIcon("assets/icon.png")
|
||||
.build()
|
||||
|
||||
var catppuccinMocha = newBuilder()
|
||||
.withAccentColor(TileColor.fromString("#b4befe"))
|
||||
.withPrimaryForegroundColor(TileColor.fromString("#f5c2e7"))
|
||||
.withSecondaryForegroundColor(TileColor.fromString("#cba6f7"))
|
||||
.withPrimaryBackgroundColor(TileColor.fromString("#1e1e2e"))
|
||||
.withSecondaryBackgroundColor(TileColor.fromString("#11111b"))
|
||||
.build()
|
||||
|
||||
val THEME = catppuccinMocha
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue