nodesnim

授权协议 MIT License
开发语言 C/C++
所属分类 游戏/娱乐、 游戏模拟器/工具/引擎
软件类型 开源软件
地区 不详
投 递 者 钱瑞
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

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

Open Source Lovetest

channel iconchannel icon

Stable version - 0.4.0

Install

  1. Install Nodesnim
    • Stable:
      nimble install nodesnim
    • 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.
  • Build nodes with YML-like syntax.
  • Stylesheets (CSS-like).
  • Simple usage
    import nodesnim
    
    Window("Hello, world!")
    
    
    build:
      - Scene scene:
        - Label hello:
          call setSizeAnchor(1, 1)
          call setTextAlign(0.5, 0.5, 0.5, 0.5)
          call setText("Hello, world!")
          call 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
Switch
SubWindow
CheckBox
ToolTip

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

相关阅读

相关文章

相关问答

相关文档