Skip to content

Releases: libtcod/python-tcod

16.1.0

23 Jun 22:00
16.1.0
7ffb785
Compare
Choose a tag to compare

Added

  • Added the enums tcod.event.MouseButton and tcod.event.MouseButtonMask.

Changed

  • Using libtcod 1.24.0.

Deprecated

  • Mouse button and mask constants have been replaced by enums.

Fixed

  • WindowResized literal annotations were in the wrong case.

16.0.3

04 Jun 10:58
16.0.3
a934524
Compare
Choose a tag to compare

Changed

  • Enabled logging for libtcod and SDL.

Deprecated

  • Deprecated using tcod as an implicit alias for libtcodpy.
    You should use from tcod import libtcodpy if you want to access this module.
  • Deprecated constants being held directly in tcod, get these from tcod.libtcodpy instead.
  • Deprecated tcod.Console which should be accessed from tcod.console.Console instead.

16.0.2

02 Jun 15:09
16.0.2
c061679
Compare
Choose a tag to compare

Fixed

  • Joystick/controller device events would raise RuntimeError when accessed after removal.

16.0.1

28 May 12:07
16.0.1
07bf13c
Compare
Choose a tag to compare

Fixed

  • AudioDevice.stopped was inverted.
  • Fixed the audio mixer stop and fadeout methods.
  • Exceptions raised in the audio mixer callback no longer cause a messy crash, they now go to sys.unraisablehook.

16.0.0

28 May 03:54
16.0.0
98531c5
Compare
Choose a tag to compare

Added

  • Added PathLike support to more libtcodpy functions.
  • New tcod.sdl.mouse.show function for querying or setting mouse visibility.
  • New class method tcod.image.Image.from_file to load images with. This replaces tcod.image_load.
  • tcod.sdl.audio.AudioDevice is now a context manager.

Changed

  • SDL audio conversion will now pass unconvertible floating types as float32 instead of raising.

Deprecated

  • Deprecated the libtcodpy functions for images and noise generators.

Removed

  • tcod.console_set_custom_font can no longer take bytes as the file path.

Fixed

  • Fix tcod.sdl.mouse.warp_in_window function.
  • Fix TypeError: '_AudioCallbackUserdata' object is not callable when using an SDL audio device callback.
    #128

15.0.3

25 May 10:59
15.0.3
814f54f
Compare
Choose a tag to compare

Deprecated

  • Deprecated all libtcod color constants. Replace these with your own manually defined colors.
    Using a color will tell you the color values of the deprecated color in the warning.
  • Deprecated older scancode and keysym constants. These were replaced with the Scancode and KeySym enums.

Fixed

  • DLL loader could fail to load SDL2.dll when other tcod namespace packages were installed.

15.0.1

31 Mar 04:15
15.0.1
b81395a
Compare
Choose a tag to compare

Added

  • Added support for tcod.sdl namespace packages.

Fixed

  • Renderer.read_pixels method was completely broken.

15.0.0

04 Jan 21:15
15.0.0
65ec5b9
Compare
Choose a tag to compare

Changed

  • Modified the letter case of window event types to match their type annotations.
    This may cause regressions. Run Mypy to check for [comparison-overlap] errors.
  • Mouse event attributes are being changed: .pixel -> .position and .pixel_motion -> .motion.
  • Context.convert_event now returns copies of events with mouse coordinates converted into tile positions.

Deprecated

  • Mouse event pixel and tile attributes have been deprecated.

14.0.0

10 Dec 00:19
14.0.0
117943a
Compare
Choose a tag to compare

Added

  • Added explicit support for namespace packages.

Changed

  • Using libtcod 1.23.1.
  • Bundle SDL 2.26.0 on Windows and MacOS.
  • Code Page 437: Character 0x7F is now assigned to 0x2302 (HOUSE).
  • Forced all renderers to RENDERER_SDL2 to fix rare graphical artifacts with OpenGL.

Deprecated

  • The renderer parameter of new contexts is now deprecated.

13.8.1

23 Sep 19:35
13.8.1
d2f3c5b
Compare
Choose a tag to compare

Fixed

  • EventDispatch was missing new event names.