This commit is contained in:
nelle 2023-10-28 21:09:10 -06:00
parent 83fa6d980b
commit f2a68b708b
3 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,5 @@
# PotRogue
### A WIP, opensource, roguelike project built in [Kotlin](https://kotlinlang.org/), utilizing [Zircon](https://hexworks.org/projects/zircon/).
The plan is to be able to self-contain the entire game on a DVD/Blue-Ray once "completed." thatd be so cool and so epic.
A WIP, opensource, roguelike project built in [Kotlin](https://kotlinlang.org/), utilizing [Zircon](https://hexworks.org/projects/zircon/).

View file

@ -14,7 +14,7 @@ object GameConfig {
val TILESET = CP437TilesetResources.rogueYun16x16()
val THEME = ColorThemes.cyberpunk()
const val SIDEBAR_WIDTH = 18
const val LOG_AREA_HEIGHT = 8
const val LOG_AREA_HEIGHT = 12
// sizing
const val WINDOW_WIDTH = 80

View file

@ -21,14 +21,14 @@ class PlayView (private val grid: TileGrid, private val game: Game = Game.create
init {
//Create Sidebar
val sidebar = Components.panel()
.withSize(GameConfig.SIDEBAR_WIDTH, GameConfig.WINDOW_HEIGHT)
.withSize(GameConfig.SIDEBAR_WIDTH, GameConfig.WINDOW_HEIGHT - LOG_AREA_HEIGHT)
.withDecorations(box())
.build()
//Create area for logging
val logArea = Components.logArea()
.withDecorations(box(title = "Log"))
.withSize(WINDOW_WIDTH - SIDEBAR_WIDTH, LOG_AREA_HEIGHT)
.withSize(WINDOW_WIDTH, LOG_AREA_HEIGHT)
.withAlignmentWithin(screen, ComponentAlignment.BOTTOM_RIGHT)
.build()