ytopen.go 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. package main
  2. import (
  3. "red-green/door"
  4. "log"
  5. )
  6. func ANSIYtopen() []string {
  7. data := []string {
  8. "\x1b[40m\x1b[2J\x1b[2;8H\x1b[0;1;33;40m\xc9\x1b[3C\xbb\x1b[C\x1b[s",
  9. "\x1b[u\x1b[35m\xc9\xcd\xcd\xbb\x1b[C\x1b[31m\xcb\x1b[2C\xcb\x1b[C\x1b[36m\xcb\x1b[s",
  10. "\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",
  11. "\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",
  12. "\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",
  13. "\x1b[u\xcd\xbb\x1b[2C\x1b[37m\xdc\x1b[3;8H\x1b[33m\xba\x1b[3C\xba\x1b[C\x1b[s",
  14. "\x1b[u\x1b[35m\xba\x1b[2C\xba\x1b[C\x1b[31m\xcc\xbb\x1b[C\xba\x1b[C\x1b[36m\xba\x1b[s",
  15. "\x1b[u\xc9\xbc\x1b[C\x1b[32m\xba\x1b[4C\x1b[34m\xba\x1b[9C\x1b[33m\xba\x1b[s",
  16. "\x1b[u\x1b[3C\x1b[35m\xba\x1b[2C\xba\x1b[C\x1b[31m\xba\x1b[2C\xba\x1b[C\x1b[s",
  17. "\x1b[u\x1b[36m\xba\x1b[2C\xba\x1b[C\x1b[32m\xba\x1b[4C\x1b[34m\xba\x1b[2C\x1b[s",
  18. "\x1b[u\xba\x1b[2C\x1b[37m\xdb\x1b[4;8H\x1b[33m\xc8\xcd\xcb\xcd\xbc\x1b[C\x1b[s",
  19. "\x1b[u\x1b[35m\xcc\xcd\xcd\xb9\x1b[C\x1b[31m\xba\xc8\xbb\xba\x1b[C\x1b[36m\xcc\xb9\x1b[s",
  20. "\x1b[u\x1b[2C\x1b[32m\xcc\xcd\xb9\x1b[2C\x1b[34m\xcc\xcd\xb9\x1b[7C\x1b[33m\xba\x1b[s",
  21. "\x1b[u\x1b[3C\x1b[35m\xcc\xcd\xcb\xbc\x1b[C\x1b[31m\xcc\xcd\xcd\xb9\x1b[C\x1b[36m\xba\x1b[s",
  22. "\x1b[u\x1b[2C\xba\x1b[C\x1b[32m\xcc\xcd\xb9\x1b[2C\x1b[34m\xcc\xcd\xcb\xbc\x1b[2C\x1b[s",
  23. "\x1b[u\x1b[37m\xdb\x1b[5;10H\x1b[33m\xba\x1b[3C\x1b[35m\xba\x1b[2C\xba\x1b[s",
  24. "\x1b[u\x1b[C\x1b[31m\xba\x1b[C\xc8\xb9\x1b[C\x1b[36m\xba\xc8\xbb\x1b[C\x1b[32m\xba\x1b[s",
  25. "\x1b[u\x1b[4C\x1b[34m\xba\x1b[9C\x1b[33m\xba\x1b[3C\x1b[35m\xba\x1b[C\xc8\x1b[s",
  26. "\x1b[u\xbb\x1b[C\x1b[31m\xba\x1b[2C\xba\x1b[C\x1b[36m\xba\x1b[2C\xba\x1b[C\x1b[s",
  27. "\x1b[u\x1b[32m\xba\x1b[4C\x1b[34m\xba\x1b[C\xc8\xbb\x1b[2C\x1b[37m\xdf",
  28. "\x1b[6;10H\x1b[33m\xca\x1b[3C\x1b[35m\xca\x1b[2C\xca\x1b[C\x1b[31m\xca\x1b[s",
  29. "\x1b[u\x1b[2C\xca\x1b[C\x1b[36m\xca\x1b[C\xca\x1b[C\x1b[32m\xca\xcd\xcd\xbc\x1b[C\x1b[s",
  30. "\x1b[u\x1b[34m\xca\xcd\xcd\xbc\x1b[6C\x1b[33m\xca\x1b[3C\x1b[35m\xca\x1b[2C\xca\x1b[s",
  31. "\x1b[u\x1b[C\x1b[31m\xca\x1b[2C\xca\x1b[C\x1b[36m\xca\xcd\xcd\xbc\x1b[C\x1b[32m\x1b[s",
  32. "\x1b[u\xca\xcd\xcd\xbc\x1b[C\x1b[34m\xca\x1b[2C\xca\x1b[2C\x1b[37m\xdf",
  33. "\x1b[9;25H\x1b[32mWhere\x1b[Conly\x1b[Cthe\x1b[C\x1b[s",
  34. "\x1b[u\x1b[5;33mTOUGH\x1b[C\x1b[0;1;32mSurvive!",
  35. "\x1b[13;53H\x1b[31m \x1b[D\x15\x1b[14;53H\x1b[36m \x1b[D\x18",
  36. "\x1b[15;50H\x1b[32mMine\x1b[13;20H\x1b[31m \x1b[D\x10",
  37. "\x1b[14;20H\x1b[36m \x1b[D\x18\x1b[15;20H\x1b[32m(Dumbu\x1b[s",
  38. "\x1b[us Playerus)\x1b[13;20H \x1b[D\x10\x1b[1D \x1b[s",
  39. "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
  40. "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
  41. "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
  42. "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[3C \x1b[D\x10\x1b[1D \x1b[s",
  43. "\x1b[u \x1b[D\x10 \x1b[2D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
  44. "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
  45. "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10 \x1b[2D \x1b[D\x10\x1b[1D \x1b[s",
  46. "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
  47. "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[s",
  48. "\x1b[u \x1b[D\x10\x1b[1D \x1b[D\x10\x1b[1D \x1b[33m \x1b[D\x1d",
  49. "\x1b[14;53H \x1b[D\x1d\x1b[1A \x1b[D\x1d\x1b[12;52H \x1b[D\x1d",
  50. "\x1b[14;52H \x1b[D\x1d\x1b[C \x1b[D\x1d\x1b[12;54H \x1b[D\x1d\x1b[s",
  51. "\x1b[u\x1b[2D \x1b[D\x1d\x1b[13;52H \x1b[D\x1d\x1b[35m \x1b[D\x1d\x1b[s",
  52. "\x1b[u\x1b[B \x1b[D\x1d\x1b[12;54H \x1b[D\x1d\x1b[14;52H \x1b[D\x1d",
  53. "\x1b[12;52H \x1b[D\x1d\x1b[13;54H \x1b[D\x1d\x1b[14;53H\x1b[s",
  54. "\x1b[u \x1b[D\x1d\x1b[13;52H \x1b[D\x1d\x1b[1A \x1b[D\x1d\x1b[31m\x1b[s",
  55. "\x1b[u \x1b[D\x1d\x1b[13;52H \x1b[D\x1d\x1b[B \x1b[D\x1d\x1b[1A\x1b[s",
  56. "\x1b[u \x1b[D\x1d\x1b[12;52H \x1b[D\x1d \x1b[D\x1d\x1b[2B \x1b[D\x1d\x1b[s",
  57. "\x1b[u\x1b[3D \x1b[D\x1d\x1b[1A\x1b[36m \x1b[D\x1d\x1b[1A \x1b[D\x1d\x1b[s",
  58. "\x1b[u\x1b[3D \x1b[D\x1d\x1b[2B \x1b[D\x1d\x1b[1A \x1b[D\x1d\x1b[2D\x1b[s",
  59. "\x1b[u \x1b[D\x1d\x1b[2D \x1b[D\x1d\x1b[14;52H \x1b[D\x1d\x1b[C\x1b[s",
  60. "\x1b[u \x1b[D\x1d\x1b[12;53H \x1b[D\x1d\x1b[13;53H ",
  61. "\x1b[14;53H \x1b[2A \x1b[3D \x1b[13;54H \x1b[14;52H \x1b[s",
  62. "\x1b[u\x1b[2A \x1b[13;52H \x1b[14;54H \x1b[15;50H \x1b[s",
  63. "\x1b[u \x1b[14;20H \x1b[15;20H \x1b[s",
  64. "\x1b[u \x1b[12;37H\x1b[32m \x1b[D\x1d\x1b[2C \x1b[D\x1d\x1b[1D \x1b[s",
  65. "\x1b[u \x1b[D\x1d\x1b[13;39H \x1b[D\x19\x1b[14;37H\xc0\xc4\xc4\xc4\xd9",
  66. "\x1b[12;31H \x1b[13;33H \x1b[14;33H ",
  67. "\x1b[16;30H\x1b[31mBy Alan Davenport\x1b[46D ",
  68. "\x1b[17;28HBBS # \x1b[36m(\x1b[32m717\x1b[36m)-\x1b[s",
  69. "\x1b[u\x1b[35m686\x1b[36m-\x1b[33m3037\x1b[13H\x1b[37m \x1b[s",
  70. "\x1b[u \x1b[s",
  71. "\x1b[u \x1b[12;37H \x1b[3C \x1b[14;37H ",
  72. "\x1b[12;20H\"Whee fyte to the DEETH Hoo-m\x1b[s",
  73. "\x1b[uan Slyme!\"\x1b[18;34H9600 \x1b[33mH\x1b[35m\x1b[s",
  74. "\x1b[uS\x1b[31mT\x1b[11D \x1b[0m",
  75. }
  76. if !door.Unicode && !door.CP437 {
  77. log.Panicf("Call after door.Init() so Unicode/CP437 has been set.")
  78. }
  79. if door.Unicode {
  80. for idx := range data {
  81. data[idx] = door.CP437_to_Unicode(data[idx])
  82. }
  83. }
  84. return data
  85. }