ui starting, menu screen, ingame help
This commit is contained in:
@ -1,11 +1,66 @@
|
||||
package screens
|
||||
|
||||
type TitleScreen struct {
|
||||
import (
|
||||
"lab.zaar.be/thefish/alchemyst-go/engine/types"
|
||||
"lab.zaar.be/thefish/alchemyst-go/ui/mainwindow"
|
||||
blt "lab.zaar.be/thefish/bearlibterminal"
|
||||
)
|
||||
|
||||
type TitleScreen struct {
|
||||
mw *mainwindow.MainWindow
|
||||
scm *types.ScreenManager
|
||||
}
|
||||
|
||||
func (ts *TitleScreen) UseEcs() bool {return false}
|
||||
func (ts *TitleScreen) Enter() {}
|
||||
func (ts *TitleScreen) HandleInput(input string) {}
|
||||
func (ts *TitleScreen) Exit() {}
|
||||
func (ts *TitleScreen) Render() {}
|
||||
func NewTitleScreen(mw *mainwindow.MainWindow, scm *types.ScreenManager) *TitleScreen {
|
||||
return &TitleScreen{mw: mw, scm: scm}
|
||||
}
|
||||
|
||||
func (ts *TitleScreen) UseEcs() bool { return false }
|
||||
func (ts *TitleScreen) Enter() {
|
||||
blt.Clear()
|
||||
}
|
||||
func (ts *TitleScreen) HandleInput(input string) {
|
||||
switch input {
|
||||
case "n":
|
||||
ts.scm.SetScreenByName("game")
|
||||
}
|
||||
}
|
||||
func (ts *TitleScreen) Exit() {
|
||||
blt.Clear()
|
||||
}
|
||||
func (ts *TitleScreen) Render() {
|
||||
blt.PrintExt(0, 0, ts.mw.W, ts.mw.H, 15, logo)
|
||||
}
|
||||
|
||||
var logo = `
|
||||
.ddxo. .c c xlx
|
||||
.kd. .0o:O, c0uO'
|
||||
xc 0; x: ko ,,
|
||||
;l Y; c, .Yct;
|
||||
.. .. .......
|
||||
:o: :k; .cxloOo x0. kO .olldk; do .;k lO. dO 'xllxk; ocokk:dl
|
||||
.lKO, .kl 'dl c l0l..;dK lkx..;d: dOx .cOx ,0o c0 kk. .Y .Oo
|
||||
.l0.k0. .0l lK. l0oxxxOK OK;xxx kKOklOkx ,kO;'do. ;xO: .Oo
|
||||
:OoooxO .Ol ;Xc , cK' dK xX. , Ox YY xx ,O0. . .oKx. .0o
|
||||
;k. .Ox Ok..'.,l ;Kk:;dk cKl lX: dKc,;oc kx kk OO dKl;lk: .0O
|
||||
l; ,o .kK0KKK; :Ok; c; l: .oxc. x: Ol xl .dk: .o
|
||||
|
||||
|
||||
|
||||
Alchemyst (c) 2011-2014 thefish <thefish@zaar.be>
|
||||
|
||||
|
||||
|
||||
[color=green]N[/color]ew dungeon run
|
||||
[color=green]L[/color]oad saved game
|
||||
Read [color=green]h[/color]elp file
|
||||
Highest [color=green]S[/color]cores
|
||||
|
||||
|
||||
|
||||
Roguebasin Libtcod Tutorial (c) 2010-2011, Jotaf Henriques
|
||||
Brogue 1.3 (c) 2010 Brian Walker
|
||||
Madness (c) 2010 hmp <humpolec@gmail.com>
|
||||
BearLibTerminal (c) Cfyz 2009-2019 <http://foo.wyrd.name/en:bearlibterminal>
|
||||
Gogue (c) jcerise
|
||||
`
|
Reference in New Issue
Block a user