tcod 19.0.2__tar.gz → 19.2.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 (215) hide show
  1. {tcod-19.0.2 → tcod-19.2.0}/CHANGELOG.md +16 -0
  2. {tcod-19.0.2 → tcod-19.2.0}/PKG-INFO +1 -1
  3. {tcod-19.0.2 → tcod-19.2.0}/tcod/event.py +6 -1
  4. {tcod-19.0.2 → tcod-19.2.0}/tcod/noise.py +35 -4
  5. {tcod-19.0.2 → tcod-19.2.0}/tcod/sdl/video.py +136 -1
  6. {tcod-19.0.2 → tcod-19.2.0}/tcod/version.py +2 -2
  7. {tcod-19.0.2 → tcod-19.2.0}/tcod.egg-info/PKG-INFO +1 -1
  8. {tcod-19.0.2 → tcod-19.2.0}/CONTRIBUTING.md +0 -0
  9. {tcod-19.0.2 → tcod-19.2.0}/LICENSE.txt +0 -0
  10. {tcod-19.0.2 → tcod-19.2.0}/MANIFEST.in +0 -0
  11. {tcod-19.0.2 → tcod-19.2.0}/README.rst +0 -0
  12. {tcod-19.0.2 → tcod-19.2.0}/build_libtcod.py +0 -0
  13. {tcod-19.0.2 → tcod-19.2.0}/build_sdl.py +0 -0
  14. {tcod-19.0.2 → tcod-19.2.0}/libtcod/CHANGELOG.md +0 -0
  15. {tcod-19.0.2 → tcod-19.2.0}/libtcod/CMakeLists.txt +0 -0
  16. {tcod-19.0.2 → tcod-19.2.0}/libtcod/CONTRIBUTING.md +0 -0
  17. {tcod-19.0.2 → tcod-19.2.0}/libtcod/LIBTCOD-CREDITS.txt +0 -0
  18. {tcod-19.0.2 → tcod-19.2.0}/libtcod/LICENSE.txt +0 -0
  19. {tcod-19.0.2 → tcod-19.2.0}/libtcod/README.md +0 -0
  20. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/bresenham.h +0 -0
  21. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/bresenham_c.c +0 -0
  22. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/bsp.h +0 -0
  23. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/bsp_c.c +0 -0
  24. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/color.c +0 -0
  25. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/color.h +0 -0
  26. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/config.h +0 -0
  27. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console.c +0 -0
  28. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console.h +0 -0
  29. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console_drawing.c +0 -0
  30. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console_drawing.h +0 -0
  31. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console_etc.c +0 -0
  32. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console_etc.h +0 -0
  33. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console_init.c +0 -0
  34. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console_init.h +0 -0
  35. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console_printing.c +0 -0
  36. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console_printing.h +0 -0
  37. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console_rexpaint.c +0 -0
  38. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console_rexpaint.h +0 -0
  39. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/console_types.h +0 -0
  40. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/context.c +0 -0
  41. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/context.h +0 -0
  42. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/context_init.c +0 -0
  43. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/context_init.h +0 -0
  44. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/context_viewport.c +0 -0
  45. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/context_viewport.h +0 -0
  46. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/error.c +0 -0
  47. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/error.h +0 -0
  48. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/fov.h +0 -0
  49. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/fov_c.c +0 -0
  50. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/fov_circular_raycasting.c +0 -0
  51. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/fov_diamond_raycasting.c +0 -0
  52. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/fov_permissive2.c +0 -0
  53. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/fov_recursive_shadowcasting.c +0 -0
  54. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/fov_restrictive.c +0 -0
  55. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/fov_symmetric_shadowcast.c +0 -0
  56. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/fov_types.h +0 -0
  57. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/globals.c +0 -0
  58. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/globals.h +0 -0
  59. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/heapq.c +0 -0
  60. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/heapq.h +0 -0
  61. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/heightmap.h +0 -0
  62. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/heightmap_c.c +0 -0
  63. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/image.h +0 -0
  64. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/image_c.c +0 -0
  65. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/lex.h +0 -0
  66. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/lex_c.c +0 -0
  67. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/libtcod.h +0 -0
  68. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/libtcod_int.h +0 -0
  69. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/list.h +0 -0
  70. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/list_c.c +0 -0
  71. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/logging.c +0 -0
  72. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/logging.h +0 -0
  73. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/mersenne.h +0 -0
  74. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/mersenne_c.c +0 -0
  75. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/mersenne_types.h +0 -0
  76. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/mouse.h +0 -0
  77. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/mouse_types.h +0 -0
  78. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/namegen.h +0 -0
  79. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/namegen_c.c +0 -0
  80. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/noise.h +0 -0
  81. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/noise_c.c +0 -0
  82. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/noise_defaults.h +0 -0
  83. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/parser.h +0 -0
  84. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/parser_c.c +0 -0
  85. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/path.h +0 -0
  86. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/path_c.c +0 -0
  87. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/pathfinder.c +0 -0
  88. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/pathfinder.h +0 -0
  89. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/pathfinder_frontier.c +0 -0
  90. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/pathfinder_frontier.h +0 -0
  91. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/portability.h +0 -0
  92. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/random.c +0 -0
  93. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/random.h +0 -0
  94. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/renderer_sdl2.c +0 -0
  95. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/renderer_sdl2.h +0 -0
  96. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/renderer_xterm.c +0 -0
  97. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/renderer_xterm.h +0 -0
  98. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/sdl2/console_grid.glslf +0 -0
  99. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/sdl2/console_grid.glslv +0 -0
  100. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/sdl2/event.h +0 -0
  101. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/sys.h +0 -0
  102. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/sys_c.c +0 -0
  103. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/sys_sdl_c.c +0 -0
  104. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/sys_sdl_img_bmp.c +0 -0
  105. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/sys_sdl_img_png.c +0 -0
  106. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/tileset.c +0 -0
  107. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/tileset.h +0 -0
  108. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/tileset_bdf.c +0 -0
  109. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/tileset_bdf.h +0 -0
  110. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/tileset_fallback.c +0 -0
  111. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/tileset_fallback.h +0 -0
  112. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/tileset_render.c +0 -0
  113. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/tileset_render.h +0 -0
  114. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/tileset_truetype.c +0 -0
  115. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/tileset_truetype.h +0 -0
  116. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/timer.h +0 -0
  117. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/tree.h +0 -0
  118. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/tree_c.c +0 -0
  119. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/txtfield.h +0 -0
  120. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/txtfield_c.c +0 -0
  121. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/utility.h +0 -0
  122. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/version.h +0 -0
  123. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/wrappers.c +0 -0
  124. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/wrappers.h +0 -0
  125. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/zip.h +0 -0
  126. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod/zip_c.c +0 -0
  127. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod.h +0 -0
  128. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/libtcod_c.c +0 -0
  129. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/khrplatform.h +0 -0
  130. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/lodepng.c +0 -0
  131. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/lodepng.h +0 -0
  132. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/stb.c +0 -0
  133. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/stb_ds.h +0 -0
  134. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/stb_truetype.h +0 -0
  135. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/utf8proc/utf8proc.c +0 -0
  136. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/utf8proc/utf8proc.h +0 -0
  137. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/utf8proc/utf8proc_data.c +0 -0
  138. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/adler32.c +0 -0
  139. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/compress.c +0 -0
  140. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/crc32.c +0 -0
  141. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/crc32.h +0 -0
  142. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/deflate.c +0 -0
  143. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/deflate.h +0 -0
  144. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/gzclose.c +0 -0
  145. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/gzguts.h +0 -0
  146. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/gzlib.c +0 -0
  147. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/gzread.c +0 -0
  148. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/gzwrite.c +0 -0
  149. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/infback.c +0 -0
  150. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/inffast.c +0 -0
  151. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/inffast.h +0 -0
  152. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/inffixed.h +0 -0
  153. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/inflate.c +0 -0
  154. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/inflate.h +0 -0
  155. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/inftrees.c +0 -0
  156. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/inftrees.h +0 -0
  157. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/trees.c +0 -0
  158. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/trees.h +0 -0
  159. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/uncompr.c +0 -0
  160. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/zconf.h +0 -0
  161. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/zlib.h +0 -0
  162. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/zutil.c +0 -0
  163. {tcod-19.0.2 → tcod-19.2.0}/libtcod/src/vendor/zlib/zutil.h +0 -0
  164. {tcod-19.0.2 → tcod-19.2.0}/libtcodpy.py +0 -0
  165. {tcod-19.0.2 → tcod-19.2.0}/pyproject.toml +0 -0
  166. {tcod-19.0.2 → tcod-19.2.0}/requirements.txt +0 -0
  167. {tcod-19.0.2 → tcod-19.2.0}/setup.cfg +0 -0
  168. {tcod-19.0.2 → tcod-19.2.0}/setup.py +0 -0
  169. {tcod-19.0.2 → tcod-19.2.0}/tcod/__init__.py +0 -0
  170. {tcod-19.0.2 → tcod-19.2.0}/tcod/__pyinstaller/__init__.py +0 -0
  171. {tcod-19.0.2 → tcod-19.2.0}/tcod/__pyinstaller/hook-tcod.py +0 -0
  172. {tcod-19.0.2 → tcod-19.2.0}/tcod/_internal.py +0 -0
  173. {tcod-19.0.2 → tcod-19.2.0}/tcod/_libtcod.pyi +0 -0
  174. {tcod-19.0.2 → tcod-19.2.0}/tcod/bsp.py +0 -0
  175. {tcod-19.0.2 → tcod-19.2.0}/tcod/cdef.h +0 -0
  176. {tcod-19.0.2 → tcod-19.2.0}/tcod/cffi.h +0 -0
  177. {tcod-19.0.2 → tcod-19.2.0}/tcod/cffi.py +0 -0
  178. {tcod-19.0.2 → tcod-19.2.0}/tcod/color.py +0 -0
  179. {tcod-19.0.2 → tcod-19.2.0}/tcod/console.py +0 -0
  180. {tcod-19.0.2 → tcod-19.2.0}/tcod/constants.py +0 -0
  181. {tcod-19.0.2 → tcod-19.2.0}/tcod/context.py +0 -0
  182. {tcod-19.0.2 → tcod-19.2.0}/tcod/event_constants.py +0 -0
  183. {tcod-19.0.2 → tcod-19.2.0}/tcod/image.py +0 -0
  184. {tcod-19.0.2 → tcod-19.2.0}/tcod/libtcodpy.py +0 -0
  185. {tcod-19.0.2 → tcod-19.2.0}/tcod/los.py +0 -0
  186. {tcod-19.0.2 → tcod-19.2.0}/tcod/map.py +0 -0
  187. {tcod-19.0.2 → tcod-19.2.0}/tcod/noise.c +0 -0
  188. {tcod-19.0.2 → tcod-19.2.0}/tcod/noise.h +0 -0
  189. {tcod-19.0.2 → tcod-19.2.0}/tcod/path.c +0 -0
  190. {tcod-19.0.2 → tcod-19.2.0}/tcod/path.h +0 -0
  191. {tcod-19.0.2 → tcod-19.2.0}/tcod/path.py +0 -0
  192. {tcod-19.0.2 → tcod-19.2.0}/tcod/py.typed +0 -0
  193. {tcod-19.0.2 → tcod-19.2.0}/tcod/random.h +0 -0
  194. {tcod-19.0.2 → tcod-19.2.0}/tcod/random.py +0 -0
  195. {tcod-19.0.2 → tcod-19.2.0}/tcod/render.py +0 -0
  196. {tcod-19.0.2 → tcod-19.2.0}/tcod/sdl/__init__.py +0 -0
  197. {tcod-19.0.2 → tcod-19.2.0}/tcod/sdl/_internal.py +0 -0
  198. {tcod-19.0.2 → tcod-19.2.0}/tcod/sdl/audio.py +0 -0
  199. {tcod-19.0.2 → tcod-19.2.0}/tcod/sdl/constants.py +0 -0
  200. {tcod-19.0.2 → tcod-19.2.0}/tcod/sdl/joystick.py +0 -0
  201. {tcod-19.0.2 → tcod-19.2.0}/tcod/sdl/mouse.py +0 -0
  202. {tcod-19.0.2 → tcod-19.2.0}/tcod/sdl/render.py +0 -0
  203. {tcod-19.0.2 → tcod-19.2.0}/tcod/sdl/sys.py +0 -0
  204. {tcod-19.0.2 → tcod-19.2.0}/tcod/tcod.c +0 -0
  205. {tcod-19.0.2 → tcod-19.2.0}/tcod/tcod.h +0 -0
  206. {tcod-19.0.2 → tcod-19.2.0}/tcod/tcod.py +0 -0
  207. {tcod-19.0.2 → tcod-19.2.0}/tcod/tdl.c +0 -0
  208. {tcod-19.0.2 → tcod-19.2.0}/tcod/tdl.h +0 -0
  209. {tcod-19.0.2 → tcod-19.2.0}/tcod/tileset.py +0 -0
  210. {tcod-19.0.2 → tcod-19.2.0}/tcod.egg-info/SOURCES.txt +0 -0
  211. {tcod-19.0.2 → tcod-19.2.0}/tcod.egg-info/dependency_links.txt +0 -0
  212. {tcod-19.0.2 → tcod-19.2.0}/tcod.egg-info/entry_points.txt +0 -0
  213. {tcod-19.0.2 → tcod-19.2.0}/tcod.egg-info/requires.txt +0 -0
  214. {tcod-19.0.2 → tcod-19.2.0}/tcod.egg-info/top_level.txt +0 -0
  215. {tcod-19.0.2 → tcod-19.2.0}/tox.ini +0 -0
