const.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. WIDTH = 80
  2. HEIGHT = 49
  3. WWIDTH = WIDTH * 9
  4. WHEIGHT = HEIGHT * 12 + 12
  5. ACTION = {
  6. SHOW_ALL = -1, -- TODO: DELET THIS
  7. NONE = 0,
  8. UPLEFT = 1,
  9. UP = 2,
  10. UPRIGHT = 3,
  11. LEFT = 4,
  12. RIGHT = 5,
  13. DOWNLEFT = 6,
  14. DOWN = 7,
  15. DOWNRIGHT = 8,
  16. STAIR = 9,
  17. HELP = 10,
  18. RESTART = 11,
  19. STAIR = 12,
  20. GRAPHICS_SETTINGS = 13,
  21. }
  22. COLOR = {
  23. WHITE = {255, 255, 255},
  24. RED = {255, 0, 0},
  25. YELLOW = {255, 255, 0},
  26. GRAY = {150, 150, 150},
  27. BULLET = {255, 152, 0},
  28. CHEST = {255, 255, 150},
  29. }
  30. local major, minor = love.getVersion()
  31. if major >= 11 then
  32. for k, v in pairs(COLOR) do
  33. COLOR[k] = {v[1] / 255, v[2] / 255, v[3] / 255}
  34. end
  35. end
  36. KEYS = {
  37. y = ACTION.UPLEFT,
  38. k = ACTION.UP,
  39. u = ACTION.UPRIGHT,
  40. h = ACTION.LEFT,
  41. l = ACTION.RIGHT,
  42. b = ACTION.DOWNLEFT,
  43. j = ACTION.DOWN,
  44. n = ACTION.DOWNRIGHT,
  45. r = ACTION.RESTART,
  46. ['7'] = ACTION.UPLEFT,
  47. ['8'] = ACTION.UP,
  48. ['9'] = ACTION.UPRIGHT,
  49. ['4'] = ACTION.LEFT,
  50. ['6'] = ACTION.RIGHT,
  51. ['1'] = ACTION.DOWNLEFT,
  52. ['2'] = ACTION.DOWN,
  53. ['3'] = ACTION.DOWNRIGHT,
  54. q = ACTION.UPLEFT,
  55. w = ACTION.UP,
  56. e = ACTION.UPRIGHT,
  57. a = ACTION.LEFT,
  58. d = ACTION.RIGHT,
  59. z = ACTION.DOWNLEFT,
  60. s = ACTION.DOWN,
  61. x = ACTION.DOWNRIGHT,
  62. ['.'] = ACTION.NONE,
  63. ['?'] = ACTION.HELP,
  64. ['>'] = ACTION.STAIR,
  65. ['g'] = ACTION.GRAPHICS_SETTINGS,
  66. }
  67. ITEM_NAMES = {
  68. ADJECTIVE = {'Wacky', 'Smelly', 'Terrible', 'Amazing', 'Incredible', 'Ordinary', 'Average', 'Horizontal', 'Vertical', 'Rational', 'Irrational', 'Grouchy', 'Artificial', 'Organic', 'Non-GMO', 'Gluten-Free', 'Free', 'Expensive', 'Cheap', 'Outstanding', 'Nice', 'Little', 'Big', 'Colossal', 'Microscopic', 'Absolute'},
  69. NOUN = {'Twig', 'Stick', 'Rod', 'Crystal', 'Storybook', 'Artifact', 'Artefact', 'Statue', 'Orb', 'Wrapper', 'Bot', 'Elephant', 'Pencil Case', 'Tape', 'Shelf', 'Unit', 'Bed-monster', 'Credit Card', 'Video Game', 'Console', 'Pasta', 'Cucumber', 'Hotdog', 'NPM Package', 'Specification'},
  70. DESCRIPTION = {'Sight', 'Awareness', 'Dexterity', 'Skill', 'Doing-It-All', 'Everything', 'Nothing', 'Fear', 'Despair', 'Lust', 'Positivity', 'Negativity', 'Changing-Nothing', 'Screaming', 'Helping Out', 'Discovery', 'Economy', 'Math', 'Ice', 'Fire', 'Lightning', 'Water', 'Air', 'Wind', 'Markov'}
  71. }