erm
This commit is contained in:
parent
83fa6d980b
commit
f2a68b708b
3 changed files with 6 additions and 4 deletions
|
@ -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/).
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue