|
@@ -171,6 +171,68 @@ func font_demo(d *door.Door) {
|
|
|
}
|
|
|
d.Write(door.CRNL)
|
|
|
|
|
|
+ boner := FontBoner()
|
|
|
+ output, l = boner.Output("Welcome!")
|
|
|
+ centering = strings.Repeat(" ", (door.Width-l)/2)
|
|
|
+
|
|
|
+ for _, o := range output {
|
|
|
+ if door.Unicode {
|
|
|
+ d.Write(centering + CP437Bytes_to_Unicode(o) + door.Reset + door.CRNL)
|
|
|
+ } else {
|
|
|
+ d.Write(centering + string(o) + door.Reset + door.CRNL)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ d.Write(door.CRNL)
|
|
|
+ press_a_key(d)
|
|
|
+
|
|
|
+ descent := FontDescent()
|
|
|
+ output, l = descent.Output("Meanwhile...")
|
|
|
+ if l > door.Width {
|
|
|
+ output, l = descent.Output("BUGZ !?!")
|
|
|
+ }
|
|
|
+ centering = strings.Repeat(" ", (door.Width-l)/2)
|
|
|
+
|
|
|
+ for _, o := range output {
|
|
|
+ if door.Unicode {
|
|
|
+ d.Write(centering + CP437Bytes_to_Unicode(o) + door.Reset + door.CRNL)
|
|
|
+ } else {
|
|
|
+ d.Write(centering + string(o) + door.Reset + door.CRNL)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ d.Write(door.CRNL)
|
|
|
+
|
|
|
+ remorse := FontRemorse()
|
|
|
+ output, l = remorse.Output("Enjoy the fonts")
|
|
|
+ if l > door.Width {
|
|
|
+ output, l = remorse.Output("Amazing")
|
|
|
+ }
|
|
|
+ centering = strings.Repeat(" ", (door.Width-l)/2)
|
|
|
+
|
|
|
+ for _, o := range output {
|
|
|
+ if door.Unicode {
|
|
|
+ d.Write(centering + CP437Bytes_to_Unicode(o) + door.Reset + door.CRNL)
|
|
|
+ } else {
|
|
|
+ d.Write(centering + string(o) + door.Reset + door.CRNL)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ d.Write(door.CRNL)
|
|
|
+
|
|
|
+ dungeon := FontDungeon()
|
|
|
+ output, l = dungeon.Output("Until NEXT time")
|
|
|
+ if l > door.Width {
|
|
|
+ output, l = dungeon.Output("Beware")
|
|
|
+ }
|
|
|
+ centering = strings.Repeat(" ", (door.Width-l)/2)
|
|
|
+
|
|
|
+ for _, o := range output {
|
|
|
+ if door.Unicode {
|
|
|
+ d.Write(centering + CP437Bytes_to_Unicode(o) + door.Reset + door.CRNL)
|
|
|
+ } else {
|
|
|
+ d.Write(centering + string(o) + door.Reset + door.CRNL)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ d.Write(door.CRNL)
|
|
|
+
|
|
|
}
|
|
|
|
|
|
func input_demo(d *door.Door) {
|