Skip to content

Releases: libtcod/python-tcod

16.2.3

16 Jul 22:28
16.2.3
59ec797
Compare
Choose a tag to compare

Fixed

  • Fixed access violation when events are polled before SDL is initialized.
  • Fixed access violation when libtcod images fail to load.
  • Verify input files exist when calling libtcodpy.parser_run, libtcodpy.namegen_parse, tcod.image.load.

16.2.2

16 Jan 06:55
16.2.2
5dcbcd4
Compare
Choose a tag to compare

Fixed

  • Ignore the locale when encoding file paths outside of Windows.
  • Fix performance when calling joystick functions.

16.2.1

25 Sep 06:08
16.2.1
b032d80
Compare
Choose a tag to compare

Fixed

  • Fixed errors loading files where their paths are non-ASCII and the C locale is not UTF-8.

16.2.0

21 Sep 03:47
16.2.0
688fc66
Compare
Choose a tag to compare

Changed

  • Renamed gauss methods to fix typos.

16.1.1

10 Jul 08:07
16.1.1
e597ceb
Compare
Choose a tag to compare

Changed

  • Added an empty __slots__ to EventDispatch.
  • Bundle SDL 2.28.1 on Windows and MacOS.

Fixed

  • Fixed "SDL failed to get a vertex buffer for this Direct3D 9 rendering batch!"
    #131

Removed

  • Dropped support for Python 3.7.

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