tcod 19.4.1__tar.gz → 19.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. {tcod-19.4.1 → tcod-19.5.0}/CHANGELOG.md +2059 -2047
  2. {tcod-19.4.1 → tcod-19.5.0}/CONTRIBUTING.md +46 -46
  3. {tcod-19.4.1 → tcod-19.5.0}/LICENSE.txt +0 -0
  4. {tcod-19.4.1 → tcod-19.5.0}/MANIFEST.in +23 -23
  5. {tcod-19.4.1 → tcod-19.5.0}/PKG-INFO +152 -152
  6. {tcod-19.4.1 → tcod-19.5.0}/README.rst +105 -105
  7. {tcod-19.4.1 → tcod-19.5.0}/build_libtcod.py +659 -658
  8. {tcod-19.4.1 → tcod-19.5.0}/build_sdl.py +416 -416
  9. {tcod-19.4.1 → tcod-19.5.0}/libtcod/CHANGELOG.md +1524 -1507
  10. {tcod-19.4.1 → tcod-19.5.0}/libtcod/CMakeLists.txt +63 -82
  11. {tcod-19.4.1 → tcod-19.5.0}/libtcod/CONTRIBUTING.md +99 -99
  12. {tcod-19.4.1 → tcod-19.5.0}/libtcod/LIBTCOD-CREDITS.txt +47 -47
  13. {tcod-19.4.1 → tcod-19.5.0}/libtcod/LICENSE.txt +30 -30
  14. {tcod-19.4.1 → tcod-19.5.0}/libtcod/README.md +96 -96
  15. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/bresenham.h +88 -88
  16. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/bresenham_c.c +195 -195
  17. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/bsp.h +77 -77
  18. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/bsp_c.c +212 -212
  19. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/color.c +768 -768
  20. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/color.h +537 -537
  21. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/config.h +148 -148
  22. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console.c +496 -496
  23. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console.h +470 -470
  24. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console_drawing.c +171 -171
  25. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console_drawing.h +230 -230
  26. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console_etc.c +1399 -1399
  27. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console_etc.h +164 -162
  28. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console_init.c +142 -142
  29. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console_init.h +224 -224
  30. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console_printing.c +1562 -1562
  31. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console_printing.h +562 -562
  32. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console_rexpaint.c +399 -399
  33. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console_rexpaint.h +190 -190
  34. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/console_types.h +568 -566
  35. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/context.c +258 -258
  36. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/context.h +609 -609
  37. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/context_init.c +308 -308
  38. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/context_init.h +98 -98
  39. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/context_viewport.c +57 -57
  40. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/context_viewport.h +108 -108
  41. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/error.c +59 -59
  42. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/error.h +133 -133
  43. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/fov.h +130 -130
  44. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/fov_c.c +246 -246
  45. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/fov_circular_raycasting.c +118 -118
  46. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/fov_diamond_raycasting.c +252 -252
  47. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/fov_permissive2.c +330 -330
  48. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/fov_recursive_shadowcasting.c +134 -134
  49. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/fov_restrictive.c +265 -265
  50. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/fov_symmetric_shadowcast.c +179 -179
  51. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/fov_types.h +110 -110
  52. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/globals.c +51 -51
  53. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/globals.h +64 -64
  54. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/heapq.c +196 -196
  55. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/heapq.h +65 -65
  56. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/heightmap.h +116 -116
  57. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/heightmap_c.c +666 -666
  58. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/image.h +123 -123
  59. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/image_c.c +883 -883
  60. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/lex.h +127 -127
  61. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/lex_c.c +585 -585
  62. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/libtcod.h +108 -108
  63. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/libtcod_int.h +471 -529
  64. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/list.h +75 -75
  65. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/list_c.c +313 -313
  66. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/logging.c +128 -128
  67. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/logging.h +124 -124
  68. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/mersenne.h +65 -65
  69. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/mersenne_c.c +495 -495
  70. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/mersenne_types.h +90 -90
  71. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/mouse.h +61 -59
  72. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/mouse_types.h +123 -122
  73. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/namegen.h +64 -64
  74. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/namegen_c.c +685 -685
  75. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/noise.h +163 -163
  76. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/noise_c.c +991 -991
  77. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/noise_defaults.h +41 -41
  78. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/parser.h +197 -197
  79. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/parser_c.c +931 -931
  80. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/path.h +94 -94
  81. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/path_c.c +674 -674
  82. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/pathfinder.c +311 -311
  83. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/pathfinder.h +85 -85
  84. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/pathfinder_frontier.c +102 -102
  85. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/pathfinder_frontier.h +98 -98
  86. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/portability.h +140 -140
  87. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/random.c +32 -32
  88. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/random.h +62 -62
  89. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/renderer_sdl2.c +964 -953
  90. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/renderer_sdl2.h +201 -199
  91. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/renderer_xterm.c +680 -680
  92. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/renderer_xterm.h +45 -45
  93. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/sdl2/console_grid.glslf +16 -16
  94. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/sdl2/console_grid.glslv +22 -22
  95. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/sdl2/event.h +96 -87
  96. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/sys.h +260 -257
  97. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/sys_c.c +554 -554
  98. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/sys_sdl_c.c +1338 -1338
  99. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/sys_sdl_img_bmp.c +60 -60
  100. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/sys_sdl_img_png.c +120 -120
  101. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/tileset.c +418 -418
  102. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/tileset.h +324 -324
  103. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/tileset_bdf.c +343 -343
  104. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/tileset_bdf.h +73 -73
  105. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/tileset_fallback.c +70 -70
  106. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/tileset_fallback.h +50 -50
  107. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/tileset_render.c +133 -133
  108. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/tileset_render.h +74 -74
  109. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/tileset_truetype.c +194 -194
  110. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/tileset_truetype.h +59 -59
  111. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/timer.h +35 -35
  112. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/tree.h +52 -52
  113. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/tree_c.c +47 -47
  114. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/txtfield.h +65 -61
  115. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/txtfield_c.c +719 -719
  116. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/utility.h +44 -44
  117. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/version.h +89 -89
  118. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/wrappers.c +299 -299
  119. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/wrappers.h +131 -131
  120. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/zip.h +96 -96
  121. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod/zip_c.c +450 -450
  122. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod.h +33 -33
  123. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/libtcod_c.c +72 -72
  124. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/khrplatform.h +282 -282
  125. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/lodepng.c +6300 -6300
  126. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/lodepng.h +1770 -1770
  127. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/stb.c +3 -3
  128. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/stb_ds.h +1895 -1895
  129. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/stb_truetype.h +4894 -4894
  130. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/utf8proc/utf8proc.c +754 -754
  131. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/utf8proc/utf8proc.h +699 -699
  132. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/utf8proc/utf8proc_data.c +14385 -14385
  133. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/adler32.c +186 -186
  134. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/compress.c +86 -86
  135. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/crc32.c +442 -442
  136. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/crc32.h +441 -441
  137. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/deflate.c +2163 -2163
  138. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/deflate.h +349 -349
  139. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/gzclose.c +25 -25
  140. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/gzguts.h +218 -218
  141. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/gzlib.c +637 -637
  142. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/gzread.c +654 -654
  143. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/gzwrite.c +665 -665
  144. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/infback.c +640 -640
  145. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/inffast.c +323 -323
  146. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/inffast.h +11 -11
  147. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/inffixed.h +94 -94
  148. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/inflate.c +1561 -1561
  149. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/inflate.h +125 -125
  150. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/inftrees.c +304 -304
  151. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/inftrees.h +62 -62
  152. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/trees.c +1203 -1203
  153. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/trees.h +127 -127
  154. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/uncompr.c +93 -93
  155. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/zconf.h +534 -534
  156. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/zlib.h +1912 -1912
  157. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/zutil.c +325 -325
  158. {tcod-19.4.1 → tcod-19.5.0}/libtcod/src/vendor/zlib/zutil.h +271 -271
  159. {tcod-19.4.1 → tcod-19.5.0}/libtcodpy.py +12 -12
  160. {tcod-19.4.1 → tcod-19.5.0}/pyproject.toml +180 -180
  161. {tcod-19.4.1 → tcod-19.5.0}/setup.cfg +4 -4
  162. {tcod-19.4.1 → tcod-19.5.0}/setup.py +50 -50
  163. {tcod-19.4.1 → tcod-19.5.0}/tcod/__init__.py +40 -40
  164. {tcod-19.4.1 → tcod-19.5.0}/tcod/__pyinstaller/__init__.py +10 -10
  165. {tcod-19.4.1 → tcod-19.5.0}/tcod/__pyinstaller/hook-tcod.py +14 -14
  166. {tcod-19.4.1 → tcod-19.5.0}/tcod/_internal.py +235 -235
  167. {tcod-19.4.1 → tcod-19.5.0}/tcod/_libtcod.pyi +9593 -9729
  168. {tcod-19.4.1 → tcod-19.5.0}/tcod/bsp.py +269 -269
  169. {tcod-19.4.1 → tcod-19.5.0}/tcod/cdef.h +23 -23
  170. {tcod-19.4.1 → tcod-19.5.0}/tcod/cffi.h +11 -11
  171. {tcod-19.4.1 → tcod-19.5.0}/tcod/cffi.py +75 -75
  172. {tcod-19.4.1 → tcod-19.5.0}/tcod/color.py +133 -133
  173. {tcod-19.4.1 → tcod-19.5.0}/tcod/console.py +1646 -1646
  174. {tcod-19.4.1 → tcod-19.5.0}/tcod/constants.py +805 -805
  175. {tcod-19.4.1 → tcod-19.5.0}/tcod/context.py +625 -625
  176. {tcod-19.4.1 → tcod-19.5.0}/tcod/event.py +2912 -2912
  177. {tcod-19.4.1 → tcod-19.5.0}/tcod/event_constants.py +568 -568
  178. {tcod-19.4.1 → tcod-19.5.0}/tcod/image.py +418 -418
  179. {tcod-19.4.1 → tcod-19.5.0}/tcod/libtcodpy.py +4843 -4843
  180. {tcod-19.4.1 → tcod-19.5.0}/tcod/los.py +66 -66
  181. {tcod-19.4.1 → tcod-19.5.0}/tcod/map.py +263 -263
  182. {tcod-19.4.1 → tcod-19.5.0}/tcod/noise.c +64 -64
  183. {tcod-19.4.1 → tcod-19.5.0}/tcod/noise.h +35 -35
  184. {tcod-19.4.1 → tcod-19.5.0}/tcod/noise.py +499 -499
  185. {tcod-19.4.1 → tcod-19.5.0}/tcod/path.c +492 -492
  186. {tcod-19.4.1 → tcod-19.5.0}/tcod/path.h +154 -154
  187. {tcod-19.4.1 → tcod-19.5.0}/tcod/path.py +1552 -1552
  188. {tcod-19.4.1 → tcod-19.5.0}/tcod/random.h +16 -16
  189. {tcod-19.4.1 → tcod-19.5.0}/tcod/random.py +179 -179
  190. {tcod-19.4.1 → tcod-19.5.0}/tcod/render.py +106 -106
  191. {tcod-19.4.1 → tcod-19.5.0}/tcod/sdl/__init__.py +5 -5
  192. {tcod-19.4.1 → tcod-19.5.0}/tcod/sdl/_internal.py +219 -219
  193. {tcod-19.4.1 → tcod-19.5.0}/tcod/sdl/audio.py +1069 -1069
  194. {tcod-19.4.1 → tcod-19.5.0}/tcod/sdl/constants.py +489 -489
  195. {tcod-19.4.1 → tcod-19.5.0}/tcod/sdl/joystick.py +397 -397
  196. {tcod-19.4.1 → tcod-19.5.0}/tcod/sdl/mouse.py +266 -266
  197. {tcod-19.4.1 → tcod-19.5.0}/tcod/sdl/render.py +791 -791
  198. {tcod-19.4.1 → tcod-19.5.0}/tcod/sdl/sys.py +80 -80
  199. {tcod-19.4.1 → tcod-19.5.0}/tcod/sdl/video.py +582 -582
  200. {tcod-19.4.1 → tcod-19.5.0}/tcod/tcod.c +32 -32
  201. {tcod-19.4.1 → tcod-19.5.0}/tcod/tcod.h +15 -15
  202. {tcod-19.4.1 → tcod-19.5.0}/tcod/tcod.py +90 -90
  203. {tcod-19.4.1 → tcod-19.5.0}/tcod/tileset.py +925 -925
  204. {tcod-19.4.1 → tcod-19.5.0}/tcod/version.py +34 -34
  205. {tcod-19.4.1 → tcod-19.5.0}/tcod.egg-info/PKG-INFO +152 -152
  206. {tcod-19.4.1 → tcod-19.5.0}/tcod.egg-info/SOURCES.txt +0 -18
  207. {tcod-19.4.1 → tcod-19.5.0}/tox.ini +17 -17
  208. {tcod-19.4.1 → tcod-19.5.0}/requirements.txt +0 -0
  209. {tcod-19.4.1 → tcod-19.5.0}/tcod/py.typed +0 -0
  210. {tcod-19.4.1 → tcod-19.5.0}/tcod.egg-info/dependency_links.txt +0 -0
  211. {tcod-19.4.1 → tcod-19.5.0}/tcod.egg-info/entry_points.txt +0 -0
  212. {tcod-19.4.1 → tcod-19.5.0}/tcod.egg-info/requires.txt +0 -0
  213. {tcod-19.4.1 → tcod-19.5.0}/tcod.egg-info/top_level.txt +0 -0
