1
3
Fork
You've already forked nene
1
This is "nene-classic", which is now halted and "finished" (but not archived, as it can receive bugfixes if found); I'll do a next version someday, in another repository under Nene org 🙂
  • Lua 62.6%
  • C 23.3%
  • clojure 13%
  • CMake 0.8%
  • Shell 0.3%
2024年07月10日 18:59:02 +00:00
bindgen use enum(cint) on nelua bindgen, fix closes #50 2024年01月08日 19:08:41 -03:00
bindings use enum(cint) on nelua bindgen, fix closes #50 2024年01月08日 19:08:41 -03:00
examples add fullscreen functions to Core. 2024年01月08日 18:48:38 -03:00
external update SDL submodules 2024年01月02日 18:22:51 -03:00
include/nene add fullscreen functions to Core. 2024年01月08日 18:48:38 -03:00
resources add music and sound example! 2021年08月07日 00:10:20 -03:00
src add fullscreen functions to Core. 2024年01月08日 18:48:38 -03:00
.gitattributes update .gitattributes to highlight teal code as lua 2024年05月20日 20:06:53 +00:00
.gitignore improve gitignore 2023年10月05日 19:08:14 -03:00
.gitmodules update SDL submodules 2024年01月02日 18:22:51 -03:00
CMakeLists.txt Improve cmake support, with installation 2023年05月20日 18:23:24 -03:00
compile_flags.txt fix compile_flags.txt 2024年01月08日 18:49:13 -03:00
gen-docs.lua auto mkdir docs directory, remember to rm docs first 2022年10月26日 14:14:57 -03:00
genbindings.sh Carp bindings and two working examples added! 2023年06月04日 21:49:51 -03:00
LICENSE update copyright 2023年01月12日 18:48:36 -03:00
README.md Atualizar README.md 2024年07月10日 18:59:02 +00:00
tlconfig.lua Binding generation rewritten to Teal language 2023年04月12日 21:18:34 -03:00

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

Matrix

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_COMPILER option, example: -D CMAKE_C_COMPILER=clang where clang is 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.