Skip to content

Kraken Engine v1.4.2

Choose a tag to compare

@durkisneer1 durkisneer1 released this 22 Dec 05:24
· 13 commits to main since this release
3fc79fb

This update introduces the abilities to make render target textures and control the scaling method of textures. With render target textures come functions to set and unset them.

What's New

  • TextureAccess enum for choosing the access type of a texture:
    • STATIC for your usual texture (read-only).
    • TARGET for a texture to draw onto, good for pixel artists and shader work.
  • TextureScaleMode enum for choosing the scale mode of a texture when rendering:
    • LINEAR for linear scaling, good for high-resolution games.
    • NEAREST for nearest neighbor scaling.
    • PIXEL_ART for a special scaling method that looks best with pixel art games.
    • DEFAULT for the default scaling mode set via the renderer.set_default_scale_mode function.
  • New Texture constructor for making a render target texture of a given size and scaling mode.
  • renderer.set_target added for setting/unsetting a render target texture to render to.
  • renderer.set_default_scale_mode and renderer.get_default_scale_mode functions for setting/getting the program's default texture scale mode to mitigate repetitive code.

Breaking Changes

  • renderer.get_res function renamed to renderer.get_target_resolution.
  • window.create function params changed to just title and size.
  • Removed AnimationController.texture property.
  • Removed the file_path parameter from the AnimationController.load_sprite_sheet method.

Full Changelog: v1.4.0...v1.4.2