- Lua 62.6%
- C 23.3%
- clojure 13%
- CMake 0.8%
- Shell 0.3%
Warning
This library is "done", I'll stop it's development for now, if you use it and find a bug, feel free to report it, I'll try to fix it.
After releasing the only commercial project written with it, it'll be taggged as v0.4.
I want to continue this work though, but it'll become something else, on a separate project under "Nene organization" (I mean, the codeberg page).
Thanks everyone who helped me, supported and tested the project.
It was fun, and eventually will be fun again 🙂.
nene
Nene it's a little game framework built on top of SDL2 and it's extension libraries (SDL2_image, SDL2_ttf, SDL2_mixer).
Eventually Nene will upgrade to
SDL3
Dependencies
Nene library (runtime, used on games)
These are bundled with Nene and thus no download it's required, more information below.
- SDL2
2.28.5 - SDL2_image
2.8.2 - SDL2_mixer
2.6.3 - SDL2_ttf
2.20.2
Building Nene library
Installed externally, like on Visual Studio Installer or your system package manager.
- C compiler (tested: Clang, MSVC, GCC)
- CMake
- Git
- Ninja (Optional, but recommended)
Generating Nene bindings
For now this is only expected to work on Linux, better support for Windows will be written, however
bindings are already generated on the repository, thus you don't need to generate them unless you change
Nene and/or the generators.
- Lua
- Teal
- clang-check
- Bash
To generate bindings:
$ sh genbindings.sh
Building
First, be sure to install a C compiler and CMake.
Note
The following steps were reproduced on Fedora Linux 38
Clone nene with it's dependencies bundled:
$ git clone https://github.com/Andre-LA/nene.git --recurse-submodules
Generate the building template of CMake:
$ cmake -S . -B build -G Ninja
Note
To use a different C compiler from the default, append the
CMAKE_C_COMPILERoption, example:-D CMAKE_C_COMPILER=clangwhereclangis the C compiler of choice.
Build Nene and it's dependencies:
$ cmake --build build
To properly organize the files, install it to the local libnene subdirectory:
$ cmake --install build --prefix libnene
And that's it! Nene development build it's properly done at the libnene subdirectory.
Usage
Note
This section it's still being written.
Examples
Nene doesn't contains a tutorial yet, but you can find some usage examples on the examples directory:
Screenshot with some of the examples above (these shapes are sprites): image
License
The license of nene it's the same as SDL2: zlib license.