nene

所属分类:编程语言基础
开发工具:Lua
文件大小:0KB
下载次数:0
上传日期:2023-08-06 17:38:06
上 传 者sh-1993
说明:  SDL之上的游戏框架,针对多种编程语言(WIP),
(Game framework on top of SDL aimed for multiple programming languages (WIP),)

文件列表:
CMakeLists.txt (933, 2023-12-17)
LICENSE (881, 2023-12-17)
bindgen/ (0, 2023-12-17)
bindgen/ast/ (0, 2023-12-17)
bindgen/ast/ast.tl (801, 2023-12-17)
bindgen/ast/comment.tl (788, 2023-12-17)
bindgen/ast/dependency.tl (506, 2023-12-17)
bindgen/ast/enum.tl (1153, 2023-12-17)
bindgen/ast/func.tl (4116, 2023-12-17)
bindgen/ast/header.tl (466, 2023-12-17)
bindgen/ast/init.tl (221, 2023-12-17)
bindgen/ast/module.tl (1635, 2023-12-17)
bindgen/ast/op.tl (274, 2023-12-17)
bindgen/ast/struct.tl (1207, 2023-12-17)
bindgen/ast/symbol.tl (1539, 2023-12-17)
bindgen/ast/type.tl (1973, 2023-12-17)
bindgen/ast_common.tl (3940, 2023-12-17)
bindgen/ast_reader.tl (11771, 2023-12-17)
bindgen/data/ (0, 2023-12-17)
bindgen/data/animation.tl (1024, 2023-12-17)
bindgen/data/audio/ (0, 2023-12-17)
bindgen/data/audio/music.tl (939, 2023-12-17)
bindgen/data/audio/sound.tl (939, 2023-12-17)
bindgen/data/collision.tl (919, 2023-12-17)
bindgen/data/color.tl (1177, 2023-12-17)
bindgen/data/core.tl (820, 2023-12-17)
bindgen/data/font.tl (1729, 2023-12-17)
bindgen/data/intersections.tl (963, 2023-12-17)
bindgen/data/math/ (0, 2023-12-17)
bindgen/data/math/grid.tl (1071, 2023-12-17)
bindgen/data/math/rect.tl (1045, 2023-12-17)
bindgen/data/math/rectf.tl (1077, 2023-12-17)
bindgen/data/math/segment.tl (1074, 2023-12-17)
bindgen/data/math/shape.tl (1061, 2023-12-17)
bindgen/data/math/vec2.tl (1286, 2023-12-17)
bindgen/data/math/vec2i.tl (1276, 2023-12-17)
... ...

# nene [![Matrix](https://img.shields.io/matrix/nene-and-friends:matrix.org?label=Matrix%20chat&logo=matrix)](https://matrix.to/#/#nene-and-friends:matrix.org) `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.26.5` - SDL2_image `2.6.3` - SDL2_ttf `2.20.2` - SDL2_mixer `2.6.3` ### Building Nene library Installed externally, like on Visual Studio Installer or your system package manager. - C compiler (tested: Clang, MSVC, GCC) - CMake - Git - [Ninja](https://ninja-build.org/) (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 $ 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: - [Camera](examples/nelua/camera.nelua) - [Pong](examples/nelua/pong.nelua) - [Rects](examples/nelua/rects.nelua) - [Render clip](examples/nelua/render_clip.nelua) - [Sound and music](examples/nelua/sound_and_music.nelua) - [Sprite animation](examples/nelua/sprite_animation.nelua) - [Tilemap](examples/nelua/tilemap.nelua) - [Web](examples/nelua/web.nelua) Screenshot with some of the examples above (these shapes are sprites): ![image](https://user-images.githubusercontent.com/8538122/127941148-8597cb04-1bac-49cc-9ba1-909f199be996.png) ## License The license of `nene` it's the same as SDL2: zlib license.

近期下载者

相关文件


收藏者