@@ -1,2047 +1,2059 @@
1
- # Changelog
2
-
3
- Changes relevant to the users of python-tcod are documented here.
4
-
5
- This project adheres to [Semantic Versioning](https://semver.org/) since version `2.0.0`.
6
-
7
- ## [Unreleased]
8
-
9
- ## [19.4.1] - 2025-08-27
10
-
11
- ### Fixed
12
-
13
- - Fixed dangling pointer in `Pathfinder.clear` method.
14
- - Fixed hang in `Pathfinder.rebuild_frontier` method.
15
-
16
- ## [19.4.0] - 2025-08-06
17
-
18
- ### Changed
19
-
20
- - Checking "WindowSizeChanged" was not valid since SDL 3 and was also not valid in previous examples.
21
- You must no longer check the type of the `WindowResized` event.
22
-
23
- ### Fixed
24
-
25
- - Corrected some inconsistent angle brackets in the `__str__` of Event subclasses. #165
26
- - Fix regression with window events causing them to be `Unknown` and uncheckable.
27
-
28
- ## [19.3.1] - 2025-08-02
29
-
30
- Solved a deprecation warning which was internal to tcod and no doubt annoyed many devs.
31
- Thanks to jmccardle for forcing me to resolve this.
32
-
33
- ### Fixed
34
-
35
- - Silenced internal deprecation warnings within `Context.convert_event`.
36
-
37
- ## [19.3.0] - 2025-07-26
38
-
39
- Thanks to cr0ne for pointing out missing texture scaling options.
40
- These options did not exist in SDL2.
41
-
42
- ### Added
43
-
44
- - `tcod.sdl.render`: Added `ScaleMode` enum and `Texture.scale_mode` attribute.
45
-
46
- ## [19.2.0] - 2025-07-20
47
-
48
- Thanks to tryddle for demonstrating how bad the current API was with chunked world generation.
49
-
50
- ### Added
51
-
52
- - `tcod.noise.grid` now has the `offset` parameter for easier sampling of noise chunks.
53
-
54
- ## [19.1.0] - 2025-07-12
55
-
56
- ### Added
57
-
58
- - Added text input support to `tcod.sdl.video.Window` which was missing since the SDL3 update.
59
- After creating a context use `assert context.sdl_window` or `if context.sdl_window:` to verify that an SDL window exists then use `context.sdl_window.start_text_input` to enable text input events.
60
- Keep in mind that this can open an on-screen keyboard.
61
-
62
- ## [19.0.2] - 2025-07-11
63
-
64
- Resolve wheel deployment issue.
65
-
66
- ## [19.0.1] - 2025-07-11
67
-
68
- ### Fixed
69
-
70
- - `Console.print` methods using `string` keyword were marked as invalid instead of deprecated.
71
-
72
- ## [19.0.0] - 2025-06-13
73
-
74
- Finished port to SDL3, this has caused several breaking changes from SDL such as lowercase key constants now being uppercase and mouse events returning `float` instead of `int`.
75
- Be sure to run [Mypy](https://mypy.readthedocs.io/en/stable/getting_started.html) on your projects to catch any issues from this update.
76
-
77
- ### Changed
78
-
79
- - Updated libtcod to 2.1.1
80
- - Updated SDL to 3.2.16
81
- This will cause several breaking changes such as the names of keyboard constants and other SDL enums.
82
- - `tcod.sdl.video.Window.grab` has been split into `.mouse_grab` and `.keyboard_grab` attributes.
83
- - `tcod.event.KeySym` single letter symbols are now all uppercase.
84
- - Relative mouse mode is set via `tcod.sdl.video.Window.relative_mouse_mode` instead of `tcod.sdl.mouse.set_relative_mode`.
85
- - `tcod.sdl.render.new_renderer`: Removed `software` and `target_textures` parameters, `vsync` takes `int`, `driver` takes `str` instead of `int`.
86
- - `tcod.sdl.render.Renderer`: `integer_scaling` and `logical_size` are now set with `set_logical_presentation` method.
87
- - `tcod.sdl.render.Renderer.geometry` now takes float values for `color` instead of 8-bit integers.
88
- - `tcod.event.Point` and other mouse/tile coordinate types now use `float` instead of `int`.
89
- SDL3 has decided that mouse events have subpixel precision.
90
- If you see any usual `float` types in your code then this is why.
91
- - `tcod.sdl.audio` has been affected by major changes to SDL3.
92
- - `tcod.sdl.audio.open` has new behavior due to SDL3 and should be avoided.
93
- - Callbacks which were assigned to `AudioDevice`'s must now be applied to `AudioStream`'s instead.
94
- - `AudioDevice`'s are now opened using references to existing devices.
95
- - Sound queueing methods were moved from `AudioDevice` to a new `AudioStream` class.
96
- - `BasicMixer` may require manually specifying `frequency` and `channels` to replicate old behavior.
97
- - `get_devices` and `get_capture_devices` now return `dict[str, AudioDevice]`.
98
- - `TextInput` events are no longer enabled by default.
99
-
100
- ### Deprecated
101
-
102
- - `tcod.sdl.audio.open` was replaced with a newer API, get a default device with `tcod.sdl.audio.get_default_playback().open()`.
103
- - `tcod.sdl.audio.BasicMixer` should be replaced with `AudioStream`'s.
104
- - Should no longer use `tcod.sdl.audio.AudioDevice` in a context, use `contextlib.closing` for the old behavior.
105
-
106
- ### Removed
107
-
108
- - Support dropped for Python 3.8 and 3.9.
109
- - Removed `Joystick.get_current_power` due to SDL3 changes.
110
- - `WindowFlags.FULLSCREEN_DESKTOP` is now just `WindowFlags.FULLSCREEN`
111
- - `tcod.sdl.render.Renderer.integer_scaling` removed.
112
- - Removed `callback`, `spec`, `queued_samples`, `queue_audio`, and `dequeue_audio` attributes from `tcod.sdl.audio.AudioDevice`.
113
- - `tcod.event.WindowResized`: `type="WindowSizeChanged"` removed and must no longer be checked for.
114
- `EventDispatch.ev_windowsizechanged` is no longer called.
115
-
116
- ### Fixed
117
-
118
- - `Joystick.get_ball` was broken.
119
-
120
- ## [18.1.0] - 2025-05-05
121
-
122
- ### Added
123
-
124
- - `tcod.path.path2d` to compute paths for the most basic cases.
125
-
126
- ### Fixed
127
-
128
- - `tcod.noise.grid` would raise `TypeError` when given a plain integer for scale.
129
-
130
- ## [18.0.0] - 2025-04-08
131
-
132
- ### Changed
133
-
134
- - `Console.print` now accepts `height` and `width` keywords and has renamed `string` to `text`.
135
- - Text printed with `Console.print` using right-alignment has been shifted to the left by 1-tile.
136
-
137
- ### Deprecated
138
-
139
- - In general the `fg`, `bg`, and `bg_blend` keywords are too hard to keep track of as positional arguments so they must be replaced with keyword arguments instead.
140
- - `Console.print`: deprecated `string`, `fg`, `bg`, and `bg_blend` being given as positional arguments.
141
- The `string` parameter has been renamed to `text`.
142
- - `Console.print_box` has been replaced by `Console.print`.
143
- - `Console.draw_frame`: deprecated `clear`, `fg`, `bg`, and `bg_blend` being given as positional arguments.
144
- - `Console.draw_rect`: deprecated `fg`, `bg`, and `bg_blend` being given as positional arguments.
145
- - The `EventDispatch` class is now deprecated.
146
- This class was made before Python supported protocols and structural pattern matching,
147
- now the class serves little purpose and its usage can create a minor technical burden.
148
-
149
- ## [17.1.0] - 2025-03-29
150
-
151
- ### Added
152
-
153
- - SDL renderer primitive drawing methods now support sequences of tuples.
154
-
155
- ### Fixed
156
-
157
- - `tcod.sdl.Renderer.draw_lines` type hint was too narrow.
158
- - Fixed crash in `tcod.sdl.Renderer.geometry`.
159
-
160
- ## [17.0.0] - 2025-03-28
161
-
162
- ### Changed
163
-
164
- - `EventDispatch`'s on event methods are now defined as positional parameters, so renaming the `event` parameter is now valid in subclasses.
165
-
166
- ### Deprecated
167
-
168
- - Keyboard bitmask modifiers `tcod.event.KMOD_*` have been replaced by `tcod.event.Modifier`.
169
-
170
- ### Fixed
171
-
172
- - Suppressed internal `mouse.tile_motion` deprecation warning.
173
- - Fixed SDL renderer primitive drawing methods. #159
174
-
175
- ## [16.2.3] - 2024-07-16
176
-
177
- ### Fixed
178
-
179
- - Fixed access violation when events are polled before SDL is initialized.
180
- - Fixed access violation when libtcod images fail to load.
181
- - Verify input files exist when calling `libtcodpy.parser_run`, `libtcodpy.namegen_parse`, `tcod.image.load`.
182
-
183
- ## [16.2.2] - 2024-01-16
184
-
185
- ### Fixed
186
-
187
- - Ignore the locale when encoding file paths outside of Windows.
188
- - Fix performance when calling joystick functions.
189
-
190
- ## [16.2.1] - 2023-09-24
191
-
192
- ### Fixed
193
-
194
- - Fixed errors loading files on Windows where their paths are non-ASCII and the locale is not UTF-8.
195
-
196
- ## [16.2.0] - 2023-09-20
197
-
198
- ### Changed
199
-
200
- - Renamed `gauss` methods to fix typos.
201
-
202
- ## [16.1.1] - 2023-07-10
203
-
204
- ### Changed
205
-
206
- - Added an empty `__slots__` to `EventDispatch`.
207
- - Bundle `SDL 2.28.1` on Windows and MacOS.
208
-
209
- ### Fixed
210
-
211
- - Fixed "SDL failed to get a vertex buffer for this Direct3D 9 rendering batch!"
212
- https://github.com/libtcod/python-tcod/issues/131
213
-
214
- ### Removed
215
-
216
- - Dropped support for Python 3.7.
217
-
218
- ## [16.1.0] - 2023-06-23
219
-
220
- ### Added
221
-
222
- - Added the enums `tcod.event.MouseButton` and `tcod.event.MouseButtonMask`.
223
-
224
- ### Changed
225
-
226
- - Using `libtcod 1.24.0`.
227
-
228
- ### Deprecated
229
-
230
- - Mouse button and mask constants have been replaced by enums.
231
-
232
- ### Fixed
233
-
234
- - `WindowResized` literal annotations were in the wrong case.
235
-
236
- ## [16.0.3] - 2023-06-04
237
-
238
- ### Changed
239
-
240
- - Enabled logging for libtcod and SDL.
241
-
242
- ### Deprecated
243
-
244
- - Deprecated using `tcod` as an implicit alias for `libtcodpy`.
245
- You should use `from tcod import libtcodpy` if you want to access this module.
246
- - Deprecated constants being held directly in `tcod`, get these from `tcod.libtcodpy` instead.
247
- - Deprecated `tcod.Console` which should be accessed from `tcod.console.Console` instead.
248
-
249
- ## [16.0.2] - 2023-06-02
250
-
251
- ### Fixed
252
-
253
- - Joystick/controller device events would raise `RuntimeError` when accessed after removal.
254
-
255
- ## [16.0.1] - 2023-05-28
256
-
257
- ### Fixed
258
-
259
- - `AudioDevice.stopped` was inverted.
260
- - Fixed the audio mixer stop and fadeout methods.
261
- - Exceptions raised in the audio mixer callback no longer cause a messy crash, they now go to `sys.unraisablehook`.
262
-
263
- ## [16.0.0] - 2023-05-27
264
-
265
- ### Added
266
-
267
- - Added PathLike support to more libtcodpy functions.
268
- - New `tcod.sdl.mouse.show` function for querying or setting mouse visibility.
269
- - New class method `tcod.image.Image.from_file` to load images with. This replaces `tcod.image_load`.
270
- - `tcod.sdl.audio.AudioDevice` is now a context manager.
271
-
272
- ### Changed
273
-
274
- - SDL audio conversion will now pass unconvertible floating types as float32 instead of raising.
275
-
276
- ### Deprecated
277
-
278
- - Deprecated the libtcodpy functions for images and noise generators.
279
-
280
- ### Removed
281
-
282
- - `tcod.console_set_custom_font` can no longer take bytes as the file path.
283
-
284
- ### Fixed
285
-
286
- - Fix `tcod.sdl.mouse.warp_in_window` function.
287
- - Fix `TypeError: '_AudioCallbackUserdata' object is not callable` when using an SDL audio device callback.
288
- [#128](https://github.com/libtcod/python-tcod/issues/128)
289
-
290
- ## [15.0.3] - 2023-05-25
291
-
292
- ### Deprecated
293
-
294
- - Deprecated all libtcod color constants. Replace these with your own manually defined colors.
295
- Using a color will tell you the color values of the deprecated color in the warning.
296
- - Deprecated older scancode and keysym constants. These were replaced with the Scancode and KeySym enums.
297
-
298
- ### Fixed
299
-
300
- - DLL loader could fail to load `SDL2.dll` when other tcod namespace packages were installed.
301
-
302
- ## [15.0.1] - 2023-03-30
303
-
304
- ### Added
305
-
306
- - Added support for `tcod.sdl` namespace packages.
307
-
308
- ### Fixed
309
-
310
- - `Renderer.read_pixels` method was completely broken.
311
-
312
- ## [15.0.0] - 2023-01-04
313
-
314
- ### Changed
315
-
316
- - Modified the letter case of window event types to match their type annotations.
317
- This may cause regressions. Run Mypy to check for `[comparison-overlap]` errors.
318
- - Mouse event attributes have been changed `.pixel -> .position` and `.pixel_motion -> .motion`.
319
- - `Context.convert_event` now returns copies of events with mouse coordinates converted into tile positions.
320
-
321
- ### Deprecated
322
-
323
- - Mouse event pixel and tile attributes have been deprecated.
324
-
325
- ## [14.0.0] - 2022-12-09
326
-
327
- ### Added
328
-
329
- - Added explicit support for namespace packages.
330
-
331
- ### Changed
332
-
333
- - Using `libtcod 1.23.1`.
334
- - Bundle `SDL 2.26.0` on Windows and MacOS.
335
- - Code Page 437: Character 0x7F is now assigned to 0x2302 (HOUSE).
336
- - Forced all renderers to `RENDERER_SDL2` to fix rare graphical artifacts with OpenGL.
337
-
338
- ### Deprecated
339
-
340
- - The `renderer` parameter of new contexts is now deprecated.
341
-
342
- ## [13.8.1] - 2022-09-23
343
-
344
- ### Fixed
345
-
346
- - `EventDispatch` was missing new event names.
347
-
348
- ## [13.8.0] - 2022-09-22
349
-
350
- ### Added
351
-
352
- - Ported SDL2 joystick handing as `tcod.sdl.joystick`.
353
- - New joystick related events.
354
-
355
- ### Changed
356
-
357
- - Using `libtcod 1.22.3`.
358
- - Bundle `SDL 2.24.0` on Windows and MacOS.
359
-
360
- ### Deprecated
361
-
362
- - Renderers other than `tcod.RENDERER_SDL2` are now discouraged.
363
-
364
- ### Fixed
365
-
366
- - Fixed double present bug in non-context flush functions.
367
- This was affecting performance and also caused a screen flicker whenever the global fade color was active.
368
- - Fixed the parsing of SDL 2.24.0 headers on Windows.
369
-
370
- ## [13.7.0] - 2022-08-07
371
-
372
- ### Added
373
-
374
- - You can new use `SDLConsoleRender.atlas` to access the `SDLTilesetAtlas` used to create it.
375
- [#121](https://github.com/libtcod/python-tcod/issues/121)
376
-
377
- ### Fixed
378
-
379
- - Fixed the parsing of SDL 2.0.22 headers. Specifically `SDL_FLT_EPSILON`.
380
-
381
- ## [13.6.2] - 2022-05-02
382
-
383
- ### Fixed
384
-
385
- - SDL renderers were ignoring tiles where only the background red channel was changed.
386
-
387
- ## [13.6.1] - 2022-03-29
388
-
389
- ### Changed
390
-
391
- - The SDL2 renderer has had a major performance update when compiled with SDL 2.0.18.
392
- - SDL2 is now the default renderer to avoid rare issues with the OpenGL 2 renderer.
393
-
394
- ## [13.6.0] - 2022-02-19
395
-
396
- ### Added
397
-
398
- - `BasicMixer` and `Channel` classes added to `tcod.sdl.audio`. These handle simple audio mixing.
399
- - `AudioDevice.convert` added to handle simple conversions to the active devices format.
400
- - `tcod.sdl.audio.convert_audio` added to handle any other conversions needed.
401
-
402
- ## [13.5.0] - 2022-02-11
403
-
404
- ### Added
405
-
406
- - `tcod.sdl.audio`, a new module exposing SDL audio devices. This does not include an audio mixer yet.
407
- - `tcod.sdl.mouse`, for SDL mouse and cursor handing.
408
- - `Context.sdl_atlas`, which provides the relevant `SDLTilesetAtlas` when one is being used by the context.
409
- - Several missing features were added to `tcod.sdl.render`.
410
- - `Window.mouse_rect` added to SDL windows to set the mouse confinement area.
411
-
412
- ### Changed
413
-
414
- - `Texture.access` and `Texture.blend_mode` properties now return enum instances.
415
- You can still set `blend_mode` with `int` but Mypy will complain.
416
-
417
- ## [13.4.0] - 2022-02-04
418
-
419
- ### Added
420
-
421
- - Adds `sdl_window` and `sdl_renderer` properties to tcod contexts.
422
- - Adds `tcod.event.add_watch` and `tcod.event.remove_watch` to handle SDL events via callback.
423
- - Adds the `tcod.sdl.video` module to handle SDL windows.
424
- - Adds the `tcod.sdl.render` module to handle SDL renderers.
425
- - Adds the `tcod.render` module which gives more control over the rendering of consoles and tilesets.
426
-
427
- ### Fixed
428
-
429
- - Fixed handling of non-Path PathLike parameters and filepath encodings.
430
-
431
- ## [13.3.0] - 2022-01-07
432
-
433
- ### Added
434
-
435
- - New experimental renderer `tcod.context.RENDERER_XTERM`.
436
-
437
- ### Changed
438
-
439
- - Using `libtcod 1.20.1`.
440
-
441
- ### Fixed
442
-
443
- - Functions accepting `Path`-like parameters now accept the more correct `os.PathLike` type.
444
- - BDF files with blank lines no longer fail to load with an "Unknown keyword" error.
445
-
446
- ## [13.2.0] - 2021-12-24
447
-
448
- ### Added
449
-
450
- - New `console` parameter in `tcod.context.new` which sets parameters from an existing Console.
451
-
452
- ### Changed
453
-
454
- - Using `libtcod 1.20.0`.
455
-
456
- ### Fixed
457
-
458
- - Fixed segfault when an OpenGL2 context fails to load.
459
- - Gaussian number generation no longer affects the results of unrelated RNG's.
460
- - Gaussian number generation is now reentrant and thread-safe.
461
- - Fixed potential crash in PNG image loading.
462
-
463
- ## [13.1.0] - 2021-10-22
464
-
465
- ### Added
466
-
467
- - Added the `tcod.tileset.procedural_block_elements` function.
468
-
469
- ### Removed
470
-
471
- - Python 3.6 is no longer supported.
472
-
473
- ## [13.0.0] - 2021-09-20
474
-
475
- ### Changed
476
-
477
- - Console print and drawing functions now always use absolute coordinates for negative numbers.
478
-
479
- ## [12.7.3] - 2021-08-13
480
-
481
- ### Deprecated
482
-
483
- - `tcod.console_is_key_pressed` was replaced with `tcod.event.get_keyboard_state`.
484
- - `tcod.console_from_file` is deprecated.
485
- - The `.asc` and `.apf` formats are no longer actively supported.
486
-
487
- ### Fixed
488
-
489
- - Fixed the parsing of SDL 2.0.16 headers.
490
-
491
- ## [12.7.2] - 2021-07-01
492
-
493
- ### Fixed
494
-
495
- - _Scancode_ and _KeySym_ enums no longer crash when SDL returns an unexpected value.
496
-
497
- ## [12.7.1] - 2021-06-30
498
-
499
- ### Added
500
-
501
- - Started uploading wheels for ARM64 macOS.
502
-
503
- ## [12.7.0] - 2021-06-29
504
-
505
- ### Added
506
-
507
- - _tcod.image_ and _tcod.tileset_ now support _pathlib_.
508
-
509
- ### Fixed
510
-
511
- - Wheels for 32-bit Windows now deploy again.
512
-
513
- ## [12.6.2] - 2021-06-15
514
-
515
- ### Fixed
516
-
517
- - Git is no longer required to install from source.
518
-
519
- ## [12.6.1] - 2021-06-09
520
-
521
- ### Fixed
522
-
523
- - Fixed version mismatch when building from sources.
524
-
525
- ## [12.6.0] - 2021-06-09
526
-
527
- ### Added
528
-
529
- - Added the _decoration_ parameter to _Console.draw_frame_.
530
- You may use this parameter to designate custom glyphs as the frame border.
531
-
532
- ### Deprecated
533
-
534
- - The handling of negative indexes given to console drawing and printing
535
- functions will be changed to be used as absolute coordinates in the future.
536
-
537
- ## [12.5.1] - 2021-05-30
538
-
539
- ### Fixed
540
-
541
- - The setup script should no longer fail silently when cffi is unavailable.
542
-
543
- ## [12.5.0] - 2021-05-21
544
-
545
- ### Changed
546
-
547
- - `KeyboardEvent`'s '`scancode`, `sym`, and `mod` attributes now use their respective enums.
548
-
549
- ## [12.4.0] - 2021-05-21
550
-
551
- ### Added
552
-
553
- - Added modernized REXPaint saving/loading functions.
554
- - `tcod.console.load_xp`
555
- - `tcod.console.save_xp`
556
-
557
- ### Changed
558
-
559
- - Using `libtcod 1.18.1`.
560
- - `tcod.event.KeySym` and `tcod.event.Scancode` can now be hashed.
561
-
562
- ## [12.3.2] - 2021-05-15
563
-
564
- ### Changed
565
-
566
- - Using `libtcod 1.17.1`.
567
-
568
- ### Fixed
569
-
570
- - Fixed regression with loading PNG images.
571
-
572
- ## [12.3.1] - 2021-05-13
573
-
574
- ### Fixed
575
-
576
- - Fix Windows deployment.
577
-
578
- ## [12.3.0] - 2021-05-13
579
-
580
- ### Added
581
-
582
- - New keyboard enums:
583
- - `tcod.event.KeySym`
584
- - `tcod.event.Scancode`
585
- - `tcod.event.Modifier`
586
- - New functions:
587
- - `tcod.event.get_keyboard_state`
588
- - `tcod.event.get_modifier_state`
589
- - Added `tcod.console.rgb_graphic` and `tcod.console.rgba_graphic` dtypes.
590
- - Another name for the Console array attributes: `Console.rgb` and `Console.rgba`.
591
-
592
- ### Changed
593
-
594
- - Using `libtcod 1.17.0`.
595
-
596
- ### Deprecated
597
-
598
- - `Console_tiles_rgb` is being renamed to `Console.rgb`.
599
- - `Console_tiles` being renamed to `Console.rgba`.
600
-
601
- ### Fixed
602
-
603
- - Contexts now give a more useful error when pickled.
604
- - Fixed regressions with `tcod.console_print_frame` and `Console.print_frame`
605
- when given empty strings as the banner.
606
-
607
- ## [12.2.0] - 2021-04-09
608
-
609
- ### Added
610
-
611
- - Added `tcod.noise.Algorithm` and `tcod.noise.Implementation` enums.
612
- - Added `tcod.noise.grid` helper function.
613
-
614
- ### Deprecated
615
-
616
- - The non-enum noise implementation names have been deprecated.
617
-
618
- ### Fixed
619
-
620
- - Indexing Noise classes now works with the FBM implementation.
621
-
622
- ## [12.1.0] - 2021-04-01
623
-
624
- ### Added
625
-
626
- - Added package-level PyInstaller hook.
627
-
628
- ### Changed
629
-
630
- - Using `libtcod 1.16.7`.
631
- - `tcod.path.dijkstra2d` now returns the output and accepts an `out` parameter.
632
-
633
- ### Deprecated
634
-
635
- - In the future `tcod.path.dijkstra2d` will no longer modify the input by default. Until then an `out` parameter must be given.
636
-
637
- ### Fixed
638
-
639
- - Fixed crashes from loading tilesets with non-square tile sizes.
640
- - Tilesets with a size of 0 should no longer crash when used.
641
- - Prevent division by zero from recommended-console-size functions.
642
-
643
- ## [12.0.0] - 2021-03-05
644
-
645
- ### Added
646
-
647
- - Now includes PyInstaller hooks within the package itself.
648
-
649
- ### Deprecated
650
-
651
- - The Random class will now warn if the seed it's given will not used
652
- deterministically. It will no longer accept non-integer seeds in the future.
653
-
654
- ### Changed
655
-
656
- - Now bundles SDL 2.0.14 for MacOS.
657
- - `tcod.event` can now detect and will warn about uninitialized tile
658
- attributes on mouse events.
659
-
660
- ### Removed
661
-
662
- - Python 3.5 is no longer supported.
663
- - The `tdl` module has been dropped.
664
-
665
- ## [11.19.3] - 2021-01-07
666
-
667
- ### Fixed
668
-
669
- - Some wheels had broken version metadata.
670
-
671
- ## [11.19.2] - 2020-12-30
672
-
673
- ### Changed
674
-
675
- - Now bundles SDL 2.0.10 for MacOS and SDL 2.0.14 for Windows.
676
-
677
- ### Fixed
678
-
679
- - MacOS wheels were failing to bundle dependencies for SDL2.
680
-
681
- ## [11.19.1] - 2020-12-29
682
-
683
- ### Fixed
684
-
685
- - MacOS wheels failed to deploy for the previous version.
686
-
687
- ## [11.19.0] - 2020-12-29
688
-
689
- ### Added
690
-
691
- - Added the important `order` parameter to `Context.new_console`.
692
-
693
- ## [11.18.3] - 2020-12-28
694
-
695
- ### Changed
696
-
697
- - Now bundles SDL 2.0.14 for Windows/MacOS.
698
-
699
- ### Deprecated
700
-
701
- - Support for Python 3.5 will be dropped.
702
- - `tcod.console_load_xp` has been deprecated, `tcod.console_from_xp` can load
703
- these files without modifying an existing console.
704
-
705
- ### Fixed
706
-
707
- - `tcod.console_from_xp` now has better error handling (instead of crashing.)
708
- - Can now compile with SDL 2.0.14 headers.
709
-
710
- ## [11.18.2] - 2020-12-03
711
-
712
- ### Fixed
713
-
714
- - Fixed missing `tcod.FOV_SYMMETRIC_SHADOWCAST` constant.
715
- - Fixed regression in `tcod.sys_get_current_resolution` behavior. This
716
- function now returns the monitor resolution as was previously expected.
717
-
718
- ## [11.18.1] - 2020-11-30
719
-
720
- ### Fixed
721
-
722
- - Code points from the Private Use Area will now print correctly.
723
-
724
- ## [11.18.0] - 2020-11-13
725
-
726
- ### Added
727
-
728
- - New context method `Context.new_console`.
729
-
730
- ### Changed
731
-
732
- - Using `libtcod 1.16.0-alpha.15`.
733
-
734
- ## [11.17.0] - 2020-10-30
735
-
736
- ### Added
737
-
738
- - New FOV implementation: `tcod.FOV_SYMMETRIC_SHADOWCAST`.
739
-
740
- ### Changed
741
-
742
- - Using `libtcod 1.16.0-alpha.14`.
743
-
744
- ## [11.16.1] - 2020-10-28
745
-
746
- ### Deprecated
747
-
748
- - Changed context deprecations to PendingDeprecationWarning to reduce mass
749
- panic from tutorial followers.
750
-
751
- ### Fixed
752
-
753
- - Fixed garbled titles and crashing on some platforms.
754
-
755
- ## [11.16.0] - 2020-10-23
756
-
757
- ### Added
758
-
759
- - Added `tcod.context.new` function.
760
- - Contexts now support a CLI.
761
- - You can now provide the window x,y position when making contexts.
762
- - `tcod.noise.Noise` instances can now be indexed to generate noise maps.
763
-
764
- ### Changed
765
-
766
- - Using `libtcod 1.16.0-alpha.13`.
767
- - The OpenGL 2 renderer can now use `SDL_HINT_RENDER_SCALE_QUALITY` to
768
- determine the tileset upscaling filter.
769
- - Improved performance of the FOV_BASIC algorithm.
770
-
771
- ### Deprecated
772
-
773
- - `tcod.context.new_window` and `tcod.context.new_terminal` have been replaced
774
- by `tcod.context.new`.
775
-
776
- ### Fixed
777
-
778
- - Pathfinders will now work with boolean arrays.
779
- - Console blits now ignore alpha compositing which would result in division by
780
- zero.
781
- - `tcod.console_is_key_pressed` should work even if libtcod events are ignored.
782
- - The `TCOD_RENDERER` and `TCOD_VSYNC` environment variables should work now.
783
- - `FOV_PERMISSIVE` algorithm is now reentrant.
784
-
785
- ## [11.15.3] - 2020-07-30
786
-
787
- ### Fixed
788
-
789
- - `tcod.tileset.Tileset.remap`, codepoint and index were swapped.
790
-
791
- ## [11.15.2] - 2020-07-27
792
-
793
- ### Fixed
794
-
795
- - `tcod.path.dijkstra2d`, fixed corrupted output with int8 arrays.
796
-
797
- ## [11.15.1] - 2020-07-26
798
-
799
- ### Changed
800
-
801
- - `tcod.event.EventDispatch` now uses the absolute names for event type hints
802
- so that IDE's can better auto-complete method overrides.
803
-
804
- ### Fixed
805
-
806
- - Fixed libtcodpy heightmap data alignment issues on non-square maps.
807
-
808
- ## [11.15.0] - 2020-06-29
809
-
810
- ### Added
811
-
812
- - `tcod.path.SimpleGraph` for pathfinding on simple 2D arrays.
813
-
814
- ### Changed
815
-
816
- - `tcod.path.CustomGraph` now accepts an `order` parameter.
817
-
818
- ## [11.14.0] - 2020-06-23
819
-
820
- ### Added
821
-
822
- - New `tcod.los` module for NumPy-based line-of-sight algorithms.
823
- Includes `tcod.los.bresenham`.
824
-
825
- ### Deprecated
826
-
827
- - `tcod.line_where` and `tcod.line_iter` have been deprecated.
828
-
829
- ## [11.13.6] - 2020-06-19
830
-
831
- ### Deprecated
832
-
833
- - `console_init_root` and `console_set_custom_font` have been replaced by the
834
- modern API.
835
- - All functions which handle SDL windows without a context are deprecated.
836
- - All functions which modify a globally active tileset are deprecated.
837
- - `tcod.map.Map` is deprecated, NumPy arrays should be passed to functions
838
- directly instead of through this class.
839
-
840
- ## [11.13.5] - 2020-06-15
841
-
842
- ### Fixed
843
-
844
- - Install requirements will no longer try to downgrade `cffi`.
845
-
846
- ## [11.13.4] - 2020-06-15
847
-
848
- ## [11.13.3] - 2020-06-13
849
-
850
- ### Fixed
851
-
852
- - `cffi` requirement has been updated to version `1.13.0`.
853
- The older versions raise TypeError's.
854
-
855
- ## [11.13.2] - 2020-06-12
856
-
857
- ### Fixed
858
-
859
- - SDL related errors during package installation are now more readable.
860
-
861
- ## [11.13.1] - 2020-05-30
862
-
863
- ### Fixed
864
-
865
- - `tcod.event.EventDispatch`: `ev_*` methods now allow `Optional[T]` return
866
- types.
867
-
868
- ## [11.13.0] - 2020-05-22
869
-
870
- ### Added
871
-
872
- - `tcod.path`: New `Pathfinder` and `CustomGraph` classes.
873
-
874
- ### Changed
875
-
876
- - Added `edge_map` parameter to `tcod.path.dijkstra2d` and
877
- `tcod.path.hillclimb2d`.
878
-
879
- ### Fixed
880
-
881
- - tcod.console_init_root` and context initializing functions were not
882
- raising exceptions on failure.
883
-
884
- ## [11.12.1] - 2020-05-02
885
-
886
- ### Fixed
887
-
888
- - Prevent adding non-existent 2nd halves to potential double-wide charterers.
889
-
890
- ## [11.12.0] - 2020-04-30
891
-
892
- ### Added
893
-
894
- - Added `tcod.context` module. You now have more options for making libtcod
895
- controlled contexts.
896
- - `tcod.tileset.load_tilesheet`: Load a simple tilesheet as a Tileset.
897
- - `Tileset.remap`: Reassign codepoints to tiles on a Tileset.
898
- - `tcod.tileset.CHARMAP_CP437`: Character mapping for `load_tilesheet`.
899
- - `tcod.tileset.CHARMAP_TCOD`: Older libtcod layout.
900
-
901
- ### Changed
902
-
903
- - `EventDispatch.dispatch` can now return the values returned by the `ev_*`
904
- methods. The class is now generic to support type checking these values.
905
- - Event mouse coordinates are now strictly int types.
906
- - Submodules are now implicitly imported.
907
-
908
- ## [11.11.4] - 2020-04-26
909
-
910
- ### Changed
911
-
912
- - Using `libtcod 1.16.0-alpha.10`.
913
-
914
- ### Fixed
915
-
916
- - Fixed characters being dropped when color codes were used.
917
-
918
- ## [11.11.3] - 2020-04-24
919
-
920
- ### Changed
921
-
922
- - Using `libtcod 1.16.0-alpha.9`.
923
-
924
- ### Fixed
925
-
926
- - `FOV_DIAMOND` and `FOV_RESTRICTIVE` algorithms are now reentrant.
927
- [libtcod#48](https://github.com/libtcod/libtcod/pull/48)
928
- - The `TCOD_VSYNC` environment variable was being ignored.
929
-
930
- ## [11.11.2] - 2020-04-22
931
-
932
- ## [11.11.1] - 2020-04-03
933
-
934
- ### Changed
935
-
936
- - Using `libtcod 1.16.0-alpha.8`.
937
-
938
- ### Fixed
939
-
940
- - Changing the active tileset now redraws tiles correctly on the next frame.
941
-
942
- ## [11.11.0] - 2020-04-02
943
-
944
- ### Added
945
-
946
- - Added `Console.close` as a more obvious way to close the active window of a
947
- root console.
948
-
949
- ### Changed
950
-
951
- - GCC is no longer needed to compile the library on Windows.
952
- - Using `libtcod 1.16.0-alpha.7`.
953
- - `tcod.console_flush` will now accept an RGB tuple as a `clear_color`.
954
-
955
- ### Fixed
956
-
957
- - Changing the active tileset will now properly show it on the next render.
958
-
959
- ## [11.10.0] - 2020-03-26
960
-
961
- ### Added
962
-
963
- - Added `tcod.tileset.load_bdf`, you can now load BDF fonts.
964
- - `tcod.tileset.set_default` and `tcod.tileset.get_default` are now stable.
965
-
966
- ### Changed
967
-
968
- - Using `libtcod 1.16.0-alpha.6`.
969
-
970
- ### Deprecated
971
-
972
- - The `snap_to_integer` parameter in `tcod.console_flush` has been deprecated
973
- since it can cause minor scaling issues which don't exist when using
974
- `integer_scaling` instead.
975
-
976
- ## [11.9.2] - 2020-03-17
977
-
978
- ### Fixed
979
-
980
- - Fixed segfault after the Tileset returned by `tcod.tileset.get_default` goes
981
- out of scope.
982
-
983
- ## [11.9.1] - 2020-02-28
984
-
985
- ### Changed
986
-
987
- - Using `libtcod 1.16.0-alpha.5`.
988
- - Mouse tile coordinates are now always zero before the first call to
989
- `tcod.console_flush`.
990
-
991
- ## [11.9.0] - 2020-02-22
992
-
993
- ### Added
994
-
995
- - New method `Tileset.render` renders an RGBA NumPy array from a tileset and
996
- a console.
997
-
998
- ## [11.8.2] - 2020-02-22
999
-
1000
- ### Fixed
1001
-
1002
- - Prevent KeyError when representing unusual keyboard symbol constants.
1003
-
1004
- ## [11.8.1] - 2020-02-22
1005
-
1006
- ### Changed
1007
-
1008
- - Using `libtcod 1.16.0-alpha.4`.
1009
-
1010
- ### Fixed
1011
-
1012
- - Mouse tile coordinates are now correct on any resized window.
1013
-
1014
- ## [11.8.0] - 2020-02-21
1015
-
1016
- ### Added
1017
-
1018
- - Added `tcod.console.recommended_size` for when you want to change your main
1019
- console size at runtime.
1020
- - Added `Console.tiles_rgb` as a replacement for `Console.tiles2`.
1021
-
1022
- ### Changed
1023
-
1024
- - Using `libtcod 1.16.0-alpha.3`.
1025
- - Added parameters to `tcod.console_flush`, you can now manually provide a
1026
- console and adjust how it is presented.
1027
-
1028
- ### Deprecated
1029
-
1030
- - `Console.tiles2` is deprecated in favour of `Console.tiles_rgb`.
1031
- - `Console.buffer` is now deprecated in favour of `Console.tiles`, instead of
1032
- the other way around.
1033
-
1034
- ### Fixed
1035
-
1036
- - Fixed keyboard state and mouse state functions losing state when events were
1037
- flushed.
1038
-
1039
- ## [11.7.2] - 2020-02-16
1040
-
1041
- ### Fixed
1042
-
1043
- - Fixed regression in `tcod.console_clear`.
1044
-
1045
- ## [11.7.1] - 2020-02-16
1046
-
1047
- ### Fixed
1048
-
1049
- - Fixed regression in `Console.draw_frame`.
1050
- - The wavelet noise generator now excludes -1.0f and 1.0f as return values.
1051
- - Fixed console fading color regression.
1052
-
1053
- ## [11.7.0] - 2020-02-14
1054
-
1055
- ### Changed
1056
-
1057
- - Using `libtcod 1.16.0-alpha.2`.
1058
- - When a renderer fails to load it will now fallback to a different one.
1059
- The order is: OPENGL2 -> OPENGL -> SDL2.
1060
- - The default renderer is now SDL2.
1061
- - The SDL and OPENGL renderers are no longer deprecated, but they now point to
1062
- slightly different backward compatible implementations.
1063
-
1064
- ### Deprecated
1065
-
1066
- - The use of `libtcod.cfg` and `terminal.png` is deprecated.
1067
-
1068
- ### Fixed
1069
-
1070
- - `tcod.sys_update_char` now works with the newer renderers.
1071
- - Fixed buffer overflow in name generator.
1072
- - `tcod.image_from_console` now works with the newer renderers.
1073
- - New renderers now auto-load fonts from `libtcod.cfg` or `terminal.png`.
1074
-
1075
- ## [11.6.0] - 2019-12-05
1076
-
1077
- ### Changed
1078
-
1079
- - Console blit operations now perform per-cell alpha transparency.
1080
-
1081
- ## [11.5.1] - 2019-11-23
1082
-
1083
- ### Fixed
1084
-
1085
- - Python 3.8 wheels failed to deploy.
1086
-
1087
- ## [11.5.0] - 2019-11-22
1088
-
1089
- ### Changed
1090
-
1091
- - Quarter block elements are now rendered using Unicode instead of a custom
1092
- encoding.
1093
-
1094
- ### Fixed
1095
-
1096
- - `OPENGL` and `GLSL` renderers were not properly clearing space characters.
1097
-
1098
- ## [11.4.1] - 2019-10-15
1099
-
1100
- ### Added
1101
-
1102
- - Uploaded Python 3.8 wheels to PyPI.
1103
-
1104
- ## [11.4.0] - 2019-09-20
1105
-
1106
- ### Added
1107
-
1108
- - Added `__array_interface__` to the Image class.
1109
- - Added `Console.draw_semigraphics` as a replacement for blit_2x functions.
1110
- `draw_semigraphics` can handle array-like objects.
1111
- - `Image.from_array` class method creates an Image from an array-like object.
1112
- - `tcod.image.load` loads a PNG file as an RGBA array.
1113
-
1114
- ### Changed
1115
-
1116
- - `Console.tiles` is now named `Console.buffer`.
1117
-
1118
- ## [11.3.0] - 2019-09-06
1119
-
1120
- ### Added
1121
-
1122
- - New attribute `Console.tiles2` is similar to `Console.tiles` but without an
1123
- alpha channel.
1124
-
1125
- ## [11.2.2] - 2019-08-25
1126
-
1127
- ### Fixed
1128
-
1129
- - Fixed a regression preventing PyInstaller distributions from loading SDL2.
1130
-
1131
- ## [11.2.1] - 2019-08-25
1132
-
1133
- ## [11.2.0] - 2019-08-24
1134
-
1135
- ### Added
1136
-
1137
- - `tcod.path.dijkstra2d`: Computes Dijkstra from an arbitrary initial state.
1138
- - `tcod.path.hillclimb2d`: Returns a path from a distance array.
1139
- - `tcod.path.maxarray`: Creates arrays filled with maximum finite values.
1140
-
1141
- ### Fixed
1142
-
1143
- - Changing the tiles of an active tileset on OPENGL2 will no longer leave
1144
- temporary artifact tiles.
1145
- - It's now harder to accidentally import tcod's internal modules.
1146
-
1147
- ## [11.1.2] - 2019-08-02
1148
-
1149
- ### Changed
1150
-
1151
- - Now bundles SDL 2.0.10 for Windows/MacOS.
1152
-
1153
- ### Fixed
1154
-
1155
- - Can now parse SDL 2.0.10 headers during installation without crashing.
1156
-
1157
- ## [11.1.1] - 2019-08-01
1158
-
1159
- ### Deprecated
1160
-
1161
- - Using an out-of-bounds index for field-of-view operations now raises a
1162
- warning, which will later become an error.
1163
-
1164
- ### Fixed
1165
-
1166
- - Changing the tiles of an active tileset will now work correctly.
1167
-
1168
- ## [11.1.0] - 2019-07-05
1169
-
1170
- ### Added
1171
-
1172
- - You can now set the `TCOD_RENDERER` and `TCOD_VSYNC` environment variables to
1173
- force specific options to be used.
1174
- Example: `TCOD_RENDERER=sdl2 TCOD_VSYNC=1`
1175
-
1176
- ### Changed
1177
-
1178
- - `tcod.sys_set_renderer` now raises an exception if it fails.
1179
-
1180
- ### Fixed
1181
-
1182
- - `tcod.console_map_ascii_code_to_font` functions will now work when called
1183
- before `tcod.console_init_root`.
1184
-
1185
- ## [11.0.2] - 2019-06-21
1186
-
1187
- ### Changed
1188
-
1189
- - You no longer need OpenGL to build python-tcod.
1190
-
1191
- ## [11.0.1] - 2019-06-21
1192
-
1193
- ### Changed
1194
-
1195
- - Better runtime checks for Windows dependencies should now give distinct
1196
- errors depending on if the issue is SDL2 or missing redistributables.
1197
-
1198
- ### Fixed
1199
-
1200
- - Changed NumPy type hints from `np.array` to `np.ndarray` which should
1201
- resolve issues.
1202
-
1203
- ## [11.0.0] - 2019-06-14
1204
-
1205
- ### Changed
1206
-
1207
- - `tcod.map.compute_fov` now takes a 2-item tuple instead of separate `x` and
1208
- `y` parameters. This causes less confusion over how axes are aligned.
1209
-
1210
- ## [10.1.1] - 2019-06-02
1211
-
1212
- ### Changed
1213
-
1214
- - Better string representations for `tcod.event.Event` subclasses.
1215
-
1216
- ### Fixed
1217
-
1218
- - Fixed regressions in text alignment for non-rectangle print functions.
1219
-
1220
- ## [10.1.0] - 2019-05-24
1221
-
1222
- ### Added
1223
-
1224
- - `tcod.console_init_root` now has an optional `vsync` parameter.
1225
-
1226
- ## [10.0.5] - 2019-05-17
1227
-
1228
- ### Fixed
1229
-
1230
- - Fixed shader compilation issues in the OPENGL2 renderer.
1231
- - Fallback fonts should fail less on Linux.
1232
-
1233
- ## [10.0.4] - 2019-05-17
1234
-
1235
- ### Changed
1236
-
1237
- - Now depends on cffi 0.12 or later.
1238
-
1239
- ### Fixed
1240
-
1241
- - `tcod.console_init_root` and `tcod.console_set_custom_font` will raise
1242
- exceptions instead of terminating.
1243
- - Fixed issues preventing `tcod.event` from working on 32-bit Windows.
1244
-
1245
- ## [10.0.3] - 2019-05-10
1246
-
1247
- ### Fixed
1248
-
1249
- - Corrected bounding box issues with the `Console.print_box` method.
1250
-
1251
- ## [10.0.2] - 2019-04-26
1252
-
1253
- ### Fixed
1254
-
1255
- - Resolved Color warnings when importing tcod.
1256
- - When compiling, fixed a name conflict with endianness macros on FreeBSD.
1257
-
1258
- ## [10.0.1] - 2019-04-19
1259
-
1260
- ### Fixed
1261
-
1262
- - Fixed horizontal alignment for TrueType fonts.
1263
- - Fixed taking screenshots with the older SDL renderer.
1264
-
1265
- ## [10.0.0] - 2019-03-29
1266
-
1267
- ### Added
1268
-
1269
- - New `Console.tiles` array attribute.
1270
-
1271
- ### Changed
1272
-
1273
- - `Console.DTYPE` changed to add alpha to its color types.
1274
-
1275
- ### Fixed
1276
-
1277
- - Console printing was ignoring color codes at the beginning of a string.
1278
-
1279
- ## [9.3.0] - 2019-03-15
1280
-
1281
- ### Added
1282
-
1283
- - The SDL2/OPENGL2 renderers can potentially use a fall-back font when none
1284
- are provided.
1285
- - New function `tcod.event.get_mouse_state`.
1286
- - New function `tcod.map.compute_fov` lets you get a visibility array directly
1287
- from a transparency array.
1288
-
1289
- ### Deprecated
1290
-
1291
- - The following functions and classes have been deprecated.
1292
- - `tcod.Key`
1293
- - `tcod.Mouse`
1294
- - `tcod.mouse_get_status`
1295
- - `tcod.console_is_window_closed`
1296
- - `tcod.console_check_for_keypress`
1297
- - `tcod.console_wait_for_keypress`
1298
- - `tcod.console_delete`
1299
- - `tcod.sys_check_for_event`
1300
- - `tcod.sys_wait_for_event`
1301
- - The SDL, OPENGL, and GLSL renderers have been deprecated.
1302
- - Many libtcodpy functions have been marked with PendingDeprecationWarning's.
1303
-
1304
- ### Fixed
1305
-
1306
- - To be more compatible with libtcodpy `tcod.console_init_root` will default
1307
- to the SDL render, but will raise warnings when an old renderer is used.
1308
-
1309
- ## [9.2.5] - 2019-03-04
1310
-
1311
- ### Fixed
1312
-
1313
- - Fixed `tcod.namegen_generate_custom`.
1314
-
1315
- ## [9.2.4] - 2019-03-02
1316
-
1317
- ### Fixed
1318
-
1319
- - The `tcod` package is has been marked as typed and will now work with MyPy.
1320
-
1321
- ## [9.2.3] - 2019-03-01
1322
-
1323
- ### Deprecated
1324
-
1325
- - The behavior for negative indexes on the new print functions may change in
1326
- the future.
1327
- - Methods and functionality preventing `tcod.Color` from behaving like a tuple
1328
- have been deprecated.
1329
-
1330
- ## [9.2.2] - 2019-02-26
1331
-
1332
- ### Fixed
1333
-
1334
- - `Console.print_box` wasn't setting the background color by default.
1335
-
1336
- ## [9.2.1] - 2019-02-25
1337
-
1338
- ### Fixed
1339
-
1340
- - `tcod.sys_get_char_size` fixed on the new renderers.
1341
-
1342
- ## [9.2.0] - 2019-02-24
1343
-
1344
- ### Added
1345
-
1346
- - New `tcod.console.get_height_rect` function, which can be used to get the
1347
- height of a print call without an existing console.
1348
- - New `tcod.tileset` module, with a `set_truetype_font` function.
1349
-
1350
- ### Fixed
1351
-
1352
- - The new print methods now handle alignment according to how they were
1353
- documented.
1354
- - `SDL2` and `OPENGL2` now support screenshots.
1355
- - Windows and MacOS builds now restrict exported SDL2 symbols to only
1356
- SDL 2.0.5; This will avoid hard to debug import errors when the wrong
1357
- version of SDL is dynamically linked.
1358
- - The root console now starts with a white foreground.
1359
-
1360
- ## [9.1.0] - 2019-02-23
1361
-
1362
- ### Added
1363
-
1364
- - Added the `tcod.random.MULTIPLY_WITH_CARRY` constant.
1365
-
1366
- ### Changed
1367
-
1368
- - The overhead for warnings has been reduced when running Python with the
1369
- optimize `-O` flag.
1370
- - `tcod.random.Random` now provides a default algorithm.
1371
-
1372
- ## [9.0.0] - 2019-02-17
1373
-
1374
- ### Changed
1375
-
1376
- - New console methods now default to an `fg` and `bg` of None instead of
1377
- white-on-black.
1378
-
1379
- ## [8.5.0] - 2019-02-15
1380
-
1381
- ### Added
1382
-
1383
- - `tcod.console.Console` now supports `str` and `repr`.
1384
- - Added new Console methods which are independent from the console defaults.
1385
- - You can now give an array when initializing a `tcod.console.Console`
1386
- instance.
1387
- - `Console.clear` can now take `ch`, `fg`, and `bg` parameters.
1388
-
1389
- ### Changed
1390
-
1391
- - Updated libtcod to 1.10.6
1392
- - Printing generates more compact layouts.
1393
-
1394
- ### Deprecated
1395
-
1396
- - Most libtcodpy console functions have been replaced by the tcod.console
1397
- module.
1398
- - Deprecated the `set_key_color` functions. You can pass key colors to
1399
- `Console.blit` instead.
1400
- - `Console.clear` should be given the colors to clear with as parameters,
1401
- rather than by using `default_fg` or `default_bg`.
1402
- - Most functions which depend on console default values have been deprecated.
1403
- The new deprecation warnings will give details on how to make default values
1404
- explicit.
1405
-
1406
- ### Fixed
1407
-
1408
- - `tcod.console.Console.blit` was ignoring the key color set by
1409
- `Console.set_key_color`.
1410
- - The `SDL2` and `OPENGL2` renders can now large numbers of tiles.
1411
-
1412
- ## [8.4.3] - 2019-02-06
1413
-
1414
- ### Changed
1415
-
1416
- - Updated libtcod to 1.10.5
1417
- - The SDL2/OPENGL2 renderers will now auto-detect a custom fonts key-color.
1418
-
1419
- ## [8.4.2] - 2019-02-05
1420
-
1421
- ### Deprecated
1422
-
1423
- - The tdl module has been deprecated.
1424
- - The libtcodpy parser functions have been deprecated.
1425
-
1426
- ### Fixed
1427
-
1428
- - `tcod.image_is_pixel_transparent` and `tcod.image_get_alpha` now return
1429
- values.
1430
- - `Console.print_frame` was clearing tiles outside if its bounds.
1431
- - The `FONT_LAYOUT_CP437` layout was incorrect.
1432
-
1433
- ## [8.4.1] - 2019-02-01
1434
-
1435
- ### Fixed
1436
-
1437
- - Window event types were not upper-case.
1438
- - Fixed regression where libtcodpy mouse wheel events unset mouse coordinates.
1439
-
1440
- ## [8.4.0] - 2019-01-31
1441
-
1442
- ### Added
1443
-
1444
- - Added tcod.event module, based off of the sdlevent.py shim.
1445
-
1446
- ### Changed
1447
-
1448
- - Updated libtcod to 1.10.3
1449
-
1450
- ### Fixed
1451
-
1452
- - Fixed libtcodpy `struct_add_value_list` function.
1453
- - Use correct math for tile-based delta in mouse events.
1454
- - New renderers now support tile-based mouse coordinates.
1455
- - SDL2 renderer will now properly refresh after the window is resized.
1456
-
1457
- ## [8.3.2] - 2018-12-28
1458
-
1459
- ### Fixed
1460
-
1461
- - Fixed rare access violations for some functions which took strings as
1462
- parameters, such as `tcod.console_init_root`.
1463
-
1464
- ## [8.3.1] - 2018-12-28
1465
-
1466
- ### Fixed
1467
-
1468
- - libtcodpy key and mouse functions will no longer accept the wrong types.
1469
- - The `new_struct` method was not being called for libtcodpy's custom parsers.
1470
-
1471
- ## [8.3.0] - 2018-12-08
1472
-
1473
- ### Added
1474
-
1475
- - Added BSP traversal methods in tcod.bsp for parity with libtcodpy.
1476
-
1477
- ### Deprecated
1478
-
1479
- - Already deprecated bsp functions are now even more deprecated.
1480
-
1481
- ## [8.2.0] - 2018-11-27
1482
-
1483
- ### Added
1484
-
1485
- - New layout `tcod.FONT_LAYOUT_CP437`.
1486
-
1487
- ### Changed
1488
-
1489
- - Updated libtcod to 1.10.2
1490
- - `tcod.console_print_frame` and `Console.print_frame` now support Unicode
1491
- strings.
1492
-
1493
- ### Deprecated
1494
-
1495
- - Deprecated using bytes strings for all printing functions.
1496
-
1497
- ### Fixed
1498
-
1499
- - Console objects are now initialized with spaces. This fixes some blit
1500
- operations.
1501
- - Unicode code-points above U+FFFF will now work on all platforms.
1502
-
1503
- ## [8.1.1] - 2018-11-16
1504
-
1505
- ### Fixed
1506
-
1507
- - Printing a frame with an empty string no longer displays a title bar.
1508
-
1509
- ## [8.1.0] - 2018-11-15
1510
-
1511
- ### Changed
1512
-
1513
- - Heightmap functions now support 'F_CONTIGUOUS' arrays.
1514
- - `tcod.heightmap_new` now has an `order` parameter.
1515
- - Updated SDL to 2.0.9
1516
-
1517
- ### Deprecated
1518
-
1519
- - Deprecated heightmap functions which sample noise grids, this can be done
1520
- using the `Noise.sample_ogrid` method.
1521
-
1522
- ## [8.0.0] - 2018-11-02
1523
-
1524
- ### Changed
1525
-
1526
- - The default renderer can now be anything if not set manually.
1527
- - Better error message for when a font file isn't found.
1528
-
1529
- ## [7.0.1] - 2018-10-27
1530
-
1531
- ### Fixed
1532
-
1533
- - Building from source was failing because `console_2tris.glsl*` was missing
1534
- from source distributions.
1535
-
1536
- ## [7.0.0] - 2018-10-25
1537
-
1538
- ### Added
1539
-
1540
- - New `RENDERER_SDL2` and `RENDERER_OPENGL2` renderers.
1541
-
1542
- ### Changed
1543
-
1544
- - Updated libtcod to 1.9.0
1545
- - Now requires SDL 2.0.5, which is not trivially installable on
1546
- Ubuntu 16.04 LTS.
1547
-
1548
- ### Removed
1549
-
1550
- - Dropped support for Python versions before 3.5
1551
- - Dropped support for MacOS versions before 10.9 Mavericks.
1552
-
1553
- ## [6.0.7] - 2018-10-24
1554
-
1555
- ### Fixed
1556
-
1557
- - The root console no longer loses track of buffers and console defaults on a
1558
- renderer change.
1559
-
1560
- ## [6.0.6] - 2018-10-01
1561
-
1562
- ### Fixed
1563
-
1564
- - Replaced missing wheels for older and 32-bit versions of MacOS.
1565
-
1566
- ## [6.0.5] - 2018-09-28
1567
-
1568
- ### Fixed
1569
-
1570
- - Resolved CDefError error during source installs.
1571
-
1572
- ## [6.0.4] - 2018-09-11
1573
-
1574
- ### Fixed
1575
-
1576
- - tcod.Key right-hand modifiers are now set independently at initialization,
1577
- instead of mirroring the left-hand modifier value.
1578
-
1579
- ## [6.0.3] - 2018-09-05
1580
-
1581
- ### Fixed
1582
-
1583
- - tcod.Key and tcod.Mouse no longer ignore initiation parameters.
1584
-
1585
- ## [6.0.2] - 2018-08-28
1586
-
1587
- ### Fixed
1588
-
1589
- - Fixed color constants missing at build-time.
1590
-
1591
- ## [6.0.1] - 2018-08-24
1592
-
1593
- ### Fixed
1594
-
1595
- - Source distributions were missing C++ source files.
1596
-
1597
- ## [6.0.0] - 2018-08-23
1598
-
1599
- ### Changed
1600
-
1601
- - Project renamed to tcod on PyPI.
1602
-
1603
- ### Deprecated
1604
-
1605
- - Passing bytes strings to libtcodpy print functions is deprecated.
1606
-
1607
- ### Fixed
1608
-
1609
- - Fixed libtcodpy print functions not accepting bytes strings.
1610
- - libtcod constants are now generated at build-time fixing static analysis
1611
- tools.
1612
-
1613
- ## [5.0.1] - 2018-07-08
1614
-
1615
- ### Fixed
1616
-
1617
- - tdl.event no longer crashes with StopIteration on Python 3.7
1618
-
1619
- ## [5.0.0] - 2018-07-05
1620
-
1621
- ### Changed
1622
-
1623
- - tcod.path: all classes now use `shape` instead of `width` and `height`.
1624
- - tcod.path now respects NumPy array shape, instead of assuming that arrays
1625
- need to be transposed from C memory order. From now on `x` and `y` mean
1626
- 1st and 2nd axis. This doesn't affect non-NumPy code.
1627
- - tcod.path now has full support of non-contiguous memory.
1628
-
1629
- ## [4.6.1] - 2018-06-30
1630
-
1631
- ### Added
1632
-
1633
- - New function `tcod.line_where` for indexing NumPy arrays using a Bresenham
1634
- line.
1635
-
1636
- ### Deprecated
1637
-
1638
- - Python 2.7 support will be dropped in the near future.
1639
-
1640
- ## [4.5.2] - 2018-06-29
1641
-
1642
- ### Added
1643
-
1644
- - New wheels for Python3.7 on Windows.
1645
-
1646
- ### Fixed
1647
-
1648
- - Arrays from `tcod.heightmap_new` are now properly zeroed out.
1649
-
1650
- ## [4.5.1] - 2018-06-23
1651
-
1652
- ### Deprecated
1653
-
1654
- - Deprecated all libtcodpy map functions.
1655
-
1656
- ### Fixed
1657
-
1658
- - `tcod.map_copy` could break the `tcod.map.Map` class.
1659
- - `tcod.map_clear` `transparent` and `walkable` parameters were reversed.
1660
- - When multiple SDL2 headers were installed, the wrong ones would be used when
1661
- the library is built.
1662
- - Fails to build via pip unless Numpy is installed first.
1663
-
1664
- ## [4.5.0] - 2018-06-12
1665
-
1666
- ### Changed
1667
-
1668
- - Updated libtcod to v1.7.0
1669
- - Updated SDL to v2.0.8
1670
- - Error messages when failing to create an SDL window should be a less vague.
1671
- - You no longer need to initialize libtcod before you can print to an
1672
- off-screen console.
1673
-
1674
- ### Fixed
1675
-
1676
- - Avoid crashes if the root console has a character code higher than expected.
1677
-
1678
- ### Removed
1679
-
1680
- - No more debug output when loading fonts.
1681
-
1682
- ## [4.4.0] - 2018-05-02
1683
-
1684
- ### Added
1685
-
1686
- - Added the libtcodpy module as an alias for tcod. Actual use of it is
1687
- deprecated, it exists primarily for backward compatibility.
1688
- - Adding missing libtcodpy functions `console_has_mouse_focus` and
1689
- `console_is_active`.
1690
-
1691
- ### Changed
1692
-
1693
- - Updated libtcod to v1.6.6
1694
-
1695
- ## [4.3.2] - 2018-03-18
1696
-
1697
- ### Deprecated
1698
-
1699
- - Deprecated the use of falsy console parameters with libtcodpy functions.
1700
-
1701
- ### Fixed
1702
-
1703
- - Fixed libtcodpy image functions not supporting falsy console parameters.
1704
- - Fixed tdl `Window.get_char` method. (Kaczor2704)
1705
-
1706
- ## [4.3.1] - 2018-03-07
1707
-
1708
- ### Fixed
1709
-
1710
- - Fixed cffi.api.FFIError "unsupported expression: expected a simple numeric
1711
- constant" error when building on platforms with an older cffi module and
1712
- newer SDL headers.
1713
- - tcod/tdl Map and Console objects were not saving stride data when pickled.
1714
-
1715
- ## [4.3.0] - 2018-02-01
1716
-
1717
- ### Added
1718
-
1719
- - You can now set the numpy memory order on tcod.console.Console,
1720
- tcod.map.Map, and tdl.map.Map objects well as from the
1721
- tcod.console_init_root function.
1722
-
1723
- ### Changed
1724
-
1725
- - The `console_init_root` `title` parameter is now optional.
1726
-
1727
- ### Fixed
1728
-
1729
- - OpenGL renderer alpha blending is now consistent with all other render
1730
- modes.
1731
-
1732
- ## [4.2.3] - 2018-01-06
1733
-
1734
- ### Fixed
1735
-
1736
- - Fixed setup.py regression that could prevent building outside of the git
1737
- repository.
1738
-
1739
- ## [4.2.2] - 2018-01-06
1740
-
1741
- ### Fixed
1742
-
1743
- - The Windows dynamic linker will now prefer the bundled version of SDL.
1744
- This fixes:
1745
- "ImportError: DLL load failed: The specified procedure could not be found."
1746
- - `key.c` is no longer set when `key.vk == KEY_TEXT`, this fixes a regression
1747
- which was causing events to be heard twice in the libtcod/Python tutorial.
1748
-
1749
- ## [4.2.0] - 2018-01-02
1750
-
1751
- ### Changed
1752
-
1753
- - Updated libtcod backend to v1.6.4
1754
- - Updated SDL to v2.0.7 for Windows/MacOS.
1755
-
1756
- ### Removed
1757
-
1758
- - Source distributions no longer include tests, examples, or fonts.
1759
- [Find these on GitHub.](https://github.com/libtcod/python-tcod)
1760
-
1761
- ### Fixed
1762
-
1763
- - Fixed "final link failed: Nonrepresentable section on output" error
1764
- when compiling for Linux.
1765
- - `tcod.console_init_root` defaults to the SDL renderer, other renderers
1766
- cause issues with mouse movement events.
1767
-
1768
- ## [4.1.1] - 2017-11-02
1769
-
1770
- ### Fixed
1771
-
1772
- - Fixed `ConsoleBuffer.blit` regression.
1773
- - Console defaults corrected, the root console's blend mode and alignment is
1774
- the default value for newly made Console's.
1775
- - You can give a byte string as a filename to load parsers.
1776
-
1777
- ## [4.1.0] - 2017-07-19
1778
-
1779
- ### Added
1780
-
1781
- - tdl Map class can now be pickled.
1782
-
1783
- ### Changed
1784
-
1785
- - Added protection to the `transparent`, `walkable`, and `fov`
1786
- attributes in tcod and tdl Map classes, to prevent them from being
1787
- accidentally overridden.
1788
- - tcod and tdl Map classes now use numpy arrays as their attributes.
1789
-
1790
- ## [4.0.1] - 2017-07-12
1791
-
1792
- ### Fixed
1793
-
1794
- - tdl: Fixed NameError in `set_fps`.
1795
-
1796
- ## [4.0.0] - 2017-07-08
1797
-
1798
- ### Changed
1799
-
1800
- - tcod.bsp: `BSP.split_recursive` parameter `random` is now `seed`.
1801
- - tcod.console: `Console.blit` parameters have been rearranged.
1802
- Most of the parameters are now optional.
1803
- - tcod.noise: `Noise.__init__` parameter `rand` is now named `seed`.
1804
- - tdl: Changed `set_fps` parameter name to `fps`.
1805
-
1806
- ### Fixed
1807
-
1808
- - tcod.bsp: Corrected spelling of max_vertical_ratio.
1809
-
1810
- ## [3.2.0] - 2017-07-04
1811
-
1812
- ### Changed
1813
-
1814
- - Merged libtcod-cffi dependency with TDL.
1815
-
1816
- ### Fixed
1817
-
1818
- - Fixed boolean related crashes with Key 'text' events.
1819
- - tdl.noise: Fixed crash when given a negative seed. As well as cases
1820
- where an instance could lose its seed being pickled.
1821
-
1822
- ## [3.1.0] - 2017-05-28
1823
-
1824
- ### Added
1825
-
1826
- - You can now pass tdl Console instances as parameters to libtcod-cffi
1827
- functions expecting a tcod Console.
1828
-
1829
- ### Changed
1830
-
1831
- - Dependencies updated: `libtcod-cffi>=2.5.0,<3`
1832
- - The `Console.tcod_console` attribute is being renamed to
1833
- `Console.console_c`.
1834
-
1835
- ### Deprecated
1836
-
1837
- - The tdl.noise and tdl.map modules will be deprecated in the future.
1838
-
1839
- ### Fixed
1840
-
1841
- - Resolved crash-on-exit issues for Windows platforms.
1842
-
1843
- ## [3.0.2] - 2017-04-13
1844
-
1845
- ### Changed
1846
-
1847
- - Dependencies updated: `libtcod-cffi>=2.4.3,<3`
1848
- - You can now create Console instances before a call to `tdl.init`.
1849
-
1850
- ### Removed
1851
-
1852
- - Dropped support for Python 3.3
1853
-
1854
- ### Fixed
1855
-
1856
- - Resolved issues with MacOS builds.
1857
- - 'OpenGL' and 'GLSL' renderers work again.
1858
-
1859
- ## [3.0.1] - 2017-03-22
1860
-
1861
- ### Changed
1862
-
1863
- - `KeyEvent`'s with `text` now have all their modifier keys set to False.
1864
-
1865
- ### Fixed
1866
-
1867
- - Undefined behavior in text events caused crashes on 32-bit builds.
1868
-
1869
- ## [3.0.0] - 2017-03-21
1870
-
1871
- ### Added
1872
-
1873
- - `KeyEvent` supports libtcod text and meta keys.
1874
-
1875
- ### Changed
1876
-
1877
- - `KeyEvent` parameters have been moved.
1878
- - This version requires `libtcod-cffi>=2.3.0`.
1879
-
1880
- ### Deprecated
1881
-
1882
- - `KeyEvent` camel capped attribute names are deprecated.
1883
-
1884
- ### Fixed
1885
-
1886
- - Crashes with key-codes undefined by libtcod.
1887
- - `tdl.map` typedef issues with libtcod-cffi.
1888
-
1889
- ## [2.0.1] - 2017-02-22
1890
-
1891
- ### Fixed
1892
-
1893
- - `tdl.init` renderer was defaulted to OpenGL which is not supported in the
1894
- current version of libtcod.
1895
-
1896
- ## [2.0.0] - 2017-02-15
1897
-
1898
- ### Changed
1899
-
1900
- - Dependencies updated, tdl now requires libtcod-cffi 2.x.x
1901
- - Some event behaviors have changed with SDL2, event keys might be different
1902
- than what you expect.
1903
-
1904
- ### Removed
1905
-
1906
- - Key repeat functions were removed from SDL2.
1907
- `set_key_repeat` is now stubbed, and does nothing.
1908
-
1909
- ## [1.6.0] - 2016-11-18
1910
-
1911
- - Console.blit methods can now take fg_alpha and bg_alpha parameters.
1912
-
1913
- ## [1.5.3] - 2016-06-04
1914
-
1915
- - set_font no longer crashes when loading a file without the implied font
1916
- size in its name
1917
-
1918
- ## [1.5.2] - 2016-03-11
1919
-
1920
- - Fixed non-square Map instances
1921
-
1922
- ## [1.5.1] - 2015-12-20
1923
-
1924
- - Fixed errors with Unicode and non-Unicode literals on Python 2
1925
- - Fixed attribute error in compute_fov
1926
-
1927
- ## [1.5.0] - 2015-07-13
1928
-
1929
- - python-tdl distributions are now universal builds
1930
- - New Map class
1931
- - map.bresenham now returns a list
1932
- - This release will require libtcod-cffi v0.2.3 or later
1933
-
1934
- ## [1.4.0] - 2015-06-22
1935
-
1936
- - The DLL's have been moved into another library which you can find at
1937
- https://github.com/HexDecimal/libtcod-cffi
1938
- You can use this library to have some raw access to libtcod if you want.
1939
- Plus it can be used alongside TDL.
1940
- - The libtcod console objects in Console instances have been made public.
1941
- - Added tdl.event.wait function. This function can called with a timeout and
1942
- can automatically call tdl.flush.
1943
-
1944
- ## [1.3.1] - 2015-06-19
1945
-
1946
- - Fixed pathfinding regressions.
1947
-
1948
- ## [1.3.0] - 2015-06-19
1949
-
1950
- - Updated backend to use python-cffi instead of ctypes. This gives decent
1951
- boost to speed in CPython and a drastic to boost in speed in PyPy.
1952
-
1953
- ## [1.2.0] - 2015-06-06
1954
-
1955
- - The set*colors method now changes the default colors used by the draw*\*
1956
- methods. You can use Python's Ellipsis to explicitly select default colors
1957
- this way.
1958
- - Functions and Methods renamed to match Python's style-guide PEP 8, the old
1959
- function names still exist and are depreciated.
1960
- - The fgcolor and bgcolor parameters have been shortened to fg and bg.
1961
-
1962
- ## [1.1.7] - 2015-03-19
1963
-
1964
- - Noise generator now seeds properly.
1965
- - The OS event queue will now be handled during a call to tdl.flush. This
1966
- prevents a common newbie programmer hang where events are handled
1967
- infrequently during long animations, simulations, or early development.
1968
- - Fixed a major bug that would cause a crash in later versions of Python 3
1969
-
1970
- ## [1.1.6] - 2014-06-27
1971
-
1972
- - Fixed a race condition when importing on some platforms.
1973
- - Fixed a type issue with quickFOV on Linux.
1974
- - Added a bresenham function to the tdl.map module.
1975
-
1976
- ## [1.1.5] - 2013-11-10
1977
-
1978
- - A for loop can iterate over all coordinates of a Console.
1979
- - drawStr can be configured to scroll or raise an error.
1980
- - You can now configure or disable key repeating with tdl.event.setKeyRepeat
1981
- - Typewriter class removed, use a Window instance for the same functionality.
1982
- - setColors method fixed.
1983
-
1984
- ## [1.1.4] - 2013-03-06
1985
-
1986
- - Merged the Typewriter and MetaConsole classes,
1987
- You now have a virtual cursor with Console and Window objects.
1988
- - Fixed the clear method on the Window class.
1989
- - Fixed screenshot function.
1990
- - Fixed some drawing operations with unchanging backgrounds.
1991
- - Instances of Console and Noise can be pickled and copied.
1992
- - Added KeyEvent.keychar
1993
- - Fixed event.keyWait, and now converts window closed events into Alt+F4.
1994
-
1995
- ## [1.1.3] - 2012-12-17
1996
-
1997
- - Some of the setFont parameters were incorrectly labeled and documented.
1998
- - setFont can auto-detect tilesets if the font sizes are in the filenames.
1999
- - Added some X11 unicode tilesets, including Unifont.
2000
-
2001
- ## [1.1.2] - 2012-12-13
2002
-
2003
- - Window title now defaults to the running scripts filename.
2004
- - Fixed incorrect deltaTime for App.update
2005
- - App will no longer call tdl.flush on its own, you'll need to call this
2006
- yourself.
2007
- - tdl.noise module added.
2008
- - clear method now defaults to black on black.
2009
-
2010
- ## [1.1.1] - 2012-12-05
2011
-
2012
- - Map submodule added with AStar class and quickFOV function.
2013
- - New Typewriter class.
2014
- - Most console functions can use Python-style negative indexes now.
2015
- - New App.runOnce method.
2016
- - Rectangle geometry is less strict.
2017
-
2018
- ## [1.1.0] - 2012-10-04
2019
-
2020
- - KeyEvent.keyname is now KeyEvent.key
2021
- - MouseButtonEvent.button now behaves like KeyEvent.keyname does.
2022
- - event.App class added.
2023
- - Drawing methods no longer have a default for the character parameter.
2024
- - KeyEvent.ctrl is now KeyEvent.control
2025
-
2026
- ## [1.0.8] - 2010-04-07
2027
-
2028
- - No longer works in Python 2.5 but now works in 3.x and has been partly
2029
- tested.
2030
- - Many bug fixes.
2031
-
2032
- ## [1.0.5] - 2010-04-06
2033
-
2034
- - Got rid of setuptools dependency, this will make it much more compatible
2035
- with Python 3.x
2036
- - Fixed a typo with the MacOS library import.
2037
-
2038
- ## [1.0.4] - 2010-04-06
2039
-
2040
- - All constant colors (C\_\*) have been removed, they may be put back in later.
2041
- - Made some type assertion failures show the value they received to help in
2042
- general debugging. Still working on it.
2043
- - Added MacOS and 64-bit Linux support.
2044
-
2045
- ## [1.0.0] - 2009-01-31
2046
-
2047
- - First public release.
1
+ # Changelog
2
+
3
+ Changes relevant to the users of python-tcod are documented here.
4
+
5
+ This project adheres to [Semantic Versioning](https://semver.org/) since version `2.0.0`.
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [19.5.0] - 2025-09-13
10
+
11
+ ### Changed
12
+
13
+ - Update to libtcod 2.2.1.
14
+ - Scaling defaults to nearest, set `os.environ["SDL_RENDER_SCALE_QUALITY"] = "linear"` if linear scaling was preferred.
15
+
16
+ ### Fixed
17
+
18
+ - `SDL_RENDER_SCALE_QUALITY` is now respected again since the change to SDL3.
19
+ - Fixed crash on controller events.
20
+
21
+ ## [19.4.1] - 2025-08-27
22
+
23
+ ### Fixed
24
+
25
+ - Fixed dangling pointer in `Pathfinder.clear` method.
26
+ - Fixed hang in `Pathfinder.rebuild_frontier` method.
27
+
28
+ ## [19.4.0] - 2025-08-06
29
+
30
+ ### Changed
31
+
32
+ - Checking "WindowSizeChanged" was not valid since SDL 3 and was also not valid in previous examples.
33
+ You must no longer check the type of the `WindowResized` event.
34
+
35
+ ### Fixed
36
+
37
+ - Corrected some inconsistent angle brackets in the `__str__` of Event subclasses. #165
38
+ - Fix regression with window events causing them to be `Unknown` and uncheckable.
39
+
40
+ ## [19.3.1] - 2025-08-02
41
+
42
+ Solved a deprecation warning which was internal to tcod and no doubt annoyed many devs.
43
+ Thanks to jmccardle for forcing me to resolve this.
44
+
45
+ ### Fixed
46
+
47
+ - Silenced internal deprecation warnings within `Context.convert_event`.
48
+
49
+ ## [19.3.0] - 2025-07-26
50
+
51
+ Thanks to cr0ne for pointing out missing texture scaling options.
52
+ These options did not exist in SDL2.
53
+
54
+ ### Added
55
+
56
+ - `tcod.sdl.render`: Added `ScaleMode` enum and `Texture.scale_mode` attribute.
57
+
58
+ ## [19.2.0] - 2025-07-20
59
+
60
+ Thanks to tryddle for demonstrating how bad the current API was with chunked world generation.
61
+
62
+ ### Added
63
+
64
+ - `tcod.noise.grid` now has the `offset` parameter for easier sampling of noise chunks.
65
+
66
+ ## [19.1.0] - 2025-07-12
67
+
68
+ ### Added
69
+
70
+ - Added text input support to `tcod.sdl.video.Window` which was missing since the SDL3 update.
71
+ After creating a context use `assert context.sdl_window` or `if context.sdl_window:` to verify that an SDL window exists then use `context.sdl_window.start_text_input` to enable text input events.
72
+ Keep in mind that this can open an on-screen keyboard.
73
+
74
+ ## [19.0.2] - 2025-07-11
75
+
76
+ Resolve wheel deployment issue.
77
+
78
+ ## [19.0.1] - 2025-07-11
79
+
80
+ ### Fixed
81
+
82
+ - `Console.print` methods using `string` keyword were marked as invalid instead of deprecated.
83
+
84
+ ## [19.0.0] - 2025-06-13
85
+
86
+ Finished port to SDL3, this has caused several breaking changes from SDL such as lowercase key constants now being uppercase and mouse events returning `float` instead of `int`.
87
+ Be sure to run [Mypy](https://mypy.readthedocs.io/en/stable/getting_started.html) on your projects to catch any issues from this update.
88
+
89
+ ### Changed
90
+
91
+ - Updated libtcod to 2.1.1
92
+ - Updated SDL to 3.2.16
93
+ This will cause several breaking changes such as the names of keyboard constants and other SDL enums.
94
+ - `tcod.sdl.video.Window.grab` has been split into `.mouse_grab` and `.keyboard_grab` attributes.
95
+ - `tcod.event.KeySym` single letter symbols are now all uppercase.
96
+ - Relative mouse mode is set via `tcod.sdl.video.Window.relative_mouse_mode` instead of `tcod.sdl.mouse.set_relative_mode`.
97
+ - `tcod.sdl.render.new_renderer`: Removed `software` and `target_textures` parameters, `vsync` takes `int`, `driver` takes `str` instead of `int`.
98
+ - `tcod.sdl.render.Renderer`: `integer_scaling` and `logical_size` are now set with `set_logical_presentation` method.
99
+ - `tcod.sdl.render.Renderer.geometry` now takes float values for `color` instead of 8-bit integers.
100
+ - `tcod.event.Point` and other mouse/tile coordinate types now use `float` instead of `int`.
101
+ SDL3 has decided that mouse events have subpixel precision.
102
+ If you see any usual `float` types in your code then this is why.
103
+ - `tcod.sdl.audio` has been affected by major changes to SDL3.
104
+ - `tcod.sdl.audio.open` has new behavior due to SDL3 and should be avoided.
105
+ - Callbacks which were assigned to `AudioDevice`'s must now be applied to `AudioStream`'s instead.
106
+ - `AudioDevice`'s are now opened using references to existing devices.
107
+ - Sound queueing methods were moved from `AudioDevice` to a new `AudioStream` class.
108
+ - `BasicMixer` may require manually specifying `frequency` and `channels` to replicate old behavior.
109
+ - `get_devices` and `get_capture_devices` now return `dict[str, AudioDevice]`.
110
+ - `TextInput` events are no longer enabled by default.
111
+
112
+ ### Deprecated
113
+
114
+ - `tcod.sdl.audio.open` was replaced with a newer API, get a default device with `tcod.sdl.audio.get_default_playback().open()`.
115
+ - `tcod.sdl.audio.BasicMixer` should be replaced with `AudioStream`'s.
116
+ - Should no longer use `tcod.sdl.audio.AudioDevice` in a context, use `contextlib.closing` for the old behavior.
117
+
118
+ ### Removed
119
+
120
+ - Support dropped for Python 3.8 and 3.9.
121
+ - Removed `Joystick.get_current_power` due to SDL3 changes.
122
+ - `WindowFlags.FULLSCREEN_DESKTOP` is now just `WindowFlags.FULLSCREEN`
123
+ - `tcod.sdl.render.Renderer.integer_scaling` removed.
124
+ - Removed `callback`, `spec`, `queued_samples`, `queue_audio`, and `dequeue_audio` attributes from `tcod.sdl.audio.AudioDevice`.
125
+ - `tcod.event.WindowResized`: `type="WindowSizeChanged"` removed and must no longer be checked for.
126
+ `EventDispatch.ev_windowsizechanged` is no longer called.
127
+
128
+ ### Fixed
129
+
130
+ - `Joystick.get_ball` was broken.
131
+
132
+ ## [18.1.0] - 2025-05-05
133
+
134
+ ### Added
135
+
136
+ - `tcod.path.path2d` to compute paths for the most basic cases.
137
+
138
+ ### Fixed
139
+
140
+ - `tcod.noise.grid` would raise `TypeError` when given a plain integer for scale.
141
+
142
+ ## [18.0.0] - 2025-04-08
143
+
144
+ ### Changed
145
+
146
+ - `Console.print` now accepts `height` and `width` keywords and has renamed `string` to `text`.
147
+ - Text printed with `Console.print` using right-alignment has been shifted to the left by 1-tile.
148
+
149
+ ### Deprecated
150
+
151
+ - In general the `fg`, `bg`, and `bg_blend` keywords are too hard to keep track of as positional arguments so they must be replaced with keyword arguments instead.
152
+ - `Console.print`: deprecated `string`, `fg`, `bg`, and `bg_blend` being given as positional arguments.
153
+ The `string` parameter has been renamed to `text`.
154
+ - `Console.print_box` has been replaced by `Console.print`.
155
+ - `Console.draw_frame`: deprecated `clear`, `fg`, `bg`, and `bg_blend` being given as positional arguments.
156
+ - `Console.draw_rect`: deprecated `fg`, `bg`, and `bg_blend` being given as positional arguments.
157
+ - The `EventDispatch` class is now deprecated.
158
+ This class was made before Python supported protocols and structural pattern matching,
159
+ now the class serves little purpose and its usage can create a minor technical burden.
160
+
161
+ ## [17.1.0] - 2025-03-29
162
+
163
+ ### Added
164
+
165
+ - SDL renderer primitive drawing methods now support sequences of tuples.
166
+
167
+ ### Fixed
168
+
169
+ - `tcod.sdl.Renderer.draw_lines` type hint was too narrow.
170
+ - Fixed crash in `tcod.sdl.Renderer.geometry`.
171
+
172
+ ## [17.0.0] - 2025-03-28
173
+
174
+ ### Changed
175
+
176
+ - `EventDispatch`'s on event methods are now defined as positional parameters, so renaming the `event` parameter is now valid in subclasses.
177
+
178
+ ### Deprecated
179
+
180
+ - Keyboard bitmask modifiers `tcod.event.KMOD_*` have been replaced by `tcod.event.Modifier`.
181
+
182
+ ### Fixed
183
+
184
+ - Suppressed internal `mouse.tile_motion` deprecation warning.
185
+ - Fixed SDL renderer primitive drawing methods. #159
186
+
187
+ ## [16.2.3] - 2024-07-16
188
+
189
+ ### Fixed
190
+
191
+ - Fixed access violation when events are polled before SDL is initialized.
192
+ - Fixed access violation when libtcod images fail to load.
193
+ - Verify input files exist when calling `libtcodpy.parser_run`, `libtcodpy.namegen_parse`, `tcod.image.load`.
194
+
195
+ ## [16.2.2] - 2024-01-16
196
+
197
+ ### Fixed
198
+
199
+ - Ignore the locale when encoding file paths outside of Windows.
200
+ - Fix performance when calling joystick functions.
201
+
202
+ ## [16.2.1] - 2023-09-24
203
+
204
+ ### Fixed
205
+
206
+ - Fixed errors loading files on Windows where their paths are non-ASCII and the locale is not UTF-8.
207
+
208
+ ## [16.2.0] - 2023-09-20
209
+
210
+ ### Changed
211
+
212
+ - Renamed `gauss` methods to fix typos.
213
+
214
+ ## [16.1.1] - 2023-07-10
215
+
216
+ ### Changed
217
+
218
+ - Added an empty `__slots__` to `EventDispatch`.
219
+ - Bundle `SDL 2.28.1` on Windows and MacOS.
220
+
221
+ ### Fixed
222
+
223
+ - Fixed "SDL failed to get a vertex buffer for this Direct3D 9 rendering batch!"
224
+ https://github.com/libtcod/python-tcod/issues/131
225
+
226
+ ### Removed
227
+
228
+ - Dropped support for Python 3.7.
229
+
230
+ ## [16.1.0] - 2023-06-23
231
+
232
+ ### Added
233
+
234
+ - Added the enums `tcod.event.MouseButton` and `tcod.event.MouseButtonMask`.
235
+
236
+ ### Changed
237
+
238
+ - Using `libtcod 1.24.0`.
239
+
240
+ ### Deprecated
241
+
242
+ - Mouse button and mask constants have been replaced by enums.
243
+
244
+ ### Fixed
245
+
246
+ - `WindowResized` literal annotations were in the wrong case.
247
+
248
+ ## [16.0.3] - 2023-06-04
249
+
250
+ ### Changed
251
+
252
+ - Enabled logging for libtcod and SDL.
253
+
254
+ ### Deprecated
255
+
256
+ - Deprecated using `tcod` as an implicit alias for `libtcodpy`.
257
+ You should use `from tcod import libtcodpy` if you want to access this module.
258
+ - Deprecated constants being held directly in `tcod`, get these from `tcod.libtcodpy` instead.
259
+ - Deprecated `tcod.Console` which should be accessed from `tcod.console.Console` instead.
260
+
261
+ ## [16.0.2] - 2023-06-02
262
+
263
+ ### Fixed
264
+
265
+ - Joystick/controller device events would raise `RuntimeError` when accessed after removal.
266
+
267
+ ## [16.0.1] - 2023-05-28
268
+
269
+ ### Fixed
270
+
271
+ - `AudioDevice.stopped` was inverted.
272
+ - Fixed the audio mixer stop and fadeout methods.
273
+ - Exceptions raised in the audio mixer callback no longer cause a messy crash, they now go to `sys.unraisablehook`.
274
+
275
+ ## [16.0.0] - 2023-05-27
276
+
277
+ ### Added
278
+
279
+ - Added PathLike support to more libtcodpy functions.
280
+ - New `tcod.sdl.mouse.show` function for querying or setting mouse visibility.
281
+ - New class method `tcod.image.Image.from_file` to load images with. This replaces `tcod.image_load`.
282
+ - `tcod.sdl.audio.AudioDevice` is now a context manager.
283
+
284
+ ### Changed
285
+
286
+ - SDL audio conversion will now pass unconvertible floating types as float32 instead of raising.
287
+
288
+ ### Deprecated
289
+
290
+ - Deprecated the libtcodpy functions for images and noise generators.
291
+
292
+ ### Removed
293
+
294
+ - `tcod.console_set_custom_font` can no longer take bytes as the file path.
295
+
296
+ ### Fixed
297
+
298
+ - Fix `tcod.sdl.mouse.warp_in_window` function.
299
+ - Fix `TypeError: '_AudioCallbackUserdata' object is not callable` when using an SDL audio device callback.
300
+ [#128](https://github.com/libtcod/python-tcod/issues/128)
301
+
302
+ ## [15.0.3] - 2023-05-25
303
+
304
+ ### Deprecated
305
+
306
+ - Deprecated all libtcod color constants. Replace these with your own manually defined colors.
307
+ Using a color will tell you the color values of the deprecated color in the warning.
308
+ - Deprecated older scancode and keysym constants. These were replaced with the Scancode and KeySym enums.
309
+
310
+ ### Fixed
311
+
312
+ - DLL loader could fail to load `SDL2.dll` when other tcod namespace packages were installed.
313
+
314
+ ## [15.0.1] - 2023-03-30
315
+
316
+ ### Added
317
+
318
+ - Added support for `tcod.sdl` namespace packages.
319
+
320
+ ### Fixed
321
+
322
+ - `Renderer.read_pixels` method was completely broken.
323
+
324
+ ## [15.0.0] - 2023-01-04
325
+
326
+ ### Changed
327
+
328
+ - Modified the letter case of window event types to match their type annotations.
329
+ This may cause regressions. Run Mypy to check for `[comparison-overlap]` errors.
330
+ - Mouse event attributes have been changed `.pixel -> .position` and `.pixel_motion -> .motion`.
331
+ - `Context.convert_event` now returns copies of events with mouse coordinates converted into tile positions.
332
+
333
+ ### Deprecated
334
+
335
+ - Mouse event pixel and tile attributes have been deprecated.
336
+
337
+ ## [14.0.0] - 2022-12-09
338
+
339
+ ### Added
340
+
341
+ - Added explicit support for namespace packages.
342
+
343
+ ### Changed
344
+
345
+ - Using `libtcod 1.23.1`.
346
+ - Bundle `SDL 2.26.0` on Windows and MacOS.
347
+ - Code Page 437: Character 0x7F is now assigned to 0x2302 (HOUSE).
348
+ - Forced all renderers to `RENDERER_SDL2` to fix rare graphical artifacts with OpenGL.
349
+
350
+ ### Deprecated
351
+
352
+ - The `renderer` parameter of new contexts is now deprecated.
353
+
354
+ ## [13.8.1] - 2022-09-23
355
+
356
+ ### Fixed
357
+
358
+ - `EventDispatch` was missing new event names.
359
+
360
+ ## [13.8.0] - 2022-09-22
361
+
362
+ ### Added
363
+
364
+ - Ported SDL2 joystick handing as `tcod.sdl.joystick`.
365
+ - New joystick related events.
366
+
367
+ ### Changed
368
+
369
+ - Using `libtcod 1.22.3`.
370
+ - Bundle `SDL 2.24.0` on Windows and MacOS.
371
+
372
+ ### Deprecated
373
+
374
+ - Renderers other than `tcod.RENDERER_SDL2` are now discouraged.
375
+
376
+ ### Fixed
377
+
378
+ - Fixed double present bug in non-context flush functions.
379
+ This was affecting performance and also caused a screen flicker whenever the global fade color was active.
380
+ - Fixed the parsing of SDL 2.24.0 headers on Windows.
381
+
382
+ ## [13.7.0] - 2022-08-07
383
+
384
+ ### Added
385
+
386
+ - You can new use `SDLConsoleRender.atlas` to access the `SDLTilesetAtlas` used to create it.
387
+ [#121](https://github.com/libtcod/python-tcod/issues/121)
388
+
389
+ ### Fixed
390
+
391
+ - Fixed the parsing of SDL 2.0.22 headers. Specifically `SDL_FLT_EPSILON`.
392
+
393
+ ## [13.6.2] - 2022-05-02
394
+
395
+ ### Fixed
396
+
397
+ - SDL renderers were ignoring tiles where only the background red channel was changed.
398
+
399
+ ## [13.6.1] - 2022-03-29
400
+
401
+ ### Changed
402
+
403
+ - The SDL2 renderer has had a major performance update when compiled with SDL 2.0.18.
404
+ - SDL2 is now the default renderer to avoid rare issues with the OpenGL 2 renderer.
405
+
406
+ ## [13.6.0] - 2022-02-19
407
+
408
+ ### Added
409
+
410
+ - `BasicMixer` and `Channel` classes added to `tcod.sdl.audio`. These handle simple audio mixing.
411
+ - `AudioDevice.convert` added to handle simple conversions to the active devices format.
412
+ - `tcod.sdl.audio.convert_audio` added to handle any other conversions needed.
413
+
414
+ ## [13.5.0] - 2022-02-11
415
+
416
+ ### Added
417
+
418
+ - `tcod.sdl.audio`, a new module exposing SDL audio devices. This does not include an audio mixer yet.
419
+ - `tcod.sdl.mouse`, for SDL mouse and cursor handing.
420
+ - `Context.sdl_atlas`, which provides the relevant `SDLTilesetAtlas` when one is being used by the context.
421
+ - Several missing features were added to `tcod.sdl.render`.
422
+ - `Window.mouse_rect` added to SDL windows to set the mouse confinement area.
423
+
424
+ ### Changed
425
+
426
+ - `Texture.access` and `Texture.blend_mode` properties now return enum instances.
427
+ You can still set `blend_mode` with `int` but Mypy will complain.
428
+
429
+ ## [13.4.0] - 2022-02-04
430
+
431
+ ### Added
432
+
433
+ - Adds `sdl_window` and `sdl_renderer` properties to tcod contexts.
434
+ - Adds `tcod.event.add_watch` and `tcod.event.remove_watch` to handle SDL events via callback.
435
+ - Adds the `tcod.sdl.video` module to handle SDL windows.
436
+ - Adds the `tcod.sdl.render` module to handle SDL renderers.
437
+ - Adds the `tcod.render` module which gives more control over the rendering of consoles and tilesets.
438
+
439
+ ### Fixed
440
+
441
+ - Fixed handling of non-Path PathLike parameters and filepath encodings.
442
+
443
+ ## [13.3.0] - 2022-01-07
444
+
445
+ ### Added
446
+
447
+ - New experimental renderer `tcod.context.RENDERER_XTERM`.
448
+
449
+ ### Changed
450
+
451
+ - Using `libtcod 1.20.1`.
452
+
453
+ ### Fixed
454
+
455
+ - Functions accepting `Path`-like parameters now accept the more correct `os.PathLike` type.
456
+ - BDF files with blank lines no longer fail to load with an "Unknown keyword" error.
457
+
458
+ ## [13.2.0] - 2021-12-24
459
+
460
+ ### Added
461
+
462
+ - New `console` parameter in `tcod.context.new` which sets parameters from an existing Console.
463
+
464
+ ### Changed
465
+
466
+ - Using `libtcod 1.20.0`.
467
+
468
+ ### Fixed
469
+
470
+ - Fixed segfault when an OpenGL2 context fails to load.
471
+ - Gaussian number generation no longer affects the results of unrelated RNG's.
472
+ - Gaussian number generation is now reentrant and thread-safe.
473
+ - Fixed potential crash in PNG image loading.
474
+
475
+ ## [13.1.0] - 2021-10-22
476
+
477
+ ### Added
478
+
479
+ - Added the `tcod.tileset.procedural_block_elements` function.
480
+
481
+ ### Removed
482
+
483
+ - Python 3.6 is no longer supported.
484
+
485
+ ## [13.0.0] - 2021-09-20
486
+
487
+ ### Changed
488
+
489
+ - Console print and drawing functions now always use absolute coordinates for negative numbers.
490
+
491
+ ## [12.7.3] - 2021-08-13
492
+
493
+ ### Deprecated
494
+
495
+ - `tcod.console_is_key_pressed` was replaced with `tcod.event.get_keyboard_state`.
496
+ - `tcod.console_from_file` is deprecated.
497
+ - The `.asc` and `.apf` formats are no longer actively supported.
498
+
499
+ ### Fixed
500
+
501
+ - Fixed the parsing of SDL 2.0.16 headers.
502
+
503
+ ## [12.7.2] - 2021-07-01
504
+
505
+ ### Fixed
506
+
507
+ - _Scancode_ and _KeySym_ enums no longer crash when SDL returns an unexpected value.
508
+
509
+ ## [12.7.1] - 2021-06-30
510
+
511
+ ### Added
512
+
513
+ - Started uploading wheels for ARM64 macOS.
514
+
515
+ ## [12.7.0] - 2021-06-29
516
+
517
+ ### Added
518
+
519
+ - _tcod.image_ and _tcod.tileset_ now support _pathlib_.
520
+
521
+ ### Fixed
522
+
523
+ - Wheels for 32-bit Windows now deploy again.
524
+
525
+ ## [12.6.2] - 2021-06-15
526
+
527
+ ### Fixed
528
+
529
+ - Git is no longer required to install from source.
530
+
531
+ ## [12.6.1] - 2021-06-09
532
+
533
+ ### Fixed
534
+
535
+ - Fixed version mismatch when building from sources.
536
+
537
+ ## [12.6.0] - 2021-06-09
538
+
539
+ ### Added
540
+
541
+ - Added the _decoration_ parameter to _Console.draw_frame_.
542
+ You may use this parameter to designate custom glyphs as the frame border.
543
+
544
+ ### Deprecated
545
+
546
+ - The handling of negative indexes given to console drawing and printing
547
+ functions will be changed to be used as absolute coordinates in the future.
548
+
549
+ ## [12.5.1] - 2021-05-30
550
+
551
+ ### Fixed
552
+
553
+ - The setup script should no longer fail silently when cffi is unavailable.
554
+
555
+ ## [12.5.0] - 2021-05-21
556
+
557
+ ### Changed
558
+
559
+ - `KeyboardEvent`'s '`scancode`, `sym`, and `mod` attributes now use their respective enums.
560
+
561
+ ## [12.4.0] - 2021-05-21
562
+
563
+ ### Added
564
+
565
+ - Added modernized REXPaint saving/loading functions.
566
+ - `tcod.console.load_xp`
567
+ - `tcod.console.save_xp`
568
+
569
+ ### Changed
570
+
571
+ - Using `libtcod 1.18.1`.
572
+ - `tcod.event.KeySym` and `tcod.event.Scancode` can now be hashed.
573
+
574
+ ## [12.3.2] - 2021-05-15
575
+
576
+ ### Changed
577
+
578
+ - Using `libtcod 1.17.1`.
579
+
580
+ ### Fixed
581
+
582
+ - Fixed regression with loading PNG images.
583
+
584
+ ## [12.3.1] - 2021-05-13
585
+
586
+ ### Fixed
587
+
588
+ - Fix Windows deployment.
589
+
590
+ ## [12.3.0] - 2021-05-13
591
+
592
+ ### Added
593
+
594
+ - New keyboard enums:
595
+ - `tcod.event.KeySym`
596
+ - `tcod.event.Scancode`
597
+ - `tcod.event.Modifier`
598
+ - New functions:
599
+ - `tcod.event.get_keyboard_state`
600
+ - `tcod.event.get_modifier_state`
601
+ - Added `tcod.console.rgb_graphic` and `tcod.console.rgba_graphic` dtypes.
602
+ - Another name for the Console array attributes: `Console.rgb` and `Console.rgba`.
603
+
604
+ ### Changed
605
+
606
+ - Using `libtcod 1.17.0`.
607
+
608
+ ### Deprecated
609
+
610
+ - `Console_tiles_rgb` is being renamed to `Console.rgb`.
611
+ - `Console_tiles` being renamed to `Console.rgba`.
612
+
613
+ ### Fixed
614
+
615
+ - Contexts now give a more useful error when pickled.
616
+ - Fixed regressions with `tcod.console_print_frame` and `Console.print_frame`
617
+ when given empty strings as the banner.
618
+
619
+ ## [12.2.0] - 2021-04-09
620
+
621
+ ### Added
622
+
623
+ - Added `tcod.noise.Algorithm` and `tcod.noise.Implementation` enums.
624
+ - Added `tcod.noise.grid` helper function.
625
+
626
+ ### Deprecated
627
+
628
+ - The non-enum noise implementation names have been deprecated.
629
+
630
+ ### Fixed
631
+
632
+ - Indexing Noise classes now works with the FBM implementation.
633
+
634
+ ## [12.1.0] - 2021-04-01
635
+
636
+ ### Added
637
+
638
+ - Added package-level PyInstaller hook.
639
+
640
+ ### Changed
641
+
642
+ - Using `libtcod 1.16.7`.
643
+ - `tcod.path.dijkstra2d` now returns the output and accepts an `out` parameter.
644
+
645
+ ### Deprecated
646
+
647
+ - In the future `tcod.path.dijkstra2d` will no longer modify the input by default. Until then an `out` parameter must be given.
648
+
649
+ ### Fixed
650
+
651
+ - Fixed crashes from loading tilesets with non-square tile sizes.
652
+ - Tilesets with a size of 0 should no longer crash when used.
653
+ - Prevent division by zero from recommended-console-size functions.
654
+
655
+ ## [12.0.0] - 2021-03-05
656
+
657
+ ### Added
658
+
659
+ - Now includes PyInstaller hooks within the package itself.
660
+
661
+ ### Deprecated
662
+
663
+ - The Random class will now warn if the seed it's given will not used
664
+ deterministically. It will no longer accept non-integer seeds in the future.
665
+
666
+ ### Changed
667
+
668
+ - Now bundles SDL 2.0.14 for MacOS.
669
+ - `tcod.event` can now detect and will warn about uninitialized tile
670
+ attributes on mouse events.
671
+
672
+ ### Removed
673
+
674
+ - Python 3.5 is no longer supported.
675
+ - The `tdl` module has been dropped.
676
+
677
+ ## [11.19.3] - 2021-01-07
678
+
679
+ ### Fixed
680
+
681
+ - Some wheels had broken version metadata.
682
+
683
+ ## [11.19.2] - 2020-12-30
684
+
685
+ ### Changed
686
+
687
+ - Now bundles SDL 2.0.10 for MacOS and SDL 2.0.14 for Windows.
688
+
689
+ ### Fixed
690
+
691
+ - MacOS wheels were failing to bundle dependencies for SDL2.
692
+
693
+ ## [11.19.1] - 2020-12-29
694
+
695
+ ### Fixed
696
+
697
+ - MacOS wheels failed to deploy for the previous version.
698
+
699
+ ## [11.19.0] - 2020-12-29
700
+
701
+ ### Added
702
+
703
+ - Added the important `order` parameter to `Context.new_console`.
704
+
705
+ ## [11.18.3] - 2020-12-28
706
+
707
+ ### Changed
708
+
709
+ - Now bundles SDL 2.0.14 for Windows/MacOS.
710
+
711
+ ### Deprecated
712
+
713
+ - Support for Python 3.5 will be dropped.
714
+ - `tcod.console_load_xp` has been deprecated, `tcod.console_from_xp` can load
715
+ these files without modifying an existing console.
716
+
717
+ ### Fixed
718
+
719
+ - `tcod.console_from_xp` now has better error handling (instead of crashing.)
720
+ - Can now compile with SDL 2.0.14 headers.
721
+
722
+ ## [11.18.2] - 2020-12-03
723
+
724
+ ### Fixed
725
+
726
+ - Fixed missing `tcod.FOV_SYMMETRIC_SHADOWCAST` constant.
727
+ - Fixed regression in `tcod.sys_get_current_resolution` behavior. This
728
+ function now returns the monitor resolution as was previously expected.
729
+
730
+ ## [11.18.1] - 2020-11-30
731
+
732
+ ### Fixed
733
+
734
+ - Code points from the Private Use Area will now print correctly.
735
+
736
+ ## [11.18.0] - 2020-11-13
737
+
738
+ ### Added
739
+
740
+ - New context method `Context.new_console`.
741
+
742
+ ### Changed
743
+
744
+ - Using `libtcod 1.16.0-alpha.15`.
745
+
746
+ ## [11.17.0] - 2020-10-30
747
+
748
+ ### Added
749
+
750
+ - New FOV implementation: `tcod.FOV_SYMMETRIC_SHADOWCAST`.
751
+
752
+ ### Changed
753
+
754
+ - Using `libtcod 1.16.0-alpha.14`.
755
+
756
+ ## [11.16.1] - 2020-10-28
757
+
758
+ ### Deprecated
759
+
760
+ - Changed context deprecations to PendingDeprecationWarning to reduce mass
761
+ panic from tutorial followers.
762
+
763
+ ### Fixed
764
+
765
+ - Fixed garbled titles and crashing on some platforms.
766
+
767
+ ## [11.16.0] - 2020-10-23
768
+
769
+ ### Added
770
+
771
+ - Added `tcod.context.new` function.
772
+ - Contexts now support a CLI.
773
+ - You can now provide the window x,y position when making contexts.
774
+ - `tcod.noise.Noise` instances can now be indexed to generate noise maps.
775
+
776
+ ### Changed
777
+
778
+ - Using `libtcod 1.16.0-alpha.13`.
779
+ - The OpenGL 2 renderer can now use `SDL_HINT_RENDER_SCALE_QUALITY` to
780
+ determine the tileset upscaling filter.
781
+ - Improved performance of the FOV_BASIC algorithm.
782
+
783
+ ### Deprecated
784
+
785
+ - `tcod.context.new_window` and `tcod.context.new_terminal` have been replaced
786
+ by `tcod.context.new`.
787
+
788
+ ### Fixed
789
+
790
+ - Pathfinders will now work with boolean arrays.
791
+ - Console blits now ignore alpha compositing which would result in division by
792
+ zero.
793
+ - `tcod.console_is_key_pressed` should work even if libtcod events are ignored.
794
+ - The `TCOD_RENDERER` and `TCOD_VSYNC` environment variables should work now.
795
+ - `FOV_PERMISSIVE` algorithm is now reentrant.
796
+
797
+ ## [11.15.3] - 2020-07-30
798
+
799
+ ### Fixed
800
+
801
+ - `tcod.tileset.Tileset.remap`, codepoint and index were swapped.
802
+
803
+ ## [11.15.2] - 2020-07-27
804
+
805
+ ### Fixed
806
+
807
+ - `tcod.path.dijkstra2d`, fixed corrupted output with int8 arrays.
808
+
809
+ ## [11.15.1] - 2020-07-26
810
+
811
+ ### Changed
812
+
813
+ - `tcod.event.EventDispatch` now uses the absolute names for event type hints
814
+ so that IDE's can better auto-complete method overrides.
815
+
816
+ ### Fixed
817
+
818
+ - Fixed libtcodpy heightmap data alignment issues on non-square maps.
819
+
820
+ ## [11.15.0] - 2020-06-29
821
+
822
+ ### Added
823
+
824
+ - `tcod.path.SimpleGraph` for pathfinding on simple 2D arrays.
825
+
826
+ ### Changed
827
+
828
+ - `tcod.path.CustomGraph` now accepts an `order` parameter.
829
+
830
+ ## [11.14.0] - 2020-06-23
831
+
832
+ ### Added
833
+
834
+ - New `tcod.los` module for NumPy-based line-of-sight algorithms.
835
+ Includes `tcod.los.bresenham`.
836
+
837
+ ### Deprecated
838
+
839
+ - `tcod.line_where` and `tcod.line_iter` have been deprecated.
840
+
841
+ ## [11.13.6] - 2020-06-19
842
+
843
+ ### Deprecated
844
+
845
+ - `console_init_root` and `console_set_custom_font` have been replaced by the
846
+ modern API.
847
+ - All functions which handle SDL windows without a context are deprecated.
848
+ - All functions which modify a globally active tileset are deprecated.
849
+ - `tcod.map.Map` is deprecated, NumPy arrays should be passed to functions
850
+ directly instead of through this class.
851
+
852
+ ## [11.13.5] - 2020-06-15
853
+
854
+ ### Fixed
855
+
856
+ - Install requirements will no longer try to downgrade `cffi`.
857
+
858
+ ## [11.13.4] - 2020-06-15
859
+
860
+ ## [11.13.3] - 2020-06-13
861
+
862
+ ### Fixed
863
+
864
+ - `cffi` requirement has been updated to version `1.13.0`.
865
+ The older versions raise TypeError's.
866
+
867
+ ## [11.13.2] - 2020-06-12
868
+
869
+ ### Fixed
870
+
871
+ - SDL related errors during package installation are now more readable.
872
+
873
+ ## [11.13.1] - 2020-05-30
874
+
875
+ ### Fixed
876
+
877
+ - `tcod.event.EventDispatch`: `ev_*` methods now allow `Optional[T]` return
878
+ types.
879
+
880
+ ## [11.13.0] - 2020-05-22
881
+
882
+ ### Added
883
+
884
+ - `tcod.path`: New `Pathfinder` and `CustomGraph` classes.
885
+
886
+ ### Changed
887
+
888
+ - Added `edge_map` parameter to `tcod.path.dijkstra2d` and
889
+ `tcod.path.hillclimb2d`.
890
+
891
+ ### Fixed
892
+
893
+ - tcod.console_init_root` and context initializing functions were not
894
+ raising exceptions on failure.
895
+
896
+ ## [11.12.1] - 2020-05-02
897
+
898
+ ### Fixed
899
+
900
+ - Prevent adding non-existent 2nd halves to potential double-wide charterers.
901
+
902
+ ## [11.12.0] - 2020-04-30
903
+
904
+ ### Added
905
+
906
+ - Added `tcod.context` module. You now have more options for making libtcod
907
+ controlled contexts.
908
+ - `tcod.tileset.load_tilesheet`: Load a simple tilesheet as a Tileset.
909
+ - `Tileset.remap`: Reassign codepoints to tiles on a Tileset.
910
+ - `tcod.tileset.CHARMAP_CP437`: Character mapping for `load_tilesheet`.
911
+ - `tcod.tileset.CHARMAP_TCOD`: Older libtcod layout.
912
+
913
+ ### Changed
914
+
915
+ - `EventDispatch.dispatch` can now return the values returned by the `ev_*`
916
+ methods. The class is now generic to support type checking these values.
917
+ - Event mouse coordinates are now strictly int types.
918
+ - Submodules are now implicitly imported.
919
+
920
+ ## [11.11.4] - 2020-04-26
921
+
922
+ ### Changed
923
+
924
+ - Using `libtcod 1.16.0-alpha.10`.
925
+
926
+ ### Fixed
927
+
928
+ - Fixed characters being dropped when color codes were used.
929
+
930
+ ## [11.11.3] - 2020-04-24
931
+
932
+ ### Changed
933
+
934
+ - Using `libtcod 1.16.0-alpha.9`.
935
+
936
+ ### Fixed
937
+
938
+ - `FOV_DIAMOND` and `FOV_RESTRICTIVE` algorithms are now reentrant.
939
+ [libtcod#48](https://github.com/libtcod/libtcod/pull/48)
940
+ - The `TCOD_VSYNC` environment variable was being ignored.
941
+
942
+ ## [11.11.2] - 2020-04-22
943
+
944
+ ## [11.11.1] - 2020-04-03
945
+
946
+ ### Changed
947
+
948
+ - Using `libtcod 1.16.0-alpha.8`.
949
+
950
+ ### Fixed
951
+
952
+ - Changing the active tileset now redraws tiles correctly on the next frame.
953
+
954
+ ## [11.11.0] - 2020-04-02
955
+
956
+ ### Added
957
+
958
+ - Added `Console.close` as a more obvious way to close the active window of a
959
+ root console.
960
+
961
+ ### Changed
962
+
963
+ - GCC is no longer needed to compile the library on Windows.
964
+ - Using `libtcod 1.16.0-alpha.7`.
965
+ - `tcod.console_flush` will now accept an RGB tuple as a `clear_color`.
966
+
967
+ ### Fixed
968
+
969
+ - Changing the active tileset will now properly show it on the next render.
970
+
971
+ ## [11.10.0] - 2020-03-26
972
+
973
+ ### Added
974
+
975
+ - Added `tcod.tileset.load_bdf`, you can now load BDF fonts.
976
+ - `tcod.tileset.set_default` and `tcod.tileset.get_default` are now stable.
977
+
978
+ ### Changed
979
+
980
+ - Using `libtcod 1.16.0-alpha.6`.
981
+
982
+ ### Deprecated
983
+
984
+ - The `snap_to_integer` parameter in `tcod.console_flush` has been deprecated
985
+ since it can cause minor scaling issues which don't exist when using
986
+ `integer_scaling` instead.
987
+
988
+ ## [11.9.2] - 2020-03-17
989
+
990
+ ### Fixed
991
+
992
+ - Fixed segfault after the Tileset returned by `tcod.tileset.get_default` goes
993
+ out of scope.
994
+
995
+ ## [11.9.1] - 2020-02-28
996
+
997
+ ### Changed
998
+
999
+ - Using `libtcod 1.16.0-alpha.5`.
1000
+ - Mouse tile coordinates are now always zero before the first call to
1001
+ `tcod.console_flush`.
1002
+
1003
+ ## [11.9.0] - 2020-02-22
1004
+
1005
+ ### Added
1006
+
1007
+ - New method `Tileset.render` renders an RGBA NumPy array from a tileset and
1008
+ a console.
1009
+
1010
+ ## [11.8.2] - 2020-02-22
1011
+
1012
+ ### Fixed
1013
+
1014
+ - Prevent KeyError when representing unusual keyboard symbol constants.
1015
+
1016
+ ## [11.8.1] - 2020-02-22
1017
+
1018
+ ### Changed
1019
+
1020
+ - Using `libtcod 1.16.0-alpha.4`.
1021
+
1022
+ ### Fixed
1023
+
1024
+ - Mouse tile coordinates are now correct on any resized window.
1025
+
1026
+ ## [11.8.0] - 2020-02-21
1027
+
1028
+ ### Added
1029
+
1030
+ - Added `tcod.console.recommended_size` for when you want to change your main
1031
+ console size at runtime.
1032
+ - Added `Console.tiles_rgb` as a replacement for `Console.tiles2`.
1033
+
1034
+ ### Changed
1035
+
1036
+ - Using `libtcod 1.16.0-alpha.3`.
1037
+ - Added parameters to `tcod.console_flush`, you can now manually provide a
1038
+ console and adjust how it is presented.
1039
+
1040
+ ### Deprecated
1041
+
1042
+ - `Console.tiles2` is deprecated in favour of `Console.tiles_rgb`.
1043
+ - `Console.buffer` is now deprecated in favour of `Console.tiles`, instead of
1044
+ the other way around.
1045
+
1046
+ ### Fixed
1047
+
1048
+ - Fixed keyboard state and mouse state functions losing state when events were
1049
+ flushed.
1050
+
1051
+ ## [11.7.2] - 2020-02-16
1052
+
1053
+ ### Fixed
1054
+
1055
+ - Fixed regression in `tcod.console_clear`.
1056
+
1057
+ ## [11.7.1] - 2020-02-16
1058
+
1059
+ ### Fixed
1060
+
1061
+ - Fixed regression in `Console.draw_frame`.
1062
+ - The wavelet noise generator now excludes -1.0f and 1.0f as return values.
1063
+ - Fixed console fading color regression.
1064
+
1065
+ ## [11.7.0] - 2020-02-14
1066
+
1067
+ ### Changed
1068
+
1069
+ - Using `libtcod 1.16.0-alpha.2`.
1070
+ - When a renderer fails to load it will now fallback to a different one.
1071
+ The order is: OPENGL2 -> OPENGL -> SDL2.
1072
+ - The default renderer is now SDL2.
1073
+ - The SDL and OPENGL renderers are no longer deprecated, but they now point to
1074
+ slightly different backward compatible implementations.
1075
+
1076
+ ### Deprecated
1077
+
1078
+ - The use of `libtcod.cfg` and `terminal.png` is deprecated.
1079
+
1080
+ ### Fixed
1081
+
1082
+ - `tcod.sys_update_char` now works with the newer renderers.
1083
+ - Fixed buffer overflow in name generator.
1084
+ - `tcod.image_from_console` now works with the newer renderers.
1085
+ - New renderers now auto-load fonts from `libtcod.cfg` or `terminal.png`.
1086
+
1087
+ ## [11.6.0] - 2019-12-05
1088
+
1089
+ ### Changed
1090
+
1091
+ - Console blit operations now perform per-cell alpha transparency.
1092
+
1093
+ ## [11.5.1] - 2019-11-23
1094
+
1095
+ ### Fixed
1096
+
1097
+ - Python 3.8 wheels failed to deploy.
1098
+
1099
+ ## [11.5.0] - 2019-11-22
1100
+
1101
+ ### Changed
1102
+
1103
+ - Quarter block elements are now rendered using Unicode instead of a custom
1104
+ encoding.
1105
+
1106
+ ### Fixed
1107
+
1108
+ - `OPENGL` and `GLSL` renderers were not properly clearing space characters.
1109
+
1110
+ ## [11.4.1] - 2019-10-15
1111
+
1112
+ ### Added
1113
+
1114
+ - Uploaded Python 3.8 wheels to PyPI.
1115
+
1116
+ ## [11.4.0] - 2019-09-20
1117
+
1118
+ ### Added
1119
+
1120
+ - Added `__array_interface__` to the Image class.
1121
+ - Added `Console.draw_semigraphics` as a replacement for blit_2x functions.
1122
+ `draw_semigraphics` can handle array-like objects.
1123
+ - `Image.from_array` class method creates an Image from an array-like object.
1124
+ - `tcod.image.load` loads a PNG file as an RGBA array.
1125
+
1126
+ ### Changed
1127
+
1128
+ - `Console.tiles` is now named `Console.buffer`.
1129
+
1130
+ ## [11.3.0] - 2019-09-06
1131
+
1132
+ ### Added
1133
+
1134
+ - New attribute `Console.tiles2` is similar to `Console.tiles` but without an
1135
+ alpha channel.
1136
+
1137
+ ## [11.2.2] - 2019-08-25
1138
+
1139
+ ### Fixed
1140
+
1141
+ - Fixed a regression preventing PyInstaller distributions from loading SDL2.
1142
+
1143
+ ## [11.2.1] - 2019-08-25
1144
+
1145
+ ## [11.2.0] - 2019-08-24
1146
+
1147
+ ### Added
1148
+
1149
+ - `tcod.path.dijkstra2d`: Computes Dijkstra from an arbitrary initial state.
1150
+ - `tcod.path.hillclimb2d`: Returns a path from a distance array.
1151
+ - `tcod.path.maxarray`: Creates arrays filled with maximum finite values.
1152
+
1153
+ ### Fixed
1154
+
1155
+ - Changing the tiles of an active tileset on OPENGL2 will no longer leave
1156
+ temporary artifact tiles.
1157
+ - It's now harder to accidentally import tcod's internal modules.
1158
+
1159
+ ## [11.1.2] - 2019-08-02
1160
+
1161
+ ### Changed
1162
+
1163
+ - Now bundles SDL 2.0.10 for Windows/MacOS.
1164
+
1165
+ ### Fixed
1166
+
1167
+ - Can now parse SDL 2.0.10 headers during installation without crashing.
1168
+
1169
+ ## [11.1.1] - 2019-08-01
1170
+
1171
+ ### Deprecated
1172
+
1173
+ - Using an out-of-bounds index for field-of-view operations now raises a
1174
+ warning, which will later become an error.
1175
+
1176
+ ### Fixed
1177
+
1178
+ - Changing the tiles of an active tileset will now work correctly.
1179
+
1180
+ ## [11.1.0] - 2019-07-05
1181
+
1182
+ ### Added
1183
+
1184
+ - You can now set the `TCOD_RENDERER` and `TCOD_VSYNC` environment variables to
1185
+ force specific options to be used.
1186
+ Example: `TCOD_RENDERER=sdl2 TCOD_VSYNC=1`
1187
+
1188
+ ### Changed
1189
+
1190
+ - `tcod.sys_set_renderer` now raises an exception if it fails.
1191
+
1192
+ ### Fixed
1193
+
1194
+ - `tcod.console_map_ascii_code_to_font` functions will now work when called
1195
+ before `tcod.console_init_root`.
1196
+
1197
+ ## [11.0.2] - 2019-06-21
1198
+
1199
+ ### Changed
1200
+
1201
+ - You no longer need OpenGL to build python-tcod.
1202
+
1203
+ ## [11.0.1] - 2019-06-21
1204
+
1205
+ ### Changed
1206
+
1207
+ - Better runtime checks for Windows dependencies should now give distinct
1208
+ errors depending on if the issue is SDL2 or missing redistributables.
1209
+
1210
+ ### Fixed
1211
+
1212
+ - Changed NumPy type hints from `np.array` to `np.ndarray` which should
1213
+ resolve issues.
1214
+
1215
+ ## [11.0.0] - 2019-06-14
1216
+
1217
+ ### Changed
1218
+
1219
+ - `tcod.map.compute_fov` now takes a 2-item tuple instead of separate `x` and
1220
+ `y` parameters. This causes less confusion over how axes are aligned.
1221
+
1222
+ ## [10.1.1] - 2019-06-02
1223
+
1224
+ ### Changed
1225
+
1226
+ - Better string representations for `tcod.event.Event` subclasses.
1227
+
1228
+ ### Fixed
1229
+
1230
+ - Fixed regressions in text alignment for non-rectangle print functions.
1231
+
1232
+ ## [10.1.0] - 2019-05-24
1233
+
1234
+ ### Added
1235
+
1236
+ - `tcod.console_init_root` now has an optional `vsync` parameter.
1237
+
1238
+ ## [10.0.5] - 2019-05-17
1239
+
1240
+ ### Fixed
1241
+
1242
+ - Fixed shader compilation issues in the OPENGL2 renderer.
1243
+ - Fallback fonts should fail less on Linux.
1244
+
1245
+ ## [10.0.4] - 2019-05-17
1246
+
1247
+ ### Changed
1248
+
1249
+ - Now depends on cffi 0.12 or later.
1250
+
1251
+ ### Fixed
1252
+
1253
+ - `tcod.console_init_root` and `tcod.console_set_custom_font` will raise
1254
+ exceptions instead of terminating.
1255
+ - Fixed issues preventing `tcod.event` from working on 32-bit Windows.
1256
+
1257
+ ## [10.0.3] - 2019-05-10
1258
+
1259
+ ### Fixed
1260
+
1261
+ - Corrected bounding box issues with the `Console.print_box` method.
1262
+
1263
+ ## [10.0.2] - 2019-04-26
1264
+
1265
+ ### Fixed
1266
+
1267
+ - Resolved Color warnings when importing tcod.
1268
+ - When compiling, fixed a name conflict with endianness macros on FreeBSD.
1269
+
1270
+ ## [10.0.1] - 2019-04-19
1271
+
1272
+ ### Fixed
1273
+
1274
+ - Fixed horizontal alignment for TrueType fonts.
1275
+ - Fixed taking screenshots with the older SDL renderer.
1276
+
1277
+ ## [10.0.0] - 2019-03-29
1278
+
1279
+ ### Added
1280
+
1281
+ - New `Console.tiles` array attribute.
1282
+
1283
+ ### Changed
1284
+
1285
+ - `Console.DTYPE` changed to add alpha to its color types.
1286
+
1287
+ ### Fixed
1288
+
1289
+ - Console printing was ignoring color codes at the beginning of a string.
1290
+
1291
+ ## [9.3.0] - 2019-03-15
1292
+
1293
+ ### Added
1294
+
1295
+ - The SDL2/OPENGL2 renderers can potentially use a fall-back font when none
1296
+ are provided.
1297
+ - New function `tcod.event.get_mouse_state`.
1298
+ - New function `tcod.map.compute_fov` lets you get a visibility array directly
1299
+ from a transparency array.
1300
+
1301
+ ### Deprecated
1302
+
1303
+ - The following functions and classes have been deprecated.
1304
+ - `tcod.Key`
1305
+ - `tcod.Mouse`
1306
+ - `tcod.mouse_get_status`
1307
+ - `tcod.console_is_window_closed`
1308
+ - `tcod.console_check_for_keypress`
1309
+ - `tcod.console_wait_for_keypress`
1310
+ - `tcod.console_delete`
1311
+ - `tcod.sys_check_for_event`
1312
+ - `tcod.sys_wait_for_event`
1313
+ - The SDL, OPENGL, and GLSL renderers have been deprecated.
1314
+ - Many libtcodpy functions have been marked with PendingDeprecationWarning's.
1315
+
1316
+ ### Fixed
1317
+
1318
+ - To be more compatible with libtcodpy `tcod.console_init_root` will default
1319
+ to the SDL render, but will raise warnings when an old renderer is used.
1320
+
1321
+ ## [9.2.5] - 2019-03-04
1322
+
1323
+ ### Fixed
1324
+
1325
+ - Fixed `tcod.namegen_generate_custom`.
1326
+
1327
+ ## [9.2.4] - 2019-03-02
1328
+
1329
+ ### Fixed
1330
+
1331
+ - The `tcod` package is has been marked as typed and will now work with MyPy.
1332
+
1333
+ ## [9.2.3] - 2019-03-01
1334
+
1335
+ ### Deprecated
1336
+
1337
+ - The behavior for negative indexes on the new print functions may change in
1338
+ the future.
1339
+ - Methods and functionality preventing `tcod.Color` from behaving like a tuple
1340
+ have been deprecated.
1341
+
1342
+ ## [9.2.2] - 2019-02-26
1343
+
1344
+ ### Fixed
1345
+
1346
+ - `Console.print_box` wasn't setting the background color by default.
1347
+
1348
+ ## [9.2.1] - 2019-02-25
1349
+
1350
+ ### Fixed
1351
+
1352
+ - `tcod.sys_get_char_size` fixed on the new renderers.
1353
+
1354
+ ## [9.2.0] - 2019-02-24
1355
+
1356
+ ### Added
1357
+
1358
+ - New `tcod.console.get_height_rect` function, which can be used to get the
1359
+ height of a print call without an existing console.
1360
+ - New `tcod.tileset` module, with a `set_truetype_font` function.
1361
+
1362
+ ### Fixed
1363
+
1364
+ - The new print methods now handle alignment according to how they were
1365
+ documented.
1366
+ - `SDL2` and `OPENGL2` now support screenshots.
1367
+ - Windows and MacOS builds now restrict exported SDL2 symbols to only
1368
+ SDL 2.0.5; This will avoid hard to debug import errors when the wrong
1369
+ version of SDL is dynamically linked.
1370
+ - The root console now starts with a white foreground.
1371
+
1372
+ ## [9.1.0] - 2019-02-23
1373
+
1374
+ ### Added
1375
+
1376
+ - Added the `tcod.random.MULTIPLY_WITH_CARRY` constant.
1377
+
1378
+ ### Changed
1379
+
1380
+ - The overhead for warnings has been reduced when running Python with the
1381
+ optimize `-O` flag.
1382
+ - `tcod.random.Random` now provides a default algorithm.
1383
+
1384
+ ## [9.0.0] - 2019-02-17
1385
+
1386
+ ### Changed
1387
+
1388
+ - New console methods now default to an `fg` and `bg` of None instead of
1389
+ white-on-black.
1390
+
1391
+ ## [8.5.0] - 2019-02-15
1392
+
1393
+ ### Added
1394
+
1395
+ - `tcod.console.Console` now supports `str` and `repr`.
1396
+ - Added new Console methods which are independent from the console defaults.
1397
+ - You can now give an array when initializing a `tcod.console.Console`
1398
+ instance.
1399
+ - `Console.clear` can now take `ch`, `fg`, and `bg` parameters.
1400
+
1401
+ ### Changed
1402
+
1403
+ - Updated libtcod to 1.10.6
1404
+ - Printing generates more compact layouts.
1405
+
1406
+ ### Deprecated
1407
+
1408
+ - Most libtcodpy console functions have been replaced by the tcod.console
1409
+ module.
1410
+ - Deprecated the `set_key_color` functions. You can pass key colors to
1411
+ `Console.blit` instead.
1412
+ - `Console.clear` should be given the colors to clear with as parameters,
1413
+ rather than by using `default_fg` or `default_bg`.
1414
+ - Most functions which depend on console default values have been deprecated.
1415
+ The new deprecation warnings will give details on how to make default values
1416
+ explicit.
1417
+
1418
+ ### Fixed
1419
+
1420
+ - `tcod.console.Console.blit` was ignoring the key color set by
1421
+ `Console.set_key_color`.
1422
+ - The `SDL2` and `OPENGL2` renders can now large numbers of tiles.
1423
+
1424
+ ## [8.4.3] - 2019-02-06
1425
+
1426
+ ### Changed
1427
+
1428
+ - Updated libtcod to 1.10.5
1429
+ - The SDL2/OPENGL2 renderers will now auto-detect a custom fonts key-color.
1430
+
1431
+ ## [8.4.2] - 2019-02-05
1432
+
1433
+ ### Deprecated
1434
+
1435
+ - The tdl module has been deprecated.
1436
+ - The libtcodpy parser functions have been deprecated.
1437
+
1438
+ ### Fixed
1439
+
1440
+ - `tcod.image_is_pixel_transparent` and `tcod.image_get_alpha` now return
1441
+ values.
1442
+ - `Console.print_frame` was clearing tiles outside if its bounds.
1443
+ - The `FONT_LAYOUT_CP437` layout was incorrect.
1444
+
1445
+ ## [8.4.1] - 2019-02-01
1446
+
1447
+ ### Fixed
1448
+
1449
+ - Window event types were not upper-case.
1450
+ - Fixed regression where libtcodpy mouse wheel events unset mouse coordinates.
1451
+
1452
+ ## [8.4.0] - 2019-01-31
1453
+
1454
+ ### Added
1455
+
1456
+ - Added tcod.event module, based off of the sdlevent.py shim.
1457
+
1458
+ ### Changed
1459
+
1460
+ - Updated libtcod to 1.10.3
1461
+
1462
+ ### Fixed
1463
+
1464
+ - Fixed libtcodpy `struct_add_value_list` function.
1465
+ - Use correct math for tile-based delta in mouse events.
1466
+ - New renderers now support tile-based mouse coordinates.
1467
+ - SDL2 renderer will now properly refresh after the window is resized.
1468
+
1469
+ ## [8.3.2] - 2018-12-28
1470
+
1471
+ ### Fixed
1472
+
1473
+ - Fixed rare access violations for some functions which took strings as
1474
+ parameters, such as `tcod.console_init_root`.
1475
+
1476
+ ## [8.3.1] - 2018-12-28
1477
+
1478
+ ### Fixed
1479
+
1480
+ - libtcodpy key and mouse functions will no longer accept the wrong types.
1481
+ - The `new_struct` method was not being called for libtcodpy's custom parsers.
1482
+
1483
+ ## [8.3.0] - 2018-12-08
1484
+
1485
+ ### Added
1486
+
1487
+ - Added BSP traversal methods in tcod.bsp for parity with libtcodpy.
1488
+
1489
+ ### Deprecated
1490
+
1491
+ - Already deprecated bsp functions are now even more deprecated.
1492
+
1493
+ ## [8.2.0] - 2018-11-27
1494
+
1495
+ ### Added
1496
+
1497
+ - New layout `tcod.FONT_LAYOUT_CP437`.
1498
+
1499
+ ### Changed
1500
+
1501
+ - Updated libtcod to 1.10.2
1502
+ - `tcod.console_print_frame` and `Console.print_frame` now support Unicode
1503
+ strings.
1504
+
1505
+ ### Deprecated
1506
+
1507
+ - Deprecated using bytes strings for all printing functions.
1508
+
1509
+ ### Fixed
1510
+
1511
+ - Console objects are now initialized with spaces. This fixes some blit
1512
+ operations.
1513
+ - Unicode code-points above U+FFFF will now work on all platforms.
1514
+
1515
+ ## [8.1.1] - 2018-11-16
1516
+
1517
+ ### Fixed
1518
+
1519
+ - Printing a frame with an empty string no longer displays a title bar.
1520
+
1521
+ ## [8.1.0] - 2018-11-15
1522
+
1523
+ ### Changed
1524
+
1525
+ - Heightmap functions now support 'F_CONTIGUOUS' arrays.
1526
+ - `tcod.heightmap_new` now has an `order` parameter.
1527
+ - Updated SDL to 2.0.9
1528
+
1529
+ ### Deprecated
1530
+
1531
+ - Deprecated heightmap functions which sample noise grids, this can be done
1532
+ using the `Noise.sample_ogrid` method.
1533
+
1534
+ ## [8.0.0] - 2018-11-02
1535
+
1536
+ ### Changed
1537
+
1538
+ - The default renderer can now be anything if not set manually.
1539
+ - Better error message for when a font file isn't found.
1540
+
1541
+ ## [7.0.1] - 2018-10-27
1542
+
1543
+ ### Fixed
1544
+
1545
+ - Building from source was failing because `console_2tris.glsl*` was missing
1546
+ from source distributions.
1547
+
1548
+ ## [7.0.0] - 2018-10-25
1549
+
1550
+ ### Added
1551
+
1552
+ - New `RENDERER_SDL2` and `RENDERER_OPENGL2` renderers.
1553
+
1554
+ ### Changed
1555
+
1556
+ - Updated libtcod to 1.9.0
1557
+ - Now requires SDL 2.0.5, which is not trivially installable on
1558
+ Ubuntu 16.04 LTS.
1559
+
1560
+ ### Removed
1561
+
1562
+ - Dropped support for Python versions before 3.5
1563
+ - Dropped support for MacOS versions before 10.9 Mavericks.
1564
+
1565
+ ## [6.0.7] - 2018-10-24
1566
+
1567
+ ### Fixed
1568
+
1569
+ - The root console no longer loses track of buffers and console defaults on a
1570
+ renderer change.
1571
+
1572
+ ## [6.0.6] - 2018-10-01
1573
+
1574
+ ### Fixed
1575
+
1576
+ - Replaced missing wheels for older and 32-bit versions of MacOS.
1577
+
1578
+ ## [6.0.5] - 2018-09-28
1579
+
1580
+ ### Fixed
1581
+
1582
+ - Resolved CDefError error during source installs.
1583
+
1584
+ ## [6.0.4] - 2018-09-11
1585
+
1586
+ ### Fixed
1587
+
1588
+ - tcod.Key right-hand modifiers are now set independently at initialization,
1589
+ instead of mirroring the left-hand modifier value.
1590
+
1591
+ ## [6.0.3] - 2018-09-05
1592
+
1593
+ ### Fixed
1594
+
1595
+ - tcod.Key and tcod.Mouse no longer ignore initiation parameters.
1596
+
1597
+ ## [6.0.2] - 2018-08-28
1598
+
1599
+ ### Fixed
1600
+
1601
+ - Fixed color constants missing at build-time.
1602
+
1603
+ ## [6.0.1] - 2018-08-24
1604
+
1605
+ ### Fixed
1606
+
1607
+ - Source distributions were missing C++ source files.
1608
+
1609
+ ## [6.0.0] - 2018-08-23
1610
+
1611
+ ### Changed
1612
+
1613
+ - Project renamed to tcod on PyPI.
1614
+
1615
+ ### Deprecated
1616
+
1617
+ - Passing bytes strings to libtcodpy print functions is deprecated.
1618
+
1619
+ ### Fixed
1620
+
1621
+ - Fixed libtcodpy print functions not accepting bytes strings.
1622
+ - libtcod constants are now generated at build-time fixing static analysis
1623
+ tools.
1624
+
1625
+ ## [5.0.1] - 2018-07-08
1626
+
1627
+ ### Fixed
1628
+
1629
+ - tdl.event no longer crashes with StopIteration on Python 3.7
1630
+
1631
+ ## [5.0.0] - 2018-07-05
1632
+
1633
+ ### Changed
1634
+
1635
+ - tcod.path: all classes now use `shape` instead of `width` and `height`.
1636
+ - tcod.path now respects NumPy array shape, instead of assuming that arrays
1637
+ need to be transposed from C memory order. From now on `x` and `y` mean
1638
+ 1st and 2nd axis. This doesn't affect non-NumPy code.
1639
+ - tcod.path now has full support of non-contiguous memory.
1640
+
1641
+ ## [4.6.1] - 2018-06-30
1642
+
1643
+ ### Added
1644
+
1645
+ - New function `tcod.line_where` for indexing NumPy arrays using a Bresenham
1646
+ line.
1647
+
1648
+ ### Deprecated
1649
+
1650
+ - Python 2.7 support will be dropped in the near future.
1651
+
1652
+ ## [4.5.2] - 2018-06-29
1653
+
1654
+ ### Added
1655
+
1656
+ - New wheels for Python3.7 on Windows.
1657
+
1658
+ ### Fixed
1659
+
1660
+ - Arrays from `tcod.heightmap_new` are now properly zeroed out.
1661
+
1662
+ ## [4.5.1] - 2018-06-23
1663
+
1664
+ ### Deprecated
1665
+
1666
+ - Deprecated all libtcodpy map functions.
1667
+
1668
+ ### Fixed
1669
+
1670
+ - `tcod.map_copy` could break the `tcod.map.Map` class.
1671
+ - `tcod.map_clear` `transparent` and `walkable` parameters were reversed.
1672
+ - When multiple SDL2 headers were installed, the wrong ones would be used when
1673
+ the library is built.
1674
+ - Fails to build via pip unless Numpy is installed first.
1675
+
1676
+ ## [4.5.0] - 2018-06-12
1677
+
1678
+ ### Changed
1679
+
1680
+ - Updated libtcod to v1.7.0
1681
+ - Updated SDL to v2.0.8
1682
+ - Error messages when failing to create an SDL window should be a less vague.
1683
+ - You no longer need to initialize libtcod before you can print to an
1684
+ off-screen console.
1685
+
1686
+ ### Fixed
1687
+
1688
+ - Avoid crashes if the root console has a character code higher than expected.
1689
+
1690
+ ### Removed
1691
+
1692
+ - No more debug output when loading fonts.
1693
+
1694
+ ## [4.4.0] - 2018-05-02
1695
+
1696
+ ### Added
1697
+
1698
+ - Added the libtcodpy module as an alias for tcod. Actual use of it is
1699
+ deprecated, it exists primarily for backward compatibility.
1700
+ - Adding missing libtcodpy functions `console_has_mouse_focus` and
1701
+ `console_is_active`.
1702
+
1703
+ ### Changed
1704
+
1705
+ - Updated libtcod to v1.6.6
1706
+
1707
+ ## [4.3.2] - 2018-03-18
1708
+
1709
+ ### Deprecated
1710
+
1711
+ - Deprecated the use of falsy console parameters with libtcodpy functions.
1712
+
1713
+ ### Fixed
1714
+
1715
+ - Fixed libtcodpy image functions not supporting falsy console parameters.
1716
+ - Fixed tdl `Window.get_char` method. (Kaczor2704)
1717
+
1718
+ ## [4.3.1] - 2018-03-07
1719
+
1720
+ ### Fixed
1721
+
1722
+ - Fixed cffi.api.FFIError "unsupported expression: expected a simple numeric
1723
+ constant" error when building on platforms with an older cffi module and
1724
+ newer SDL headers.
1725
+ - tcod/tdl Map and Console objects were not saving stride data when pickled.
1726
+
1727
+ ## [4.3.0] - 2018-02-01
1728
+
1729
+ ### Added
1730
+
1731
+ - You can now set the numpy memory order on tcod.console.Console,
1732
+ tcod.map.Map, and tdl.map.Map objects well as from the
1733
+ tcod.console_init_root function.
1734
+
1735
+ ### Changed
1736
+
1737
+ - The `console_init_root` `title` parameter is now optional.
1738
+
1739
+ ### Fixed
1740
+
1741
+ - OpenGL renderer alpha blending is now consistent with all other render
1742
+ modes.
1743
+
1744
+ ## [4.2.3] - 2018-01-06
1745
+
1746
+ ### Fixed
1747
+
1748
+ - Fixed setup.py regression that could prevent building outside of the git
1749
+ repository.
1750
+
1751
+ ## [4.2.2] - 2018-01-06
1752
+
1753
+ ### Fixed
1754
+
1755
+ - The Windows dynamic linker will now prefer the bundled version of SDL.
1756
+ This fixes:
1757
+ "ImportError: DLL load failed: The specified procedure could not be found."
1758
+ - `key.c` is no longer set when `key.vk == KEY_TEXT`, this fixes a regression
1759
+ which was causing events to be heard twice in the libtcod/Python tutorial.
1760
+
1761
+ ## [4.2.0] - 2018-01-02
1762
+
1763
+ ### Changed
1764
+
1765
+ - Updated libtcod backend to v1.6.4
1766
+ - Updated SDL to v2.0.7 for Windows/MacOS.
1767
+
1768
+ ### Removed
1769
+
1770
+ - Source distributions no longer include tests, examples, or fonts.
1771
+ [Find these on GitHub.](https://github.com/libtcod/python-tcod)
1772
+
1773
+ ### Fixed
1774
+
1775
+ - Fixed "final link failed: Nonrepresentable section on output" error
1776
+ when compiling for Linux.
1777
+ - `tcod.console_init_root` defaults to the SDL renderer, other renderers
1778
+ cause issues with mouse movement events.
1779
+
1780
+ ## [4.1.1] - 2017-11-02
1781
+
1782
+ ### Fixed
1783
+
1784
+ - Fixed `ConsoleBuffer.blit` regression.
1785
+ - Console defaults corrected, the root console's blend mode and alignment is
1786
+ the default value for newly made Console's.
1787
+ - You can give a byte string as a filename to load parsers.
1788
+
1789
+ ## [4.1.0] - 2017-07-19
1790
+
1791
+ ### Added
1792
+
1793
+ - tdl Map class can now be pickled.
1794
+
1795
+ ### Changed
1796
+
1797
+ - Added protection to the `transparent`, `walkable`, and `fov`
1798
+ attributes in tcod and tdl Map classes, to prevent them from being
1799
+ accidentally overridden.
1800
+ - tcod and tdl Map classes now use numpy arrays as their attributes.
1801
+
1802
+ ## [4.0.1] - 2017-07-12
1803
+
1804
+ ### Fixed
1805
+
1806
+ - tdl: Fixed NameError in `set_fps`.
1807
+
1808
+ ## [4.0.0] - 2017-07-08
1809
+
1810
+ ### Changed
1811
+
1812
+ - tcod.bsp: `BSP.split_recursive` parameter `random` is now `seed`.
1813
+ - tcod.console: `Console.blit` parameters have been rearranged.
1814
+ Most of the parameters are now optional.
1815
+ - tcod.noise: `Noise.__init__` parameter `rand` is now named `seed`.
1816
+ - tdl: Changed `set_fps` parameter name to `fps`.
1817
+
1818
+ ### Fixed
1819
+
1820
+ - tcod.bsp: Corrected spelling of max_vertical_ratio.
1821
+
1822
+ ## [3.2.0] - 2017-07-04
1823
+
1824
+ ### Changed
1825
+
1826
+ - Merged libtcod-cffi dependency with TDL.
1827
+
1828
+ ### Fixed
1829
+
1830
+ - Fixed boolean related crashes with Key 'text' events.
1831
+ - tdl.noise: Fixed crash when given a negative seed. As well as cases
1832
+ where an instance could lose its seed being pickled.
1833
+
1834
+ ## [3.1.0] - 2017-05-28
1835
+
1836
+ ### Added
1837
+
1838
+ - You can now pass tdl Console instances as parameters to libtcod-cffi
1839
+ functions expecting a tcod Console.
1840
+
1841
+ ### Changed
1842
+
1843
+ - Dependencies updated: `libtcod-cffi>=2.5.0,<3`
1844
+ - The `Console.tcod_console` attribute is being renamed to
1845
+ `Console.console_c`.
1846
+
1847
+ ### Deprecated
1848
+
1849
+ - The tdl.noise and tdl.map modules will be deprecated in the future.
1850
+
1851
+ ### Fixed
1852
+
1853
+ - Resolved crash-on-exit issues for Windows platforms.
1854
+
1855
+ ## [3.0.2] - 2017-04-13
1856
+
1857
+ ### Changed
1858
+
1859
+ - Dependencies updated: `libtcod-cffi>=2.4.3,<3`
1860
+ - You can now create Console instances before a call to `tdl.init`.
1861
+
1862
+ ### Removed
1863
+
1864
+ - Dropped support for Python 3.3
1865
+
1866
+ ### Fixed
1867
+
1868
+ - Resolved issues with MacOS builds.
1869
+ - 'OpenGL' and 'GLSL' renderers work again.
1870
+
1871
+ ## [3.0.1] - 2017-03-22
1872
+
1873
+ ### Changed
1874
+
1875
+ - `KeyEvent`'s with `text` now have all their modifier keys set to False.
1876
+
1877
+ ### Fixed
1878
+
1879
+ - Undefined behavior in text events caused crashes on 32-bit builds.
1880
+
1881
+ ## [3.0.0] - 2017-03-21
1882
+
1883
+ ### Added
1884
+
1885
+ - `KeyEvent` supports libtcod text and meta keys.
1886
+
1887
+ ### Changed
1888
+
1889
+ - `KeyEvent` parameters have been moved.
1890
+ - This version requires `libtcod-cffi>=2.3.0`.
1891
+
1892
+ ### Deprecated
1893
+
1894
+ - `KeyEvent` camel capped attribute names are deprecated.
1895
+
1896
+ ### Fixed
1897
+
1898
+ - Crashes with key-codes undefined by libtcod.
1899
+ - `tdl.map` typedef issues with libtcod-cffi.
1900
+
1901
+ ## [2.0.1] - 2017-02-22
1902
+
1903
+ ### Fixed
1904
+
1905
+ - `tdl.init` renderer was defaulted to OpenGL which is not supported in the
1906
+ current version of libtcod.
1907
+
1908
+ ## [2.0.0] - 2017-02-15
1909
+
1910
+ ### Changed
1911
+
1912
+ - Dependencies updated, tdl now requires libtcod-cffi 2.x.x
1913
+ - Some event behaviors have changed with SDL2, event keys might be different
1914
+ than what you expect.
1915
+
1916
+ ### Removed
1917
+
1918
+ - Key repeat functions were removed from SDL2.
1919
+ `set_key_repeat` is now stubbed, and does nothing.
1920
+
1921
+ ## [1.6.0] - 2016-11-18
1922
+
1923
+ - Console.blit methods can now take fg_alpha and bg_alpha parameters.
1924
+
1925
+ ## [1.5.3] - 2016-06-04
1926
+
1927
+ - set_font no longer crashes when loading a file without the implied font
1928
+ size in its name
1929
+
1930
+ ## [1.5.2] - 2016-03-11
1931
+
1932
+ - Fixed non-square Map instances
1933
+
1934
+ ## [1.5.1] - 2015-12-20
1935
+
1936
+ - Fixed errors with Unicode and non-Unicode literals on Python 2
1937
+ - Fixed attribute error in compute_fov
1938
+
1939
+ ## [1.5.0] - 2015-07-13
1940
+
1941
+ - python-tdl distributions are now universal builds
1942
+ - New Map class
1943
+ - map.bresenham now returns a list
1944
+ - This release will require libtcod-cffi v0.2.3 or later
1945
+
1946
+ ## [1.4.0] - 2015-06-22
1947
+
1948
+ - The DLL's have been moved into another library which you can find at
1949
+ https://github.com/HexDecimal/libtcod-cffi
1950
+ You can use this library to have some raw access to libtcod if you want.
1951
+ Plus it can be used alongside TDL.
1952
+ - The libtcod console objects in Console instances have been made public.
1953
+ - Added tdl.event.wait function. This function can called with a timeout and
1954
+ can automatically call tdl.flush.
1955
+
1956
+ ## [1.3.1] - 2015-06-19
1957
+
1958
+ - Fixed pathfinding regressions.
1959
+
1960
+ ## [1.3.0] - 2015-06-19
1961
+
1962
+ - Updated backend to use python-cffi instead of ctypes. This gives decent
1963
+ boost to speed in CPython and a drastic to boost in speed in PyPy.
1964
+
1965
+ ## [1.2.0] - 2015-06-06
1966
+
1967
+ - The set*colors method now changes the default colors used by the draw*\*
1968
+ methods. You can use Python's Ellipsis to explicitly select default colors
1969
+ this way.
1970
+ - Functions and Methods renamed to match Python's style-guide PEP 8, the old
1971
+ function names still exist and are depreciated.
1972
+ - The fgcolor and bgcolor parameters have been shortened to fg and bg.
1973
+
1974
+ ## [1.1.7] - 2015-03-19
1975
+
1976
+ - Noise generator now seeds properly.
1977
+ - The OS event queue will now be handled during a call to tdl.flush. This
1978
+ prevents a common newbie programmer hang where events are handled
1979
+ infrequently during long animations, simulations, or early development.
1980
+ - Fixed a major bug that would cause a crash in later versions of Python 3
1981
+
1982
+ ## [1.1.6] - 2014-06-27
1983
+
1984
+ - Fixed a race condition when importing on some platforms.
1985
+ - Fixed a type issue with quickFOV on Linux.
1986
+ - Added a bresenham function to the tdl.map module.
1987
+
1988
+ ## [1.1.5] - 2013-11-10
1989
+
1990
+ - A for loop can iterate over all coordinates of a Console.
1991
+ - drawStr can be configured to scroll or raise an error.
1992
+ - You can now configure or disable key repeating with tdl.event.setKeyRepeat
1993
+ - Typewriter class removed, use a Window instance for the same functionality.
1994
+ - setColors method fixed.
1995
+
1996
+ ## [1.1.4] - 2013-03-06
1997
+
1998
+ - Merged the Typewriter and MetaConsole classes,
1999
+ You now have a virtual cursor with Console and Window objects.
2000
+ - Fixed the clear method on the Window class.
2001
+ - Fixed screenshot function.
2002
+ - Fixed some drawing operations with unchanging backgrounds.
2003
+ - Instances of Console and Noise can be pickled and copied.
2004
+ - Added KeyEvent.keychar
2005
+ - Fixed event.keyWait, and now converts window closed events into Alt+F4.
2006
+
2007
+ ## [1.1.3] - 2012-12-17
2008
+
2009
+ - Some of the setFont parameters were incorrectly labeled and documented.
2010
+ - setFont can auto-detect tilesets if the font sizes are in the filenames.
2011
+ - Added some X11 unicode tilesets, including Unifont.
2012
+
2013
+ ## [1.1.2] - 2012-12-13
2014
+
2015
+ - Window title now defaults to the running scripts filename.
2016
+ - Fixed incorrect deltaTime for App.update
2017
+ - App will no longer call tdl.flush on its own, you'll need to call this
2018
+ yourself.
2019
+ - tdl.noise module added.
2020
+ - clear method now defaults to black on black.
2021
+
2022
+ ## [1.1.1] - 2012-12-05
2023
+
2024
+ - Map submodule added with AStar class and quickFOV function.
2025
+ - New Typewriter class.
2026
+ - Most console functions can use Python-style negative indexes now.
2027
+ - New App.runOnce method.
2028
+ - Rectangle geometry is less strict.
2029
+
2030
+ ## [1.1.0] - 2012-10-04
2031
+
2032
+ - KeyEvent.keyname is now KeyEvent.key
2033
+ - MouseButtonEvent.button now behaves like KeyEvent.keyname does.
2034
+ - event.App class added.
2035
+ - Drawing methods no longer have a default for the character parameter.
2036
+ - KeyEvent.ctrl is now KeyEvent.control
2037
+
2038
+ ## [1.0.8] - 2010-04-07
2039
+
2040
+ - No longer works in Python 2.5 but now works in 3.x and has been partly
2041
+ tested.
2042
+ - Many bug fixes.
2043
+
2044
+ ## [1.0.5] - 2010-04-06
2045
+
2046
+ - Got rid of setuptools dependency, this will make it much more compatible
2047
+ with Python 3.x
2048
+ - Fixed a typo with the MacOS library import.
2049
+
2050
+ ## [1.0.4] - 2010-04-06
2051
+
2052
+ - All constant colors (C\_\*) have been removed, they may be put back in later.
2053
+ - Made some type assertion failures show the value they received to help in
2054
+ general debugging. Still working on it.
2055
+ - Added MacOS and 64-bit Linux support.
2056
+
2057
+ ## [1.0.0] - 2009-01-31
2058
+
2059
+ - First public release.