test31.nim 293 B

1234567891011121314151617181920
  1. # --- Test 31. Use Counter node. --- #
  2. import nodesnim
  3. Window("hello world")
  4. var
  5. mainobj: SceneObj
  6. main = Scene("Main", mainobj)
  7. counterobj: CounterObj
  8. counter = Counter(counterobj)
  9. main.addChild(counter)
  10. counter.move(128, 64)
  11. addScene(main)
  12. setMainScene("Main")
  13. windowLaunch()