erm
This commit is contained in:
parent
83fa6d980b
commit
f2a68b708b
3 changed files with 6 additions and 4 deletions
|
@ -1,3 +1,5 @@
|
||||||
# PotRogue
|
# 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 TILESET = CP437TilesetResources.rogueYun16x16()
|
||||||
val THEME = ColorThemes.cyberpunk()
|
val THEME = ColorThemes.cyberpunk()
|
||||||
const val SIDEBAR_WIDTH = 18
|
const val SIDEBAR_WIDTH = 18
|
||||||
const val LOG_AREA_HEIGHT = 8
|
const val LOG_AREA_HEIGHT = 12
|
||||||
|
|
||||||
// sizing
|
// sizing
|
||||||
const val WINDOW_WIDTH = 80
|
const val WINDOW_WIDTH = 80
|
||||||
|
|
|
@ -21,14 +21,14 @@ class PlayView (private val grid: TileGrid, private val game: Game = Game.create
|
||||||
init {
|
init {
|
||||||
//Create Sidebar
|
//Create Sidebar
|
||||||
val sidebar = Components.panel()
|
val sidebar = Components.panel()
|
||||||
.withSize(GameConfig.SIDEBAR_WIDTH, GameConfig.WINDOW_HEIGHT)
|
.withSize(GameConfig.SIDEBAR_WIDTH, GameConfig.WINDOW_HEIGHT - LOG_AREA_HEIGHT)
|
||||||
.withDecorations(box())
|
.withDecorations(box())
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
//Create area for logging
|
//Create area for logging
|
||||||
val logArea = Components.logArea()
|
val logArea = Components.logArea()
|
||||||
.withDecorations(box(title = "Log"))
|
.withDecorations(box(title = "Log"))
|
||||||
.withSize(WINDOW_WIDTH - SIDEBAR_WIDTH, LOG_AREA_HEIGHT)
|
.withSize(WINDOW_WIDTH, LOG_AREA_HEIGHT)
|
||||||
.withAlignmentWithin(screen, ComponentAlignment.BOTTOM_RIGHT)
|
.withAlignmentWithin(screen, ComponentAlignment.BOTTOM_RIGHT)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue