Kraken Engine v1.4.2
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
TextureAccessenum for choosing the access type of a texture:STATICfor your usual texture (read-only).TARGETfor a texture to draw onto, good for pixel artists and shader work.
TextureScaleModeenum for choosing the scale mode of a texture when rendering:LINEARfor linear scaling, good for high-resolution games.NEARESTfor nearest neighbor scaling.PIXEL_ARTfor a special scaling method that looks best with pixel art games.DEFAULTfor the default scaling mode set via therenderer.set_default_scale_modefunction.
- New
Textureconstructor for making a render target texture of a given size and scaling mode. renderer.set_targetadded for setting/unsetting a render target texture to render to.renderer.set_default_scale_modeandrenderer.get_default_scale_modefunctions for setting/getting the program's default texture scale mode to mitigate repetitive code.
Breaking Changes
renderer.get_resfunction renamed torenderer.get_target_resolution.window.createfunction params changed to justtitleandsize.- Removed
AnimationController.textureproperty. - Removed the
file_pathparameter from theAnimationController.load_sprite_sheetmethod.
Full Changelog: v1.4.0...v1.4.2