This repository was archived by the owner on May 25, 2025. It is now read-only.
Releases: Andre-LA/nene
Releases · Andre-LA/nene
v0.3.0
This is the third rework of Nene (see #17), this time, less breaking than the previous rework, but some changes are hopefully for the better, this is the changelog:
- License changed from MIT to Zlib, just as SDL2.
- Now nene uses the singleton pattern, which means you can use
Nene.instance()function any type to get the nene instance, instead of passing it by parameter. - All modules uses the newer module system of nelua, just as Lua, you require the modules as
local Nene = require 'nene' - Removed
core.neluafile, now, just requiring"nene"will return the main nene module only, instead of requiring all modules as before - The SDL's wrappers are removed, now nene just calls and handle SDL directly.
- SDL libraries updated to latest ones provided by
nelua-decl. - All modules that wraps a SDL type will contain a
get_rawmethod, which returns the wrapped value (with anilptrcheck), for instance, nene uses the term "raw" to refer to any wrapped type, especially the SDL ones. - The nene's math module is now split between various modules like
nene.math.vec2, one module for each type, however, the general math module is still provided and is not considered deprecated. - Now it's possible to use any arithmetic type for 2D vectors and rectangles using
Vec2nandRectntypes, for instance,Vec2,RectandRectfare respectivelyVec2n(number),Rectn(integer)andRectn(number). - As the math module, the
Audiomodule got split betweenSoundandMusicmodules, while theAudiowraps both. - All "destroyable" types implements the
__closemetamethod, including the main nene module. - Some font metrics are added to
Fontmodule. - Text rendering on
TextTexturemodule it's stillsolidby default, but now it's possible to useblendedrender mode, which is much better for non-pixel-art fonts. - Previously some functions that returned an
value, ok_statusnow returnsok_status, value, this is done to enforce if the function run successfully. - All the examples and documentation updated
v0.2.0
This is the version after nene-rewrite, it aims to fix the problems that I had while developing the Alpinist game.
There is still a lot of work to be done, however these changes will be pushed on main branch directly, you can either use main to get the latest updates (with chances of breaking changes) or stay stable with this release while v0.3.0 isn't released.
Enjoy!
TODO: add complete changelog