test25.nim 257 B

1234567891011121314151617181920
  1. # --- Test 25. Use Node2D node. --- #
  2. import nodesnim
  3. Window("hello world")
  4. var
  5. mainobj: SceneObj
  6. main = Scene("Main", mainobj)
  7. nodeobj: Node2DObj
  8. node = Node2D(nodeobj)
  9. main.addChild(node)
  10. addScene(main)
  11. setMainScene("Main")
  12. windowLaunch()