Skip to content

Releases: libtcod/python-tcod

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.

13.8.0

23 Sep 06:18
13.8.0
26f309b
Compare
Choose a tag to compare

Added

  • Ported SDL2 joystick handing as tcod.sdl.joystick.
  • New joystick related events.

Changed

  • Using libtcod 1.22.3.
  • Bundle SDL 2.24.0 on Windows and MacOS.

Deprecated

  • Renderers other than tcod.RENDERER_SDL2 are now discouraged.

Fixed

  • Fixed double present bug in non-context flush functions.
    This was affecting performance and also caused a screen flicker whenever the global fade color was active.
  • Fixed the parsing of SDL 2.24.0 headers on Windows.

13.7.0

08 Aug 02:39
13.7.0
8d9c72a
Compare
Choose a tag to compare

Added

  • You can new use SDLConsoleRender.atlas to access the SDLTilesetAtlas used to create it.
    #121

Fixed

  • Fixed the parsing of SDL 2.0.22 headers. Specifically SDL_FLT_EPSILON.

13.6.2

02 May 18:53
13.6.2
2b0cbe6
Compare
Choose a tag to compare

Fixed

  • SDL renderers were ignoring tiles where only the background red channel was changed.

13.6.1

29 Mar 19:38
13.6.1
d385df4
Compare
Choose a tag to compare

Changed

  • The SDL2 renderer has had a major performance update when compiled with SDL 2.0.18.
  • SDL2 is now the default renderer to avoid rare issues with the OpenGL 2 renderer.

13.6.0

19 Feb 08:43
13.6.0
934d2dd
Compare
Choose a tag to compare

Added

  • BasicMixer and Channel classes added to tcod.sdl.audio. These handle simple audio mixing.
  • AudioDevice.convert added to handle simple conversions to the active devices format.
  • tcod.sdl.audio.convert_audio added to handle any other conversions needed.

13.5.0

11 Feb 23:59
13.5.0
1efd263
Compare
Choose a tag to compare

Added

  • tcod.sdl.audio, a new module exposing SDL audio devices. This does not include an audio mixer yet.
  • tcod.sdl.mouse, for SDL mouse and cursor handing.
  • Context.sdl_atlas, which provides the relevant SDLTilesetAtlas when one is being used by the context.
  • Several missing features were added to tcod.sdl.render.
  • Window.mouse_rect added to SDL windows to set the mouse confinement area.

Changed

  • Texture.access and Texture.blend_mode properties now return enum instances.
    You can still set blend_mode with int but Mypy will complain.