Repository navigation
Kraken Engine v1.4.0
What's New
Orchestratorclass for timeline-based transform animations.- With this comes the
fxsubmodule which needs to be explicitly imported from pykraken, - Each effect function returns an
Effectobject to give the orchestrator via itsnextorparallelmethods.
- With this comes the
Transformobject encapsulating position, size, scale, angle, positional anchor, and rotational pivot.- Inheritable
Spriteclass for drawable game objects, encapsulates:- Attributes for texture, transform, velocity, and an optional "clip" (src) rect.
- Methods for updating (must be implemented), drawing, and moving.
logsubmodule for logging errors, warnings, and general information.kn.init's new optionaldebugparameter must be set toTruefor log messages to output.- Enabling debug mode includes logging of device information on launch.
- Added new event types for pinch gestures, screen keyboard showing/hiding, and if display's usable bounds were changed.
SheetStrips can now accept floats for fps values.event.start_text_inputandevent.stop_text_inputnow available for use with theTEXT_INPUTuser event.- The window is now resizable during runtime.
Breaking Changes
Frameobject (fromAnimationController.current_frame) removed.- This means each animation in the controller holds a list of src rects instead of frames.
AnimationController[.texture/.clip]takes the place ofAnimationController.current_frame[.tex/.src], respectively.
- The two old
renderer.drawfunctions have been replaced with a unified one, utilizing theTransformobject. - Old
transformsubmodule functions for manipulatingPixelArrayobjects have moved to thepixel_arraysubmodule.
Bug Fixes
- Creating a window of equal size as the display while having
scaledset toTrueno longer makes a 0x0 window. Texture'sangleproperty moved to theTransformobject.AnimationController.progresscan now reach1.0when not looping.Rect.clampwould squish the rect when clamped, now fixed.- If a
Text's internal font pointer goes out of scope or was unset, the text throws an error instead of silently failing. - When window is fullscreen, the mouse coordinates are now returned correctly adjusted to the visual dimensions.
Full Changelog: v1.3.1...v1.4.0
