• This repository has been archived on 27/Jan/2022
  • Stars
    star
    133
  • Rank 272,600 (Top 6 %)
  • Language
    Nim
  • License
    MIT License
  • Created over 4 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Nim GUI/2D framework, based on OpenGL and SDL2.

The Nim GUI/2D framework based on OpenGL and SDL2.

Open Source Love Nim language-plastic License time tracker test

channel icon channel icon

Stable version - 0.4.2

Install

  1. Install Nodesnim
    • Stable:
      nimble install nodesnim@#master
    • Nightly:
      nimble install nodesnim@#nightly
  2. 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:

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.

Core Default nodes Control nodes 2D Nodes 3D Nodes Graphics
Anchor Node Control Node2D Node3D Drawable
Color Canvas ColorRect Sprite GeometryInstance GradientDrawable
Font Scene TextureRect AnimatedSprite Camera3D
Enums AudioStreamPlayer Label YSort Sprite3D
Exceptions AnimationPlayer Button CollisionShape2D
Image EditText Camera2D
Input Box TileMap
Rect2 HBox
Vector2 VBox
Circle2 GridBox
Polygon2 Scroll
AudioStream ProgressBar
Animation Slider
Vector3 Popup
SceneBuilder TextureButton
StyleSheet TextureProgressBar
TileSet Counter
ChartData Switch
Scripts SubWindow
Scene loader CheckBox
ToolTip
Chart

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.

Screenshots

Stargazers over time

More Repositories

1

akane

The Nim asynchronous web framework.
Nim
56
star
2

shizuka

The Nim framework for VK
Nim
24
star
3

saya

Python framework for VK
Python
24
star
4

java2cpp

Translator java code to C++ code
Python
15
star
5

badgemaker

The Nim badgemaker tool.
Nim
14
star
6

tracemoe

TraceMoe API wrapper for Python
Python
12
star
7

py2java

Python to Java language translator.
Python
11
star
8

KTC

Официальное приложение для Канского технологического колледжа, написанное на Kotlin.
Kotlin
11
star
9

telenim

The telegram framework written in Nim
Nim
10
star
10

nimage

The image management library written in Nim.
Nim
8
star
11

cs2py

The C# code to Python code translator
Python
7
star
12

python_snake

my first snake :D
Python
6
star
13

lowgraphics

Image Tools
C++
6
star
14

saya_nim

Nim framework for VK
Nim
6
star
15

anime

The Nim wrapper for tracemoe API.
Nim
6
star
16

mchains

Markov Chains
Python
6
star
17

LoveLog

Love tracker app for Android
Kotlin
4
star
18

avoscript

little language just4fun
Python
4
star
19

Hello-world

Rust
3
star
20

userbot

Python
3
star
21

Pacman

A simple version pacman game written with swing
Java
3
star
22

college_timetable

College timetable bot
Python
3
star
23

highlightjs

highlight.js bindings for Nim
Nim
3
star
24

bints

Implementing Big Integer on Nim language.
Nim
2
star
25

happyx-login-form

Nim
2
star
26

KTC-happyx

Kansk Technological College Application written in HappyX Native
Nim
2
star
27

tailwindcss-nim

Tailwind CSS for Nim
Nim
2
star
28

s2dd

stupid 2d drawes
Python
1
star
29

rays

Python
1
star
30

nodengine

The GUI engine for NodesNim.
Nim
1
star
31

KTC-site

Promo site for KTC App
Vue
1
star
32

ethosa.github.io

My portfolio made with HappyX web framework
JavaScript
1
star
33

HTTPWizard

Little app for testing API
Kotlin
1
star
34

Wakatime

Java
1
star
35

WakatimeBot

wakatime bot for VK
Python
1
star
36

Learn

learn 👀
Python
1
star
37

ktc-api

Little [a]sync client for KTC API
Python
1
star
38

hackathon_sport

Онлайн компилятор для Хакатона Winter IT Hack
Python
1
star
39

Ethosa

1
star
40

chatgpt-client

Yet another ChatGPT Client, but made with HappyX Native 👀
Nim
1
star