@@ -6,8 +6,24 @@ This project adheres to [Semantic Versioning](https://semver.org/) since version
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [19.2.0] - 2025-07-20
10
+
11
+ ### Added
12
+
13
+ - `tcod.noise.grid` now has the `offset` parameter for easier sampling of noise chunks.
14
+
15
+ ## [19.1.0] - 2025-07-12
16
+
17
+ ### Added
18
+
19
+ - Added text input support to `tcod.sdl.video.Window` which was missing since the SDL3 update.
20
+ 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.
21
+ Keep in mind that this can open an on-screen keyboard.
22
+
9
23
  ## [19.0.2] - 2025-07-11
10
24
 
25
+ Resolve wheel deployment issue.
26
+
11
27
  ## [19.0.1] - 2025-07-11
12
28
 
13
29
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tcod
3
- Version: 19.0.2
3
+ Version: 19.2.0
4
4
  Summary: The official Python port of libtcod.
5
5
  Author-email: Kyle Benesch <4b796c65+tcod@gmail.com>
6
6
  License-Expression: BSD-2-Clause
@@ -66,7 +66,7 @@ Example::
66
66
  match event:
67
67
  case tcod.event.Quit():
68
68
  raise SystemExit()
69
- case tcod.event.KeyDown(sym) if sym in KEY_COMMANDS:
69
+ case tcod.event.KeyDown(sym=sym) if sym in KEY_COMMANDS:
70
70
  print(f"Command: {KEY_COMMANDS[sym]}")
71
71
  case tcod.event.KeyDown(sym=sym, scancode=scancode, mod=mod, repeat=repeat):
72
72
  print(f"KeyDown: {sym=}, {scancode=}, {mod=}, {repeat=}")
@@ -674,6 +674,11 @@ class MouseWheel(Event):
674
674
  class TextInput(Event):
675
675
  """SDL text input event.
676
676
 
677
+ .. warning::
678
+ These events are not enabled by default since `19.0`.
679
+
680
+ Use :any:`Window.start_text_input` to enable this event.
681
+
677
682
  Attributes:
678
683
  type (str): Always "TEXTINPUT".
679
684
  text (str): A Unicode string with the input.
@@ -12,7 +12,7 @@ Example::
12
12
  ... algorithm=tcod.noise.Algorithm.SIMPLEX,
13
13
  ... seed=42,
14
14
  ... )
15
- >>> samples = noise[tcod.noise.grid(shape=(5, 4), scale=0.25, origin=(0, 0))]
15
+ >>> samples = noise[tcod.noise.grid(shape=(5, 4), scale=0.25, offset=(0, 0))]
16
16
  >>> samples # Samples are a grid of floats between -1.0 and 1.0
17
17
  array([[ 0. , -0.55046356, -0.76072866, -0.7088647 , -0.68165785],
18
18
  [-0.27523372, -0.7205134 , -0.74057037, -0.43919194, -0.29195625],
@@ -412,8 +412,10 @@ class Noise:
412
412
  def grid(
413
413
  shape: tuple[int, ...],
414
414
  scale: tuple[float, ...] | float,
415
- origin: tuple[int, ...] | None = None,
415
+ origin: tuple[float, ...] | None = None,
416
416
  indexing: Literal["ij", "xy"] = "xy",
417
+ *,
418
+ offset: tuple[float, ...] | None = None,
417
419
  ) -> tuple[NDArray[np.number], ...]:
418
420
  """Generate a mesh-grid of sample points to use with noise sampling.
419
421
 
@@ -427,6 +429,11 @@ def grid(
427
429
  If `None` then the `origin` will be zero on each axis.
428
430
  `origin` is not scaled by the `scale` parameter.
429
431
  indexing: Passed to :any:`numpy.meshgrid`.
432
+ offset: The offset into the shape to generate.
433
+ Similar to `origin` but is scaled by the `scale` parameter.
434
+ Can be multiples of `shape` to index noise samples by chunk.
435
+
436
+ .. versionadded:: 19.2
430
437
 
431
438
  Returns:
432
439
  A sparse mesh-grid to be passed into a :class:`Noise` instance.
@@ -435,14 +442,14 @@ def grid(
435
442
 
436
443
  >>> noise = tcod.noise.Noise(dimensions=2, seed=42)
437
444
 
438
- # Common case for ij-indexed arrays.
445
+ # Common case for ij-indexed arrays
439
446
  >>> noise[tcod.noise.grid(shape=(3, 5), scale=0.25, indexing="ij")]
440
447
  array([[ 0. , -0.27523372, -0.40398532, -0.50773406, -0.64945626],
441
448
  [-0.55046356, -0.7205134 , -0.57662135, -0.2643614 , -0.12529983],
442
449
  [-0.76072866, -0.74057037, -0.33160293, 0.24446318, 0.5346834 ]],
443
450
  dtype=float32)
444
451
 
445
- # Transpose an xy-indexed array to get a standard order="F" result.
452
+ # Transpose an xy-indexed array to get a standard order="F" result
446
453
  >>> noise[tcod.noise.grid(shape=(4, 5), scale=(0.5, 0.25), origin=(1.0, 1.0))].T
447
454
  array([[ 0.52655405, 0.25038874, -0.03488023, -0.18455243, -0.16333057],
448
455
  [-0.5037453 , -0.75348294, -0.73630923, -0.35063767, 0.18149695],
@@ -450,6 +457,23 @@ def grid(
450
457
  [-0.7057655 , -0.5817767 , -0.22774395, 0.02399864, -0.07006818]],
451
458
  dtype=float32)
452
459
 
460
+ # Can sample noise by chunk using the offset keyword
461
+ >>> noise[tcod.noise.grid(shape=(3, 5), scale=0.25, indexing="ij", offset=(0, 0))]
462
+ array([[ 0. , -0.27523372, -0.40398532, -0.50773406, -0.64945626],
463
+ [-0.55046356, -0.7205134 , -0.57662135, -0.2643614 , -0.12529983],
464
+ [-0.76072866, -0.74057037, -0.33160293, 0.24446318, 0.5346834 ]],
465
+ dtype=float32)
466
+ >>> noise[tcod.noise.grid(shape=(3, 5), scale=0.25, indexing="ij", offset=(3, 0))]
467
+ array([[-0.7088647 , -0.43919194, 0.12860827, 0.6390255 , 0.80402255],
468
+ [-0.68165785, -0.29195625, 0.2864191 , 0.5922846 , 0.52655405],
469
+ [-0.7841389 , -0.46131462, 0.0159424 , 0.17141782, -0.04198273]],
470
+ dtype=float32)
471
+ >>> noise[tcod.noise.grid(shape=(3, 5), scale=0.25, indexing="ij", offset=(6, 0))]
472
+ array([[-0.779634 , -0.60696834, -0.27446985, -0.23233278, -0.5037453 ],
473
+ [-0.5474089 , -0.54476213, -0.42235228, -0.49519652, -0.7101793 ],
474
+ [-0.28291094, -0.4326369 , -0.5227732 , -0.69655263, -0.81221616]],
475
+ dtype=float32)
476
+
453
477
  .. versionadded:: 12.2
454
478
  """
455
479
  if isinstance(scale, (int, float)):
@@ -462,6 +486,13 @@ def grid(
462
486
  if len(shape) != len(origin):
463
487
  msg = "shape must have the same length as origin"
464
488
  raise TypeError(msg)
489
+ if offset is not None:
490
+ if len(shape) != len(offset):
491
+ msg = "shape must have the same length as offset"
492
+ raise TypeError(msg)
493
+ origin = tuple(
494
+ i_origin + i_scale * i_offset for i_scale, i_offset, i_origin in zip(scale, offset, origin, strict=True)
495
+ )
465
496
  indexes = (
466
497
  np.arange(i_shape) * i_scale + i_origin for i_shape, i_scale, i_origin in zip(shape, scale, origin, strict=True)
467
498
  )
@@ -24,7 +24,9 @@ if TYPE_CHECKING:
24
24
  from numpy.typing import ArrayLike, NDArray
25
25
 
26
26
  __all__ = (
27
+ "Capitalization",
27
28
  "FlashOperation",
29
+ "TextInputType",
28
30
  "Window",
29
31
  "WindowFlags",
30
32
  "get_grabbed_window",
@@ -89,6 +91,56 @@ class FlashOperation(enum.IntEnum):
89
91
  """Flash until focus is gained."""
90
92
 
91
93
 
94
+ class TextInputType(enum.IntEnum):
95
+ """SDL input types for text input.
96
+
97
+ .. seealso::
98
+ :any:`Window.start_text_input`
99
+ https://wiki.libsdl.org/SDL3/SDL_TextInputType
100
+
101
+ .. versionadded:: 19.1
102
+ """
103
+
104
+ TEXT = lib.SDL_TEXTINPUT_TYPE_TEXT
105
+ """The input is text."""
106
+ TEXT_NAME = lib.SDL_TEXTINPUT_TYPE_TEXT_NAME
107
+ """The input is a person's name."""
108
+ TEXT_EMAIL = lib.SDL_TEXTINPUT_TYPE_TEXT_EMAIL
109
+ """The input is an e-mail address."""
110
+ TEXT_USERNAME = lib.SDL_TEXTINPUT_TYPE_TEXT_USERNAME
111
+ """The input is a username."""
112
+ TEXT_PASSWORD_HIDDEN = lib.SDL_TEXTINPUT_TYPE_TEXT_PASSWORD_HIDDEN
113
+ """The input is a secure password that is hidden."""
114
+ TEXT_PASSWORD_VISIBLE = lib.SDL_TEXTINPUT_TYPE_TEXT_PASSWORD_VISIBLE
115
+ """The input is a secure password that is visible."""
116
+ NUMBER = lib.SDL_TEXTINPUT_TYPE_NUMBER
117
+ """The input is a number."""
118
+ NUMBER_PASSWORD_HIDDEN = lib.SDL_TEXTINPUT_TYPE_NUMBER_PASSWORD_HIDDEN
119
+ """The input is a secure PIN that is hidden."""
120
+ NUMBER_PASSWORD_VISIBLE = lib.SDL_TEXTINPUT_TYPE_NUMBER_PASSWORD_VISIBLE
121
+ """The input is a secure PIN that is visible."""
122
+
123
+
124
+ class Capitalization(enum.IntEnum):
125
+ """Text capitalization for text input.
126
+
127
+ .. seealso::
128
+ :any:`Window.start_text_input`
129
+ https://wiki.libsdl.org/SDL3/SDL_Capitalization
130
+
131
+ .. versionadded:: 19.1
132
+ """
133
+
134
+ NONE = lib.SDL_CAPITALIZE_NONE
135
+ """No auto-capitalization will be done."""
136
+ SENTENCES = lib.SDL_CAPITALIZE_SENTENCES
137
+ """The first letter of sentences will be capitalized."""
138
+ WORDS = lib.SDL_CAPITALIZE_WORDS
139
+ """The first letter of words will be capitalized."""
140
+ LETTERS = lib.SDL_CAPITALIZE_LETTERS
141
+ """All letters will be capitalized."""
142
+
143
+
92
144
  class _TempSurface:
93
145
  """Holds a temporary surface derived from a NumPy array."""
94
146
 
@@ -115,7 +167,12 @@ class _TempSurface:
115
167
 
116
168
 
117
169
  class Window:
118
- """An SDL2 Window object."""
170
+ """An SDL2 Window object.
171
+
172
+ Created from :any:`tcod.sdl.video.new_window` when working with SDL directly.
173
+
174
+ When using the libtcod :any:`Context` you can access its `Window` via :any:`Context.sdl_window`.
175
+ """
119
176
 
120
177
  def __init__(self, sdl_window_p: Any) -> None: # noqa: ANN401
121
178
  if ffi.typeof(sdl_window_p) is not ffi.typeof("struct SDL_Window*"):
@@ -133,6 +190,9 @@ class Window:
133
190
  return NotImplemented
134
191
  return bool(self.p == other.p)
135
192
 
193
+ def __hash__(self) -> int:
194
+ return hash(self.p)
195
+
136
196
  def _as_property_pointer(self) -> Any: # noqa: ANN401
137
197
  return self.p
138
198
 
@@ -369,6 +429,81 @@ class Window:
369
429
  def relative_mouse_mode(self, enable: bool, /) -> None:
370
430
  _check(lib.SDL_SetWindowRelativeMouseMode(self.p, enable))
371
431
 
432
+ def start_text_input(
433
+ self,
434
+ *,
435
+ type: TextInputType = TextInputType.TEXT, # noqa: A002
436
+ capitalization: Capitalization | None = None,
437
+ autocorrect: bool = True,
438
+ multiline: bool | None = None,
439
+ android_type: int | None = None,
440
+ ) -> None:
441
+ """Start receiving text input events supporting Unicode. This may open an on-screen keyboard.
442
+
443
+ This method is meant to be paired with :any:`set_text_input_area`.
444
+
445
+ Args:
446
+ type: Type of text being inputted, see :any:`TextInputType`
447
+ capitalization: Capitalization hint, default is based on `type` given, see :any:`Capitalization`.
448
+ autocorrect: Enable auto completion and auto correction.
449
+ multiline: Allow multiple lines of text.
450
+ android_type: Input type for Android, see SDL docs.
451
+
452
+ Example::
453
+
454
+ context: tcod.context.Context # Assuming tcod context is used
455
+
456
+ if context.sdl_window:
457
+ context.sdl_window.start_text_input()
458
+
459
+ ... # Handle Unicode input using TextInput events
460
+
461
+ context.sdl_window.stop_text_input() # Close on-screen keyboard when done
462
+
463
+ .. seealso::
464
+ :any:`stop_text_input`
465
+ :any:`set_text_input_area`
466
+ :any:`TextInput`
467
+ https://wiki.libsdl.org/SDL3/SDL_StartTextInputWithProperties
468
+
469
+ .. versionadded:: 19.1
470
+ """
471
+ props = Properties()
472
+ props[("SDL_PROP_TEXTINPUT_TYPE_NUMBER", int)] = int(type)
473
+ if capitalization is not None:
474
+ props[("SDL_PROP_TEXTINPUT_CAPITALIZATION_NUMBER", int)] = int(capitalization)
475
+ props[("SDL_PROP_TEXTINPUT_AUTOCORRECT_BOOLEAN", bool)] = autocorrect
476
+ if multiline is not None:
477
+ props[("SDL_PROP_TEXTINPUT_MULTILINE_BOOLEAN", bool)] = multiline
478
+ if android_type is not None:
479
+ props[("SDL_PROP_TEXTINPUT_ANDROID_INPUTTYPE_NUMBER", int)] = int(android_type)
480
+ _check(lib.SDL_StartTextInputWithProperties(self.p, props.p))
481
+
482
+ def set_text_input_area(self, rect: tuple[int, int, int, int], cursor: int) -> None:
483
+ """Assign the area used for entering Unicode text input.
484
+
485
+ Args:
486
+ rect: `(x, y, width, height)` rectangle used for text input
487
+ cursor: Cursor X position, relative to `rect[0]`
488
+
489
+ .. seealso::
490
+ :any:`start_text_input`
491
+ https://wiki.libsdl.org/SDL3/SDL_SetTextInputArea
492
+
493
+ .. versionadded:: 19.1
494
+ """
495
+ _check(lib.SDL_SetTextInputArea(self.p, (rect,), cursor))
496
+
497
+ def stop_text_input(self) -> None:
498
+ """Stop receiving text events for this window and close relevant on-screen keyboards.
499
+
500
+ .. seealso::
501
+ :any:`start_text_input`
502
+
503
+ .. versionadded:: 19.1
504
+ """
505
+ _check(lib.SDL_StopTextInput(self.p))
506
+
372
507
 
373
508
  def new_window( # noqa: PLR0913
374
509
  width: int,
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '19.0.2'
21
- __version_tuple__ = version_tuple = (19, 0, 2)
20
+ __version__ = version = '19.2.0'
21
+ __version_tuple__ = version_tuple = (19, 2, 0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tcod
3
- Version: 19.0.2
3
+ Version: 19.2.0
4
4
  Summary: The official Python port of libtcod.
5
5
  Author-email: Kyle Benesch <4b796c65+tcod@gmail.com>
6
6
  License-Expression: BSD-2-Clause
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes