Catppuccify

This commit is contained in:
nelle 2023-10-30 11:45:19 -06:00
parent f4c056c233
commit a9013b30b0
3 changed files with 29 additions and 19 deletions

View file

@ -3,14 +3,13 @@ package group.ouroboros.potrogue.builders
import org.hexworks.zircon.api.color.TileColor import org.hexworks.zircon.api.color.TileColor
object GameColors { object GameColors {
//TODO: Change these colors to our own custom theme
//We set some colors for tiles //We set some colors for tiles
val WALL_FOREGROUND = TileColor.fromString("#75715E") val wallForegroundColor = TileColor.fromString("#1e1e2e")
val WALL_BACKGROUND = TileColor.fromString("#3E3D32") val wallBackgroundColor = TileColor.fromString("#cba6f7")
val FLOOR_FOREGROUND = TileColor.fromString("#75715E") val floorForegroundColor = TileColor.fromString("#1e1e2e")
val FLOOR_BACKGROUND = TileColor.fromString("#1e2320") val floorBackgroundColor = TileColor.fromString("#11111b")
// Player Color? // Player Color?
val ACCENT_COLOR = TileColor.fromString("#FFCD22") val accentColor = TileColor.fromString("#94e2d5")
} }

View file

@ -1,10 +1,10 @@
package group.ouroboros.potrogue.builders package group.ouroboros.potrogue.builders
import group.ouroboros.potrogue.builders.GameColors.ACCENT_COLOR import group.ouroboros.potrogue.builders.GameColors.accentColor
import group.ouroboros.potrogue.builders.GameColors.FLOOR_BACKGROUND import group.ouroboros.potrogue.builders.GameColors.floorBackgroundColor
import group.ouroboros.potrogue.builders.GameColors.FLOOR_FOREGROUND import group.ouroboros.potrogue.builders.GameColors.floorForegroundColor
import group.ouroboros.potrogue.builders.GameColors.WALL_BACKGROUND import group.ouroboros.potrogue.builders.GameColors.wallBackgroundColor
import group.ouroboros.potrogue.builders.GameColors.WALL_FOREGROUND import group.ouroboros.potrogue.builders.GameColors.wallForegroundColor
import org.hexworks.zircon.api.data.CharacterTile import org.hexworks.zircon.api.data.CharacterTile
import org.hexworks.zircon.api.data.Tile import org.hexworks.zircon.api.data.Tile
import org.hexworks.zircon.api.graphics.Symbols import org.hexworks.zircon.api.graphics.Symbols
@ -19,22 +19,22 @@ object GameTileRepository {
//Floor Tile //Floor Tile
val FLOOR: CharacterTile = Tile.newBuilder() val FLOOR: CharacterTile = Tile.newBuilder()
.withCharacter(Symbols.INTERPUNCT) .withCharacter(Symbols.INTERPUNCT)
.withForegroundColor(FLOOR_FOREGROUND) .withForegroundColor(floorForegroundColor)
.withBackgroundColor(FLOOR_BACKGROUND) .withBackgroundColor(floorBackgroundColor)
.buildCharacterTile() .buildCharacterTile()
//Wall Tile //Wall Tile
val WALL: CharacterTile = Tile.newBuilder() val WALL: CharacterTile = Tile.newBuilder()
.withCharacter('▒') .withCharacter('▒')
.withForegroundColor(WALL_FOREGROUND) .withForegroundColor(wallForegroundColor)
.withBackgroundColor(WALL_BACKGROUND) .withBackgroundColor(wallBackgroundColor)
.buildCharacterTile() .buildCharacterTile()
//Player Tile //Player Tile
val PLAYER: CharacterTile = Tile.newBuilder() val PLAYER: CharacterTile = Tile.newBuilder()
.withCharacter('☺') .withCharacter('☺')
.withBackgroundColor(FLOOR_BACKGROUND) .withBackgroundColor(floorBackgroundColor)
.withForegroundColor(ACCENT_COLOR) .withForegroundColor(accentColor)
.buildCharacterTile() .buildCharacterTile()
} }

View file

@ -3,14 +3,15 @@ package group.ouroboros.potrogue.data.config
import group.ouroboros.potrogue.GAME_ID import group.ouroboros.potrogue.GAME_ID
import group.ouroboros.potrogue.GAME_VER import group.ouroboros.potrogue.GAME_VER
import org.hexworks.zircon.api.CP437TilesetResources 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.application.AppConfig
import org.hexworks.zircon.api.color.TileColor
import org.hexworks.zircon.api.data.Size3D import org.hexworks.zircon.api.data.Size3D
object GameConfig { object GameConfig {
// look & feel // look & feel
var TILESET = CP437TilesetResources.rogueYun16x16() var TILESET = CP437TilesetResources.rogueYun16x16()
val THEME = ColorThemes.cyberpunk()
val WORLD_SIZE = Size3D.create(Config().windowWidth * 3, Config().windowHeight * 3 , Config().dungeonLevels) val WORLD_SIZE = Size3D.create(Config().windowWidth * 3, Config().windowHeight * 3 , Config().dungeonLevels)
val GAME_AREA_SIZE = Size3D.create( val GAME_AREA_SIZE = Size3D.create(
@ -25,4 +26,14 @@ object GameConfig {
.withTitle("$GAME_ID | $GAME_VER") .withTitle("$GAME_ID | $GAME_VER")
.withIcon("assets/icon.png") .withIcon("assets/icon.png")
.build() .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
} }