Tcod

Latest version: v16.2.3

Safety actively analyzes 681844 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 41 of 44

1.4.0

- The DLL's have been moved into another library which you can find at
https://github.com/HexDecimal/libtcod-cffi
You can use this library to have some raw access to libtcod if you want.
Plus it can be used alongside TDL.
- The libtcod console objects in Console instances have been made public.
- Added tdl.event.wait function. This function can called with a timeout and
can automatically call tdl.flush.

1.3.2

Added
- added documentation for the generic container module `TCODList`

Fixed
- fixed not being able to open and close the root console more than once
- fixed parser not being able to attach a sub-structure to more than one structure
- fixed TCOD_image_from_console not working with root console on C version
- fixed TCODParser::newStruct, addFlag, addProperty handling only static names
- fixed web color parser (rrggbb) in the parser module
- fixed TCODImage constructor / TCOD_image_new crashing if root console not initialized
- fixed mouse status not updated if the keyboard events are not read with checkForKeypress/waitForKeypress
- fixed fbm, turbulence functions returning NaN for high octaves values

1.3.1

- Fixed pathfinding regressions.

1.3

Added
- added mouse support
- added the file parser module
- added TCODColor::setHSV(float h, float s, float v) and TCODColor::getHSV(float *h, float *s, float *v)
- added TCODColor addition and scalar multiplication. All r,g,b values are clamped to [0-255] :
- C++: `color1 = color2 * 3.5f;`
`color1 = color1 + color2;`
- C : `color1 = TCOD_color_multiply_scalar(color2, 3.5f);`
`color1 = TCOD_color_add(color1, color2);`
- added `TCODConsole::setKeyboardRepeat(int initialDelay, int interval)` and
`TCODConsole::disableKeyboardRepeat()`
- added `TCODSystem::getCurrentResolution(int *w, int *h)`

Changed
- C++ : colors must be initialized by constructor:
- 1.2.2 : `TCODColor mycol={r,g,b};`
- 1.3 : `TCODColor mycol(r,g,b);`
- TCOD_console_check_for_keypress now has a parameter that indicates which events are tracked
- 1.2.2 : `key = TCOD_console_check_for_keypress();`
- 1.3 : `key = TCOD_console_check_for_keypress(TCOD_KEY_PRESSED);`
- now `TCODFov::computeFov` takes a maxRadius parameter.
Use 0 for unlimited range (default)
- the mouse cursor is now automatically hidden when using fullscreen
- fixed closing the window resulting in a fake 'Q' keyboard event
- fixed `TCODConsole::print*` and `TCODConsole::rect` functions crashing when
printing out of the console
- fixed `f` parameter modified when calling fbm and turbulence noise functions.
Now `f` is no more modified.
- fixed wrong ascii code in `TCOD_key_t.c` when pressing Control and a letter
key.

1.3.0

- Updated backend to use python-cffi instead of ctypes. This gives decent
boost to speed in CPython and a drastic to boost in speed in PyPy.

1.2.2

Added
- added helpers for real time games
- `void TCODSystem::setFps(int val)` to limit the number of frames per second.
Use 0 for unlimited fps (default)
- `int TCODSystem::getFps()` to return the number of frames rendered during
the last second
- `float TCODSystem::getLastFrameLength()` to return the length of the last
frame in seconds
- added `TCODImage::clear` to fill an image with a color

Changed
- `TCODConsole::hline` and `vline` now have a `TCOD_bkgnd_flag_t` parameter
- now the `TCODConsole::print*Rect` functions return the height (number of console lines) of the printed string

Fixed
- fixed TCODConsole::print*Rect functions not truncating the string if it reaches the bottom of the rectangle
using a rectangle height of 0 means unlimited height
- fixed a color bug when drawing text using the black color (0,0,0)
- fixed TCODConsole::waitForKeypress(true) resulting in Alt/Ctrl/Shift key state not cleared

Page 41 of 44

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.