Selaa lähdekoodia

update readme.md

SakiKawasaki 4 vuotta sitten
vanhempi
commit
8b17cab1fe
1 muutettua tiedostoa jossa 18 lisäystä ja 0 poistoa
  1. 18 0
      README.md

+ 18 - 0
README.md

@@ -22,6 +22,24 @@
 
 ## Features
 - Godot-like node system.
+- Simple usage
+  ```nim
+  import nodesnim
+
+  Window("Hello, world!")
+
+  var
+   scene = Scene("Main")
+   hello = Label()
+
+  hello.setText("Hello, world!")
+  hello.setSizeAnchor(1, 1)
+  hello.setTextAlign(0.5, 0.5, 0.5, 0.5)
+  scene.addChild(hello)
+
+  addMainScene(scene)
+  windowLaunch()
+  ```
 
 <details>
   <summary>Now available</summary>