You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
18.1.0
- `tcod.path.path2d` to compute paths for the most basic cases.
- `tcod.noise.grid` would raise `TypeError` when given a plain integer for scale.
18.0.0
- `Console.print` now accepts `height` and `width` keywords and has renamed `string` to `text`.
- Text printed with `Console.print` using right-alignment has been shifted to the left by 1-tile.
- In general the `fg`, `bg`, and `bg_blend` keywords are too hard to keep track of as positional arguments so they must be replaced with keyword arguments instead.
- `Console.print`: deprecated `string`, `fg`, `bg`, and `bg_blend` being given as positional arguments.
The `string` parameter has been renamed to `text`.
- `Console.print_box` has been replaced by `Console.print`.
- `Console.draw_frame`: deprecated `clear`, `fg`, `bg`, and `bg_blend` being given as positional arguments.
- `Console.draw_rect`: deprecated `fg`, `bg`, and `bg_blend` being given as positional arguments.
- The `EventDispatch` class is now deprecated.
This class was made before Python supported protocols and structural pattern matching,
now the class serves little purpose and its usage can create a minor technical burden.
17.1.0
- SDL renderer primitive drawing methods now support sequences of tuples.
- `tcod.sdl.Renderer.draw_lines` type hint was too narrow.
- Fixed crash in `tcod.sdl.Renderer.geometry`.
17.0.0
- `EventDispatch`'s on event methods are now defined as positional parameters, so renaming the `event` parameter is now valid in subclasses.
- Keyboard bitmask modifiers `tcod.event.KMOD_*` have been replaced by `tcod.event.Modifier`.
- Suppressed internal `mouse.tile_motion` deprecation warning.
- Fixed SDL renderer primitive drawing methods. #159
16.2.3
- 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.1.1
- Added an empty `__slots__` to `EventDispatch`.
- Bundle `SDL 2.28.1` on Windows and MacOS.
- Fixed "SDL failed to get a vertex buffer for this Direct3D 9 rendering batch!"
#131
- Dropped support for Python 3.7.
16.1.0
- Added the enums `tcod.event.MouseButton` and `tcod.event.MouseButtonMask`.
- Using `libtcod 1.24.0`.
- Mouse button and mask constants have been replaced by enums.
- `WindowResized` literal annotations were in the wrong case.