12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- package main
- import (
- "red-green/door"
- "log"
- )
- func ANSIYtopen() []string {
- data := []string {
- "\x1b[40m\x1b[2J\x1b[2;8H\x1b[0;1;33;40m\xc9\x1b[3C\xbb\x1b[C\x1b[s",
- "\x1b[u\x1b[35m\xc9\xcd\xcd\xbb\x1b[C\x1b[31m\xcb\x1b[2C\xcb\x1b[C\x1b[36m\xcb\x1b[s",
- "\x1b[u\x1b[C\xcb\x1b[C\x1b[32m\xcb\xcd\xcd\xbb\x1b[C\x1b[34m\xcb\xcd\xcd\xbb\x1b[4C\x1b[s",
- "\x1b[u\x1b[33m\xc9\xcd\xcb\xcd\xbb\x1b[C\x1b[35m\xcb\xcd\xcd\xbb\x1b[C\x1b[31m\xc9\xcd\xcd\xbb\x1b[s",
- "\x1b[u\x1b[C\x1b[36m\xcb\xcd\xcd\xbb\x1b[C\x1b[32m\xcb\xcd\xcd\xbb\x1b[C\x1b[34m\xcb\xcd\x1b[s",
- "\x1b[u\xcd\xbb\x1b[2C\x1b[37m\xdc\x1b[3;8H\x1b[33m\xba\x1b[3C\xba\x1b[C\x1b[s",
- "\x1b[u\x1b[35m\xba\x1b[2C\xba\x1b[C\x1b[31m\xcc\xbb\x1b[C\xba\x1b[C\x1b[36m\xba\x1b[s",
- "\x1b[u\xc9\xbc\x1b[C\x1b[32m\xba\x1b[4C\x1b[34m\xba\x1b[9C\x1b[33m\xba\x1b[s",
- "\x1b[u\x1b[3C\x1b[35m\xba\x1b[2C\xba\x1b[C\x1b[31m\xba\x1b[2C\xba\x1b[C\x1b[s",
- "\x1b[u\x1b[36m\xba\x1b[2C\xba\x1b[C\x1b[32m\xba\x1b[4C\x1b[34m\xba\x1b[2C\x1b[s",
- "\x1b[u\xba\x1b[2C\x1b[37m\xdb\x1b[4;8H\x1b[33m\xc8\xcd\xcb\xcd\xbc\x1b[C\x1b[s",
- "\x1b[u\x1b[35m\x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\x1b[32m\x1b[s",
- "\x1b[u\xca\xcd\xcd\xbc\x1b[C\x1b[34m\xca\x1b[2C\xca\x1b[2C\x1b[37m\xdf",
- "\x1b[9;25H\x1b[32mWhere\x1b[Conly\x1b[Cthe\x1b[C\x1b[s",
- "\x1b[u\x1b[5;33mTOUGH\x1b[C\x1b[0;1;32mSurvive!",
- "\x1b[13;53H\x1b[31m \x1b[D\x15\x1b[14;53H\x1b[36m \x1b[D\x18",
- "\x1b[15;50H\x1b[32mMine\x1b[13;20H\x1b[31m \x1b[D\x10",
- "\x1b[14;20H\x1b[36m \x1b[D\x18\x1b[15;20H\x1b[32m(Dumbu\x1b[s",
- "\x1b[us Playerus)\x1b[13;20H \x1b[D\x10\x1b[1D \x1b[s",
- "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
- "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
- "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
- "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[3C \x1b[D\x10\x1b[1D \x1b[s",
- "\x1b[u \x1b[D\x10 \x1b[2D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
- "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
- "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10 \x1b[2D \x1b[D\x10\x1b[1D \x1b[s",
- "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
- "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
- "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[33m \x1b[D\x1d",
- "\x1b[14;53H \x1b[D\x1d\x1b[1A \x1b[D\x1d\x1b[12;52H \x1b[D\x1d",
- "\x1b[14;52H \x1b[D\x1d\x1b[C \x1b[D\x1d\x1b[12;54H \x1b[D\x1d\x1b[s",
- "\x1b[u\x1b[2D \x1b[D\x1d\x1b[13;52H \x1b[D\x1d\x1b[35m \x1b[D\x1d\x1b[s",
- "\x1b[u\x1b[B \x1b[D\x1d\x1b[12;54H \x1b[D\x1d\x1b[14;52H \x1b[D\x1d",
- "\x1b[12;52H \x1b[D\x1d\x1b[13;54H \x1b[D\x1d\x1b[14;53H\x1b[s",
- "\x1b[u \x1b[D\x1d\x1b[13;52H \x1b[D\x1d\x1b[1A \x1b[D\x1d\x1b[31m\x1b[s",
- "\x1b[u \x1b[D\x1d\x1b[13;52H \x1b[D\x1d\x1b[B \x1b[D\x1d\x1b[1A\x1b[s",
- "\x1b[u \x1b[D\x1d\x1b[12;52H \x1b[D\x1d \x1b[D\x1d\x1b[2B \x1b[D\x1d\x1b[s",
- "\x1b[u\x1b[3D \x1b[D\x1d\x1b[1A\x1b[36m \x1b[D\x1d\x1b[1A \x1b[D\x1d\x1b[s",
- "\x1b[u\x1b[3D \x1b[D\x1d\x1b[2B \x1b[D\x1d\x1b[1A \x1b[D\x1d\x1b[2D\x1b[s",
- "\x1b[u \x1b[D\x1d\x1b[2D \x1b[D\x1d\x1b[14;52H \x1b[D\x1d\x1b[C\x1b[s",
- "\x1b[u \x1b[D\x1d\x1b[12;53H \x1b[D\x1d\x1b[13;53H ",
- "\x1b[14;53H \x1b[2A \x1b[3D \x1b[13;54H \x1b[14;52H \x1b[s",
- "\x1b[u\x1b[2A \x1b[13;52H \x1b[14;54H \x1b[15;50H \x1b[s",
- "\x1b[u \x1b[14;20H \x1b[15;20H \x1b[s",
- "\x1b[u \x1b[12;37H\x1b[32m \x1b[D\x1d\x1b[2C \x1b[D\x1d\x1b[1D \x1b[s",
- "\x1b[u \x1b[D\x1d\x1b[13;39H \x1b[D\x19\x1b[14;37H\xc0\xc4\xc4\xc4\xd9",
- "\x1b[12;31H \x1b[13;33H \x1b[14;33H ",
- "\x1b[16;30H\x1b[31mBy Alan Davenport\x1b[46D ",
- "\x1b[17;28HBBS # \x1b[36m(\x1b[32m717\x1b[36m)-\x1b[s",
- "\x1b[u\x1b[35m686\x1b[36m-\x1b[33m3037\x1b[13H\x1b[37m \x1b[s",
- "\x1b[u \x1b[s",
- "\x1b[u \x1b[12;37H \x1b[3C \x1b[14;37H ",
- "\x1b[12;20H\"Whee fyte to the DEETH Hoo-m\x1b[s",
- "\x1b[uan Slyme!\"\x1b[18;34H9600 \x1b[33mH\x1b[35m\x1b[s",
- "\x1b[uS\x1b[31mT\x1b[11D \x1b[0m",
- }
- if !door.Unicode && !door.CP437 {
- log.Panicf("Call after door.Init() so Unicode/CP437 has been set.")
- }
- if door.Unicode {
- for idx := range data {
- data[idx] = door.CP437_to_Unicode(data[idx])
- }
- }
- return data
- }
|