You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 15, 2023. It is now read-only.
The Bouncing Balls example does not compile successsfully and throws an error at isKeyPressed.
if isKeyPressed(SPACE): pause = not pause
throws
C:\Users\risharan\Documents\Dev\nim\nimRaylibNow-starter-template\src\game.nim(56, 20) Error: type mismatch: got <KeyboardKey>
but expected one of:
proc isKeyPressed(key: cint): bool
first type mismatch at position: 1
required type for key: cint
but expression 'SPACE' is of type: KeyboardKey
The Bouncing Balls example does not compile successsfully and throws an error at isKeyPressed.
throws
The error goes away if I add
convertersto the imports.In the discord discussion @greenfork said
"examples usually load nimraylib_now which re-exports other files including converters. that's strange, maybe I forgot to put it somewhere https://github.com/greenfork/nimraylib_now/blob/master/src/nimraylib_now.nim"