Releases: libtcod/python-tcod
Releases · libtcod/python-tcod
19.6.0
Added
- Alternative syntax for number symbols with
KeySym, can now specifyKeySym["3"], etc.
Only available on Python 3.13 or later.
Fixed
- Fixed regression with lowercase key symbols with
tcod.event.K_*andKeySym.*constants, these are still deprecated.
Event constants are only fixed fortcod.event.K_*, not the undocumentedtcod.event_constantsmodule.
LowercaseKeySym.*constants are only available on Python 3.13 or later. BSP.split_recursivedid not accept aRandomclass as the seed. #168
19.5.0
Changed
- Update to libtcod 2.2.1.
- Scaling defaults to nearest, set
os.environ["SDL_RENDER_SCALE_QUALITY"] = "linear"if linear scaling was preferred.
Fixed
SDL_RENDER_SCALE_QUALITYis now respected again since the change to SDL3.- Fixed crash on controller events.
19.4.1
Fixed
- Fixed dangling pointer in
Pathfinder.clearmethod. - Fixed hang in
Pathfinder.rebuild_frontiermethod.
19.4.0
Changed
- Checking "WindowSizeChanged" was not valid since SDL 3 and was also not valid in previous examples.
You must no longer check the type of theWindowResizedevent.
Fixed
- Corrected some inconsistent angle brackets in the
__str__of Event subclasses. #165 - Fix regression with window events causing them to be
Unknownand uncheckable.
19.3.1
Solved a deprecation warning which was internal to tcod and no doubt annoyed many devs.
Thanks to jmccardle for forcing me to resolve this.
Fixed
- Silenced internal deprecation warnings within
Context.convert_event.
19.3.0
Added
tcod.sdl.render: AddedScaleModeenum andTexture.scale_modeattribute.
19.2.0
Added
tcod.noise.gridnow has theoffsetparameter for easier sampling of noise chunks.
19.1.0
Added
- Added text input support to
tcod.sdl.video.Windowwhich was missing since the SDL3 update.
After creating a context useassert context.sdl_windoworif context.sdl_window:to verify that an SDL window exists then usecontext.sdl_window.start_text_inputto enable text input events.
Keep in mind that this can open an on-screen keyboard.
19.0.2
Resolve wheel deployment issue.
19.0.1
Fixed
Console.printmethods usingstringkeyword were marked as invalid instead of deprecated.