Releases
v0.0.4
🦃 What's New 🍂
Fitted kn::Rect
colliders for accurate tile collisions via the kn::Tile::collider
attribute.
kn::Rect::clamp
method for keeping a rectangle within another.
kn::Tile
objects now have a pointer to the kn::Layer
they're in.
Especially useful for checking if a tile is in a certain layer before handling collisions.
kn::TileMap::getTileCollection
method to get a collection vector of tiles across several tile map layers.
kn::window::blitEx
functions have been removed.
angle
and flip
traits are now part of kn::Texture
as public members.
Textures no longer technically render when the draw position is outside of the window.
kn::math::Vec2
now supports the <
, >
, <=
, and >=
operators.
Bug fixes
Fix tile map rendering due to how unordered hash-maps store data.
Rendering is now integer-based due to upscaled rendering having sub-pixel visual artifacts.
Dragging the window for extended periods of time no longer results in a large delta time afterwards.
This comes at the cost of delta time not functioning as intended for refresh rates below 30fps.
You can’t perform that action at this time.