mirror of
https://github.com/Ethosa/nodesnim
synced 2026-01-14 19:01:39 +00:00
No description
|
|
||
|---|---|---|
| .github | ||
| examples | ||
| src | ||
| tests | ||
| .gitignore | ||
| icon.svg | ||
| LICENSE | ||
| nodesnim.nimble | ||
| README.md | ||
Install
- Install Nodesnim
- Install dependencies
- Linux (tested on Ubuntu and Mint):
sudo apt install --fix-missing -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
- Windows / MacOS:
- SDL2
- SDL2_image
- SDL2_mixer
- SDL2_ttf
- Put Runtime binaries in the
.nimble/bin/folder
- Linux (tested on Ubuntu and Mint):
Features
- Godot-like node system.
- Runtime scene loader.
- Powerful node build system using YML-like syntax.
- Stylesheets (CSS-like).
- Android-like drawables.
- Customizable GUI themes.
- Simple usage
import nodesnim Window("Hello, world!") build: - Scene scene: - Label hello: call: setSizeAnchor(1, 1) setTextAlign(0.5, 0.5, 0.5, 0.5) setText("Hello, world!") setBackgroundColor(Color(31, 45, 62)) addMainScene(scene) windowLaunch()
Now available
This section contains links to documentation for all nodes.
Debug mode
For use debug mode you should compile with -d:debug or --define:debug, e.g. nim c -r -d:debug main.nim.
Export
Use the Nim compiler user guide for export to the other OS.
Static linking SDL2
Also use niminst tool for generate an installer
- CrossPlatform export for Windows (tested on Windows 7 x64 and Windows 10 x64)
nim c -d:mingw -d:release --opt:speed --noNimblePath file.nim- put Runtime binaries in the folder with the program.

